use of org.entando.entando.aps.system.services.actionlog.model.ActivityStreamInfo in project entando-core by entando.
the class PageAction method addActivityStreamInfo.
protected void addActivityStreamInfo(IPage page, int strutsAction, boolean addLink) {
ActivityStreamInfo asi = this.getPageActionHelper().createActivityStreamInfo(page, strutsAction, addLink, "edit");
super.addActivityStreamInfo(asi);
}
use of org.entando.entando.aps.system.services.actionlog.model.ActivityStreamInfo in project entando-core by entando.
the class PageConfigAction method addActivityStreamInfo.
protected void addActivityStreamInfo(int strutsAction, boolean addLink) {
IPage page = this.getPage(this.getPageCode());
ActivityStreamInfo asi = this.getPageActionHelper().createActivityStreamInfo(page, strutsAction, addLink, "configure");
super.addActivityStreamInfo(asi);
}
use of org.entando.entando.aps.system.services.actionlog.model.ActivityStreamInfo in project entando-core by entando.
the class AbstractPageActionHelper method createBaseActivityStreamInfo.
private ActivityStreamInfo createBaseActivityStreamInfo(IPage page, int strutsAction, boolean addLink) {
ActivityStreamInfo asi = new ActivityStreamInfo();
asi.setActionType(strutsAction);
asi.setObjectTitles(page.getTitles());
List<String> groupCodes = new ArrayList<String>();
groupCodes.add(page.getGroup());
if (null != page.getExtraGroups()) {
groupCodes.addAll(page.getExtraGroups());
}
asi.setGroups(groupCodes);
if (addLink) {
asi.setLinkAuthGroup(page.getGroup());
asi.setLinkAuthPermission(Permission.MANAGE_PAGES);
}
return asi;
}
use of org.entando.entando.aps.system.services.actionlog.model.ActivityStreamInfo in project entando-core by entando.
the class AbstractPageActionHelper method createActivityStreamInfo.
@Override
public ActivityStreamInfo createActivityStreamInfo(IPage page, int strutsAction, boolean addLink, String entryPageAction) {
ActivityStreamInfo asi = this.createBaseActivityStreamInfo(page, strutsAction, addLink);
if (addLink) {
asi.setLinkNamespace("/do/Page");
asi.setLinkActionName(entryPageAction);
asi.addLinkParameter("selectedNode", page.getCode());
}
return asi;
}
use of org.entando.entando.aps.system.services.actionlog.model.ActivityStreamInfo in project entando-core by entando.
the class AbstractPageActionHelper method createConfigFrameActivityStreamInfo.
@Override
public ActivityStreamInfo createConfigFrameActivityStreamInfo(IPage page, int framePos, int strutsAction, boolean addLink) {
ActivityStreamInfo asi = this.createBaseActivityStreamInfo(page, strutsAction, addLink);
if (addLink) {
asi.setLinkNamespace("/do/Page");
asi.setLinkActionName("editFrame");
asi.addLinkParameter("pageCode", page.getCode());
asi.addLinkParameter("frame", String.valueOf(framePos));
}
return asi;
}
Aggregations