Package org.alfresco.rest.v0.service
Class DispositionScheduleService
- java.lang.Object
-
- org.alfresco.rest.core.v0.BaseAPI
-
- org.alfresco.rest.v0.service.DispositionScheduleService
-
@Service public class DispositionScheduleService extends BaseAPI
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 Constructor Description DispositionScheduleService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAccessionStep(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 folders-
Methods 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
-
-
-
-
Method Detail
-
addRetainAfterPeriodStep
public void addRetainAfterPeriodStep(String categoryName, String period)
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
public void addCutOffImmediatelyStep(String categoryName)
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
public void addDestroyWithGhostingImmediatelyAfterCutOff(String categoryName)
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
public void addCutOffAfterEventStep(String categoryName, String events)
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
public void addTransferAfterEventStep(String categoryName, String location, String events)
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
public void createCategoryRetentionSchedule(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 folders- Parameters:
categoryName- the category on which is created the retention scheduleappliedToRecords- true if is applied on records, false if is applied on folders
-
-