Class FilePlanAPI
java.lang.Object
org.alfresco.rest.requests.ModelRequest<Request>
org.alfresco.rest.rm.community.requests.RMModelRequest
org.alfresco.rest.rm.community.requests.gscore.api.FilePlanAPI
File plan REST API Wrapper
- Since:
- 2.6
- Author:
- Ramona Popa, Tuna Aksoy
-
Field Summary
Fields inherited from class org.alfresco.rest.requests.ModelRequest
restWrapper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateRootRecordCategory(RecordCategory recordCategoryModel, String filePlanId) createRootRecordCategory(RecordCategory recordCategoryModel, String filePlanId, String parameters) Creates a root record category.getFilePlan(String filePlanId) getFilePlan(String filePlanId, String parameters) Gets a file plan.getRootRecordCategories(String filePlanId) getRootRecordCategories(String filePlanId, String parameters) Gets the children (root categories) of a file plan.updateFilePlan(FilePlan filePlanModel, String filePlanId) updateFilePlan(FilePlan filePlanModel, String filePlanId, String parameters) Updates a file plan.Methods inherited from class org.alfresco.rest.requests.ModelRequest
include, includePath, usingParams
-
Constructor Details
-
FilePlanAPI
Constructor.- Parameters:
rmRestWrapper- RM REST Wrapper
-
-
Method Details
-
getFilePlan
-
getFilePlan
Gets a file plan.- Parameters:
filePlanId- The identifier of a file planparameters- The URL parameters to add- Returns:
- The
FilePlanfor the givenfilePlanId - Throws:
RuntimeException- for the following cases:filePlanIdis not a valid format- authentication fails
- current user does not have permission to read
filePlanId filePlanIddoes not exist
-
getRootRecordCategories
-
getRootRecordCategories
Gets the children (root categories) of a file plan.- Parameters:
filePlanId- The identifier of a file planparameters- The URL parameters to add- Returns:
- The
RecordCategoryCollectionfor the givenfilePlanId - Throws:
RuntimeException- for the following cases:- authentication fails
- current user does not have permission to read
filePlanId filePlanIddoes not exist
-
createRootRecordCategory
public RecordCategory createRootRecordCategory(RecordCategory recordCategoryModel, String filePlanId) -
createRootRecordCategory
public RecordCategory createRootRecordCategory(RecordCategory recordCategoryModel, String filePlanId, String parameters) Creates a root record category.- Parameters:
recordCategoryModel- The record category model which holds the informationfilePlanId- The identifier of a file planparameters- The URL parameters to add- Returns:
- The created
RecordCategory - Throws:
RuntimeException- for the following cases:filePlanIdis not a valid format orfilePlanIdis invalid- authentication fails
- current user does not have permission to add children to
filePlanId filePlanIdsdoes not exist- new name clashes with an existing node in the current parent container
- model integrity exception, including node name with invalid characters
-
updateFilePlan
-
updateFilePlan
Updates a file plan.- Parameters:
filePlanModel- The file plan model which holds the informationfilePlanId- The identifier of the file planparameters- The URL parameters to add- Throws:
RuntimeException- for the following cases:- the update request is invalid or
filePlanIdis not a valid format orfilePlanModelis invalid - authentication fails
- current user does not have permission to update
filePlanId filePlanIddoes not exist- model integrity exception, including file name with invalid characters
- the update request is invalid or
-