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.getRetentionSchedule(String recordCategoryId) getRetentionSchedule(String recordCategoryId, 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
-