Package org.alfresco.rest.v0.service
Class DispositionScheduleService
java.lang.Object
org.alfresco.rest.core.v0.BaseAPI
org.alfresco.rest.v0.service.DispositionScheduleService
Service for different disposition schedule actions
- Since:
- 2.6.2
- Author:
- jcule, cagache
-
Nested Class Summary
Nested classes/interfaces inherited from class org.alfresco.rest.core.v0.BaseAPI
BaseAPI.PermissionType, BaseAPI.RETENTION_SCHEDULE, BaseAPI.RM_ACTIONS, BaseAPI.RMProperty -
Field Summary
Fields inherited from class org.alfresco.rest.core.v0.BaseAPI
ACTIONS_API, contentService, LOGGER, NODE_PREFIX, NODE_REF_WORKSPACE_SPACES_STORE, RM_ACTIONS_API, RM_SITE_ID, SHARE_ACTION_API, UPDATE_METADATA_API -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAccessionStep(String categoryName, Boolean timeOrEvent, String events, String period, RetentionPeriodProperty periodProperty, Boolean combineConditions) Helper method for adding an accession stepvoidaddCutOffAfterEventStep(String categoryName, String events) Helper method for adding a cut off after an event occurs stepvoidaddCutOffAfterPeriodStep(String categoryName, String period, RetentionPeriodProperty periodProperty) Helper method for adding a cut off after period stepvoidaddCutOffImmediatelyStep(String categoryName) Helper method for adding a cut off immediately after created date stepvoidaddDestroyWithGhostingAfterPeriodStep(String categoryName, String period, RetentionPeriodProperty periodProperty) Helper method for adding a destroy step with ghosting after periodvoidaddDestroyWithGhostingImmediatelyAfterCutOff(String categoryName) Helper method for adding a destroy step with ghosting immediately after CUT OFF datevoidaddDestroyWithoutGhostingAfterPeriodStep(String categoryName, String period, RetentionPeriodProperty periodProperty) Helper method for adding a destroy step without ghosting after periodvoidaddRetainAfterPeriodStep(String categoryName, String period) Helper method for adding a retain after period stepvoidaddTransferAfterEventStep(String categoryName, String location, String events) Helper method for adding a transfer after an event occurs stepvoidcreateCategoryRetentionSchedule(String categoryName, Boolean appliedToRecords) Helper method to create retention schedule with general fields for the given category as admin and apply it to the records/record foldersvoidcreateCategoryRetentionSchedule(org.alfresco.utility.model.UserModel user, String categoryName, Boolean appliedToRecords) Helper method to create retention schedule with general fields for the given category as user and apply it to the records/ record foldersMethods inherited from class org.alfresco.rest.core.v0.BaseAPI
addPropertyToRequest, deleteItem, doDeleteRequest, doGetRequest, doPostJsonRequest, doPostRequest, doPutJsonRequest, doPutRequest, doSlingshotPostJsonRequest, facetedRequest, getFilePlanPath, getItemNodeRef, getNodeRefSpacesStore, getObjectByPath, getPropertyValue, getPropertyValue, getPropertyValues, getPropertyValuesByUniquePropertyValue
-
Constructor Details
-
DispositionScheduleService
public DispositionScheduleService()
-
-
Method Details
-
addRetainAfterPeriodStep
Helper method for adding a retain after period step- Parameters:
categoryName- the category in whose schedule the step will be addedperiod- for what period the item will be retained
-
addCutOffImmediatelyStep
Helper method for adding a cut off immediately after created date step- Parameters:
categoryName- the category in whose schedule the step will be added
-
addCutOffAfterPeriodStep
public void addCutOffAfterPeriodStep(String categoryName, String period, RetentionPeriodProperty periodProperty) Helper method for adding a cut off after period step- Parameters:
categoryName- the category in whose schedule the step will be addedperiod- the period that needs to pass from periodProperty for cut off to be availableperiodProperty- the property of the dispositioned item that is used to calculate the "as of" period
-
addDestroyWithGhostingImmediatelyAfterCutOff
Helper method for adding a destroy step with ghosting immediately after CUT OFF date- Parameters:
categoryName- the category in whose schedule the step will be added
-
addDestroyWithGhostingAfterPeriodStep
public void addDestroyWithGhostingAfterPeriodStep(String categoryName, String period, RetentionPeriodProperty periodProperty) Helper method for adding a destroy step with ghosting after period- Parameters:
categoryName- the category in whose schedule the step will be addedperiod- the period that needs to pass for destroy to be availableperiodProperty- the property of the dispositioned item that is used to calculate the "as of" period
-
addDestroyWithoutGhostingAfterPeriodStep
public void addDestroyWithoutGhostingAfterPeriodStep(String categoryName, String period, RetentionPeriodProperty periodProperty) Helper method for adding a destroy step without ghosting after period- Parameters:
categoryName- the category in whose schedule the step will be addedperiod- the period that needs to pass for destroy to be availableperiodProperty- the property of the dispositioned item that is used to calculate the "as of" period
-
addCutOffAfterEventStep
Helper method for adding a cut off after an event occurs step- Parameters:
categoryName- the category in whose schedule the step will be addedevents- the events that need to occur for cut off to be available
-
addTransferAfterEventStep
Helper method for adding a transfer after an event occurs step- Parameters:
categoryName- the category in whose schedule the step will be addedlocation- the transfer locationevents- the events that need to occur for transfer to be available
-
addAccessionStep
public void addAccessionStep(String categoryName, Boolean timeOrEvent, String events, String period, RetentionPeriodProperty periodProperty, Boolean combineConditions) Helper method for adding an accession step- Parameters:
timeOrEvent-events-period-periodProperty-combineConditions-
-
createCategoryRetentionSchedule
public void createCategoryRetentionSchedule(org.alfresco.utility.model.UserModel user, String categoryName, Boolean appliedToRecords) Helper method to create retention schedule with general fields for the given category as user and apply it to the records/ record folders- Parameters:
user- the user who creates the retention schedulecategoryName- the category on which is created the retention scheduleappliedToRecords- true if is applied on records, false if is applied on folders
-
createCategoryRetentionSchedule
Helper method to create retention schedule with general fields for the given category as admin and apply it to the records/record folders- Parameters:
categoryName- the category on which is created the retention scheduleappliedToRecords- true if is applied on records, false if is applied on folders
-