Class HoldsAPI
java.lang.Object
org.alfresco.rest.requests.ModelRequest<Request>
org.alfresco.rest.rm.community.requests.RMModelRequest
org.alfresco.rest.rm.community.requests.gscore.api.HoldsAPI
Holds REST API Wrapper
- Author:
- Damian Ujma
-
Field Summary
Fields inherited from class org.alfresco.rest.requests.ModelRequest
restWrapper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddChildToHold(HoldChild holdChild, String holdId) addChildToHold(HoldChild holdChild, String holdId, String parameters) Adds the relationship between a child and a parent hold.voiddeleteHold(String holdId) Deletes a hold.voiddeleteHoldChild(String holdId, String holdChildId) voiddeleteHoldChild(String holdId, String holdChildId, String parameters) Deletes the relationship between a child and a parent hold.deleteHoldWithReason(HoldDeletionReason reason, String holdId) Deletes a hold and stores a reason for deletion in the audit log.getChildren(String holdId) getChildren(String holdId, String parameters) Gets the children of a hold.Gets a hold.updateHold(Hold holdModel, String holdId) updateHold(Hold holdModel, String holdId, String parameters) Updates a hold.Methods inherited from class org.alfresco.rest.requests.ModelRequest
include, includePath, usingParams
-
Constructor Details
-
HoldsAPI
- Parameters:
rmRestWrapper-
-
-
Method Details
-
getHold
Gets a hold.- Parameters:
holdId- The identifier of a holdparameters- The URL parameters to add- Returns:
- The
Holdfor the givenholdId - Throws:
RuntimeException- for the following cases:holdIdis not a valid format- authentication fails
- current user does not have permission to read
holdId holdIddoes not exist
-
getHold
-
updateHold
Updates a hold.- Parameters:
holdModel- The hold model which holds the informationholdId- The identifier of the holdparameters- The URL parameters to add- Throws:
RuntimeException- for the following cases:- the update request is invalid or
holdIdis not a valid format orholdModelis invalid - authentication fails
- current user does not have permission to update
holdId holdIddoes not exist
- the update request is invalid or
-
updateHold
-
deleteHold
Deletes a hold.- Parameters:
holdId- The identifier of a hold- Throws:
RuntimeException- for the following cases:holdIdis not a valid format- authentication fails
- current user does not have permission to delete
holdId holdIddoes not exist
-
deleteHoldWithReason
Deletes a hold and stores a reason for deletion in the audit log.- Parameters:
reason- The reason for hold deletionholdId- The identifier of a hold- Throws:
RuntimeException- for the following cases:holdIdis not a valid format orreasonis invalid- authentication fails
- current user does not have permission to delete
holdId holdIddoes not exist
-
addChildToHold
Adds the relationship between a child and a parent hold.- Parameters:
holdChild- The hold child modelholdId- The identifier of a holdparameters- The URL parameters to add- Returns:
- The created
Hold - Throws:
RuntimeException- for the following cases:holdIdis not a valid format orholdIdis invalid- authentication fails
- current user does not have permission to add children to
holdId holdIddoes not exist
-
addChildToHold
-
getChildren
Gets the children of a hold.- Parameters:
holdId- The identifier of a holdparameters- The URL parameters to add- Returns:
- The
HoldChildCollectionfor the givenholdId - Throws:
RuntimeException- for the following cases:- authentication fails
- current user does not have permission to read
holdId holdIddoes not exist
-
getChildren
-
deleteHoldChild
Deletes the relationship between a child and a parent hold.- Parameters:
holdChildId- The identifier of hold childholdId- The identifier of a holdparameters- The URL parameters to add- Throws:
RuntimeException- for the following cases:holdIdorholdChildIdis invalid- authentication fails
- current user does not have permission to delete children from
holdId holdIddoes not exist
-
deleteHoldChild
-