Package org.alfresco.rest.v0
Class RecordCategoriesAPI
java.lang.Object
org.alfresco.rest.core.v0.BaseAPI
org.alfresco.rest.v0.RecordCategoriesAPI
Methods to make API requests using v0 API on record categories
- Since:
- 2.5
- Author:
- Oana Nechiforescu
-
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, NODE_PREFIX, NODE_REF_WORKSPACE_SPACES_STORE, RM_SITE_ID, SHARE_ACTION_API, UPDATE_METADATA_API -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.http.HttpResponseaddDispositionScheduleSteps(String user, String password, String categoryName, Map<BaseAPI.RETENTION_SCHEDULE, String> properties) Creates a retention schedule steps for the category given as parameterorg.apache.http.HttpResponsecreateRetentionSchedule(String user, String password, String categoryName) Creates a retention schedule for the category given as parametervoiddeleteCategory(String username, String password, String categoryName) Delete a categoryvoiddeleteFolderInContainer(String username, String password, String folderName, String containerName) Delete a folder inside a container in RM sitevoiddeleteSubCategory(String username, String password, String categoryName, String subCategoryName) Delete a sub-categorygetDispositionScheduleNodeRef(String user, String password, String categoryName) Get the disposition schedule nodeReforg.json.JSONObjectgetNextDispositionAction(String user, String password, String recordId) Get the Next Disposition ActiongetRetentionProperties(String authority, String instructions) Returns a map of retention propertiesorg.apache.http.HttpResponsesetRetentionScheduleGeneralFields(String user, String password, String retentionNodeRef, Map<BaseAPI.RETENTION_SCHEDULE, String> retentionProperties, Boolean appliedToRecords) Sets retention schedule authority and instructions, also if it is applied to records or 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
-
RecordCategoriesAPI
public RecordCategoriesAPI()
-
-
Method Details
-
createRetentionSchedule
public org.apache.http.HttpResponse createRetentionSchedule(String user, String password, String categoryName) Creates a retention schedule for the category given as parameter- Parameters:
user- the user creating the disposition schedulepassword- the user's passwordcategoryName- the category name to create the retention schedule for- Returns:
- The HTTP Response.
-
getDispositionScheduleNodeRef
Get the disposition schedule nodeRef- Parameters:
user-password-categoryName-- Returns:
- the disposition schedule nodeRef
-
setRetentionScheduleGeneralFields
public org.apache.http.HttpResponse setRetentionScheduleGeneralFields(String user, String password, String retentionNodeRef, Map<BaseAPI.RETENTION_SCHEDULE, String> retentionProperties, Boolean appliedToRecords) Sets retention schedule authority and instructions, also if it is applied to records or folders- Parameters:
user- the user creating the disposition schedulepassword- the user's passwordretentionNodeRef- the retention nodeRef- Returns:
- The HTTP Response.
-
addDispositionScheduleSteps
public org.apache.http.HttpResponse addDispositionScheduleSteps(String user, String password, String categoryName, Map<BaseAPI.RETENTION_SCHEDULE, String> properties) Creates a retention schedule steps for the category given as parameter- Parameters:
user- the user creating the disposition schedulepassword- the user's passwordcategoryName- the category name to create the retention schedule for- Returns:
- The HTTP Response.
-
deleteCategory
Delete a category- Parameters:
username- user's usernamepassword- its passwordcategoryName- the name of the category- Throws:
AssertionError- if the delete was unsuccessful.
-
deleteSubCategory
public void deleteSubCategory(String username, String password, String categoryName, String subCategoryName) Delete a sub-category- Parameters:
username- user's usernamepassword- its passwordcategoryName- the name of the sub-category- Throws:
AssertionError- if the deletion was unsuccessful.
-
deleteFolderInContainer
public void deleteFolderInContainer(String username, String password, String folderName, String containerName) Delete a folder inside a container in RM site- Parameters:
username- user's usernamepassword- its passwordfolderName- folder namecontainerName- the name of the category or container sin which the folder is- Throws:
AssertionError- if the deletion was unsuccessful.
-
getRetentionProperties
public Map<BaseAPI.RETENTION_SCHEDULE,String> getRetentionProperties(String authority, String instructions) Returns a map of retention properties- Parameters:
authority- retention authorityinstructions- retention authority- Returns:
- the map
-
getNextDispositionAction
Get the Next Disposition Action- Parameters:
user-password-recordId-- Returns:
- the next disposition schedule action
-