Class RetentionScheduleAPI
java.lang.Object
org.alfresco.rest.requests.ModelRequest<Request>
org.alfresco.rest.rm.community.requests.RMModelRequest
org.alfresco.rest.rm.community.requests.gscore.api.RetentionScheduleAPI
-
Field Summary
Fields inherited from class org.alfresco.rest.requests.ModelRequest
restWrapper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateRetentionSchedule(RetentionSchedule retentionScheduleModel, String recordCategoryId) createRetentionSchedule(RetentionSchedule retentionScheduleModel, String recordCategoryId, String parameters) Creates a retention schedule.createRetentionScheduleStep(RetentionScheduleActionDefinition retentionScheduleActionDefinition, String retentionScheduleId) SeecreateRetentionScheduleStep(RetentionScheduleActionDefinition, String)(RetentionSchedule, String, String)}createRetentionScheduleStep(RetentionScheduleActionDefinition retentionScheduleActionDefinition, String retentionScheduleId, String parameters) Creates a step in the retention schedule.getRetentionSchedule(String recordCategoryId) getRetentionSchedule(String recordCategoryId, String parameters) Gets the retentionSchedule of a record category.getRetentionScheduleStep(String recordCategoryId) getRetentionScheduleStep(String retentionScheduleId, String parameters) Gets the retentionSchedule of a record category.Methods inherited from class org.alfresco.rest.requests.ModelRequest
include, includePath, usingParams
-
Constructor Details
-
RetentionScheduleAPI
- Parameters:
rmRestWrapper-
-
-
Method Details
-
createRetentionSchedule
public RetentionSchedule createRetentionSchedule(RetentionSchedule retentionScheduleModel, String recordCategoryId, String parameters) Creates a retention schedule.- Parameters:
retentionScheduleModel- The retentionSchedule modelrecordCategoryId- The identifier of a record categoryparameters- The URL parameters to add- Returns:
- The created
RetentionSchedule - Throws:
RuntimeException- for the following cases:recordCategoryIdis not a valid format orrecordCategoryIdis invalid- authentication fails
- current user does not have permission to add children to
recordCategoryId recordCategoryIddoes not exist- new name clashes with an existing node in the current parent container
-
createRetentionSchedule
public RetentionSchedule createRetentionSchedule(RetentionSchedule retentionScheduleModel, String recordCategoryId) -
getRetentionSchedule
Gets the retentionSchedule of a record category.- Parameters:
recordCategoryId- The identifier of a record categoryparameters- The URL parameters to add- Returns:
- The
RetentionSchedulefor the givenrecordCategoryId - Throws:
RuntimeException- for the following cases:- authentication fails
- current user does not have permission to read
recordCategoryId recordCategoryIddoes not exist
-
getRetentionSchedule
-
createRetentionScheduleStep
public RetentionScheduleActionDefinition createRetentionScheduleStep(RetentionScheduleActionDefinition retentionScheduleActionDefinition, String retentionScheduleId, String parameters) Creates a step in the retention schedule.- Parameters:
retentionScheduleActionDefinition- The retentionScheduleActionDefinition modelretentionScheduleId- The identifier of a retention schedule idparameters- The URL parameters to add- Returns:
- The created
RetentionScheduleActionDefinition - Throws:
RuntimeException- for the following cases:retentionScheduleIdis not a valid format orretentionScheduleIdis invalid- authentication fails
- current user does not have permission to add children to
retentionScheduleId retentionScheduleIddoes not exist- new name clashes with an existing node in the current parent container
-
createRetentionScheduleStep
public RetentionScheduleActionDefinition createRetentionScheduleStep(RetentionScheduleActionDefinition retentionScheduleActionDefinition, String retentionScheduleId) SeecreateRetentionScheduleStep(RetentionScheduleActionDefinition, String)(RetentionSchedule, String, String)} -
getRetentionScheduleStep
public RetentionScheduleStepCollection getRetentionScheduleStep(String retentionScheduleId, String parameters) Gets the retentionSchedule of a record category.- Parameters:
retentionScheduleId- The identifier of a record categoryparameters- The URL parameters to add- Returns:
- The
RetentionScheduleActionDefinitionfor the givenrecordCategoryId - Throws:
RuntimeException- for the following cases:- authentication fails
- current user does not have permission to read
recordCategoryId recordCategoryIddoes not exist
-
getRetentionScheduleStep
-