Search in sources :

Example 11 with ActivityStreamInfo

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);
}
Also used : ActivityStreamInfo(org.entando.entando.aps.system.services.actionlog.model.ActivityStreamInfo)

Example 12 with ActivityStreamInfo

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);
}
Also used : IPage(com.agiletec.aps.system.services.page.IPage) ActivityStreamInfo(org.entando.entando.aps.system.services.actionlog.model.ActivityStreamInfo)

Example 13 with ActivityStreamInfo

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;
}
Also used : ActivityStreamInfo(org.entando.entando.aps.system.services.actionlog.model.ActivityStreamInfo) ArrayList(java.util.ArrayList)

Example 14 with ActivityStreamInfo

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;
}
Also used : ActivityStreamInfo(org.entando.entando.aps.system.services.actionlog.model.ActivityStreamInfo)

Example 15 with ActivityStreamInfo

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;
}
Also used : ActivityStreamInfo(org.entando.entando.aps.system.services.actionlog.model.ActivityStreamInfo)

Aggregations

ActivityStreamInfo (org.entando.entando.aps.system.services.actionlog.model.ActivityStreamInfo)16 Properties (java.util.Properties)4 ActionLogRecord (org.entando.entando.aps.system.services.actionlog.model.ActionLogRecord)4 ArrayList (java.util.ArrayList)3 Lang (com.agiletec.aps.system.services.lang.Lang)2 IPage (com.agiletec.aps.system.services.page.IPage)2 Connection (java.sql.Connection)2 PreparedStatement (java.sql.PreparedStatement)2 Timestamp (java.sql.Timestamp)2 ActionLogRecordSearchBean (org.entando.entando.aps.system.services.actionlog.model.ActionLogRecordSearchBean)2 ApsSystemException (com.agiletec.aps.system.exception.ApsSystemException)1 UserDetails (com.agiletec.aps.system.services.user.UserDetails)1 BaseAction (com.agiletec.apsadmin.system.BaseAction)1 Content (com.agiletec.plugins.jacms.aps.system.services.content.model.Content)1 ByteArrayInputStream (java.io.ByteArrayInputStream)1 ResultSet (java.sql.ResultSet)1 Date (java.util.Date)1 JAXBContext (javax.xml.bind.JAXBContext)1 Unmarshaller (javax.xml.bind.Unmarshaller)1