public class ReplicationModelBuilder extends Object
Modifier and Type | Class and Description |
---|---|
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
|
Constructor and Description |
---|
ReplicationModelBuilder(org.alfresco.service.cmr.repository.NodeService nodeService,
ReplicationService replicationService,
ActionTrackingService actionTrackingService) |
Modifier and Type | Method and Description |
---|---|
protected Map<String,Object> |
buildDetails(ReplicationDefinition rd)
Build a model containing the full, detailed definition for the given
Replication Definition.
|
protected Map<String,Object> |
buildSimpleList(List<ReplicationDefinition> replicationDefinitions,
Comparator<Map<String,Object>> sorter)
Build a model containing a list of simple definitions for the given
list of Replication Definitions.
|
protected void |
setStatus(ReplicationDefinition replicationDefinition,
ExecutionDetails details,
Map<String,Object> 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(ReplicationDefinition replicationDefinition,
Map<String,Object> model)
Figures out the status that's one of:
New|Running|CancelRequested|Completed|Failed|Cancelled
by merging data from the action tracking service.
|
protected static final String MODEL_DATA_ITEM
protected static final String MODEL_DATA_LIST
protected static final String DEFINITION_NAME
protected static final String DEFINITION_DESCRIPTION
protected static final String DEFINITION_STATUS
protected static final String DEFINITION_STARTED_AT
protected static final String DEFINITION_ENDED_AT
protected static final String DEFINITION_FAILURE_MESSAGE
protected static final String DEFINITION_RUNNING_ACTION_ID
protected static final String DEFINITION_PAYLOAD
protected static final String DEFINITION_TRANSFER_LOCAL_REPORT
protected static final String DEFINITION_TRANSFER_REMOTE_REPORT
protected static final String DEFINITION_ENABLED
protected static final String DEFINITION_TARGET_NAME
protected static final String DEFINITION_SCHEDULE_ENABLED
protected static final String DEFINITION_SCHEDULE_START
protected static final String DEFINITION_SCHEDULE_PERIOD
protected static final String DEFINITION_SCHEDULE_COUNT
protected org.alfresco.service.cmr.repository.NodeService nodeService
protected ReplicationService replicationService
protected ActionTrackingService actionTrackingService
public ReplicationModelBuilder(org.alfresco.service.cmr.repository.NodeService nodeService, ReplicationService replicationService, ActionTrackingService actionTrackingService)
protected Map<String,Object> buildSimpleList(List<ReplicationDefinition> replicationDefinitions, Comparator<Map<String,Object>> sorter)
protected Map<String,Object> buildDetails(ReplicationDefinition rd)
protected void setStatus(ReplicationDefinition replicationDefinition, Map<String,Object> model)
protected void setStatus(ReplicationDefinition replicationDefinition, ExecutionDetails details, Map<String,Object> model)
Copyright © 2005–2017 Alfresco Software. All rights reserved.