|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.web.scripts.replication.ReplicationModelBuilder
public class ReplicationModelBuilder
Builds up models from ReplicationDefinitions, either in summary or detail form.
Nested Class Summary | |
---|---|
static class |
ReplicationModelBuilder.SimpleSorterByLastRun
Sorts simple definitions by their last run time. |
static class |
ReplicationModelBuilder.SimpleSorterByName
Sorts simple definitions by their name |
static class |
ReplicationModelBuilder.SimpleSorterByStatus
Sorts simple definitions by their status |
Field Summary | |
---|---|
protected org.alfresco.service.cmr.action.ActionTrackingService |
actionTrackingService
|
protected static java.lang.String |
DEFINITION_DESCRIPTION
|
protected static java.lang.String |
DEFINITION_ENABLED
|
protected static java.lang.String |
DEFINITION_ENDED_AT
|
protected static java.lang.String |
DEFINITION_FAILURE_MESSAGE
|
protected static java.lang.String |
DEFINITION_NAME
|
protected static java.lang.String |
DEFINITION_PAYLOAD
|
protected static java.lang.String |
DEFINITION_RUNNING_ACTION_ID
|
protected static java.lang.String |
DEFINITION_SCHEDULE_COUNT
|
protected static java.lang.String |
DEFINITION_SCHEDULE_ENABLED
|
protected static java.lang.String |
DEFINITION_SCHEDULE_PERIOD
|
protected static java.lang.String |
DEFINITION_SCHEDULE_START
|
protected static java.lang.String |
DEFINITION_STARTED_AT
|
protected static java.lang.String |
DEFINITION_STATUS
|
protected static java.lang.String |
DEFINITION_TARGET_NAME
|
protected static java.lang.String |
DEFINITION_TRANSFER_LOCAL_REPORT
|
protected static java.lang.String |
DEFINITION_TRANSFER_REMOTE_REPORT
|
protected static java.lang.String |
MODEL_DATA_ITEM
|
protected static java.lang.String |
MODEL_DATA_LIST
|
protected org.alfresco.service.cmr.repository.NodeService |
nodeService
|
protected org.alfresco.service.cmr.replication.ReplicationService |
replicationService
|
Constructor Summary | |
---|---|
ReplicationModelBuilder(org.alfresco.service.cmr.repository.NodeService nodeService,
org.alfresco.service.cmr.replication.ReplicationService replicationService,
org.alfresco.service.cmr.action.ActionTrackingService actionTrackingService)
|
Method Summary | |
---|---|
protected java.util.Map |
buildDetails(org.alfresco.service.cmr.replication.ReplicationDefinition rd)
Build a model containing the full, detailed definition for the given Replication Definition. |
protected java.util.Map |
buildSimpleList(java.util.List replicationDefinitions,
java.util.Comparator sorter)
Build a model containing a list of simple definitions for the given list of Replication Definitions. |
protected void |
setStatus(org.alfresco.service.cmr.replication.ReplicationDefinition replicationDefinition,
org.alfresco.service.cmr.action.ExecutionDetails details,
java.util.Map model)
Figures out the status that's one of: New|Running|CancelRequested|Completed|Failed|Cancelled by merging data from the action tracking service. |
protected void |
setStatus(org.alfresco.service.cmr.replication.ReplicationDefinition replicationDefinition,
java.util.Map model)
Figures out the status that's one of: New|Running|CancelRequested|Completed|Failed|Cancelled by merging data from the action tracking service. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String MODEL_DATA_ITEM
protected static final java.lang.String MODEL_DATA_LIST
protected static final java.lang.String DEFINITION_NAME
protected static final java.lang.String DEFINITION_DESCRIPTION
protected static final java.lang.String DEFINITION_STATUS
protected static final java.lang.String DEFINITION_STARTED_AT
protected static final java.lang.String DEFINITION_ENDED_AT
protected static final java.lang.String DEFINITION_FAILURE_MESSAGE
protected static final java.lang.String DEFINITION_RUNNING_ACTION_ID
protected static final java.lang.String DEFINITION_PAYLOAD
protected static final java.lang.String DEFINITION_TRANSFER_LOCAL_REPORT
protected static final java.lang.String DEFINITION_TRANSFER_REMOTE_REPORT
protected static final java.lang.String DEFINITION_ENABLED
protected static final java.lang.String DEFINITION_TARGET_NAME
protected static final java.lang.String DEFINITION_SCHEDULE_ENABLED
protected static final java.lang.String DEFINITION_SCHEDULE_START
protected static final java.lang.String DEFINITION_SCHEDULE_PERIOD
protected static final java.lang.String DEFINITION_SCHEDULE_COUNT
protected org.alfresco.service.cmr.repository.NodeService nodeService
protected org.alfresco.service.cmr.replication.ReplicationService replicationService
protected org.alfresco.service.cmr.action.ActionTrackingService actionTrackingService
Constructor Detail |
---|
public ReplicationModelBuilder(org.alfresco.service.cmr.repository.NodeService nodeService, org.alfresco.service.cmr.replication.ReplicationService replicationService, org.alfresco.service.cmr.action.ActionTrackingService actionTrackingService)
Method Detail |
---|
protected java.util.Map buildSimpleList(java.util.List replicationDefinitions, java.util.Comparator sorter)
protected java.util.Map buildDetails(org.alfresco.service.cmr.replication.ReplicationDefinition rd)
protected void setStatus(org.alfresco.service.cmr.replication.ReplicationDefinition replicationDefinition, java.util.Map model)
protected void setStatus(org.alfresco.service.cmr.replication.ReplicationDefinition replicationDefinition, org.alfresco.service.cmr.action.ExecutionDetails details, java.util.Map model)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |