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.voidcancelBulkOperation(String holdId, String bulkStatusId, BulkBodyCancel bulkBodyCancel) voidcancelBulkOperation(String holdId, String bulkStatusId, BulkBodyCancel bulkBodyCancel, String parameters) Cancels a bulk operation for a 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.getBulkStatus(String holdId, String holdBulkStatusId) getBulkStatus(String holdId, String holdBulkStatusId, String parameters) Gets the status of a bulk process for a hold.getBulkStatuses(String holdId) getBulkStatuses(String holdId, String parameters) Gets the statuses of all bulk processes for a hold.getChildren(String holdId) getChildren(String holdId, String parameters) Gets the children of a hold.Gets a hold.startBulkProcess(HoldBulkOperation holdBulkOperation, String hold) startBulkProcess(HoldBulkOperation holdBulkOperation, String hold, String parameters) Starts a bulk process for 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
-
startBulkProcess
public HoldBulkOperationEntry startBulkProcess(HoldBulkOperation holdBulkOperation, String hold, String parameters) Starts a bulk process for a hold.- Parameters:
holdBulkOperation- The bulk operation detailshold- The identifier of a holdparameters- The URL parameters to add- Returns:
- The
HoldBulkOperationEntryfor the started bulk process - Throws:
RuntimeException- for the following cases:holdorholdBulkOperationis invalid- authentication fails
- current user does not have permission to start a bulk process for
hold holddoes not exist
-
startBulkProcess
-
getBulkStatus
Gets the status of a bulk process for a hold.- Parameters:
holdId- The identifier of a holdholdBulkStatusId- The identifier of a bulk status operationparameters- The URL parameters to add- Returns:
- The
HoldBulkStatusfor the givenholdIdandholdBulkStatusId - Throws:
RuntimeException- for the following cases:holdIdorholdBulkStatusIdis invalid- authentication fails
- current user does not have permission to get the bulk status for
holdId holdIdorholdBulkStatusIddoes not exist
-
getBulkStatus
-
getBulkStatuses
Gets the statuses of all bulk processes for a hold.- Parameters:
holdId- The identifier of a holdparameters- The URL parameters to add- Returns:
- The
HoldBulkStatusCollectionfor the givenholdId - Throws:
RuntimeException- for the following cases:holdIdis invalid- authentication fails
- current user does not have permission to get the bulk statuses for
holdId holdIddoes not exist
-
getBulkStatuses
-
cancelBulkOperation
public void cancelBulkOperation(String holdId, String bulkStatusId, BulkBodyCancel bulkBodyCancel, String parameters) Cancels a bulk operation for a hold.- Parameters:
holdId- The identifier of a holdbulkStatusId- The identifier of a bulk status operationbulkBodyCancel- The bulk body cancel modelparameters- The URL parameters to add- Throws:
RuntimeException- for the following cases:holdId,bulkStatusIdorbulkBodyCancelis invalid- authentication fails
- current user does not have permission to cancel the bulk operation for
bulkStatusId holdIdorbulkStatusIddoes not exist
-
cancelBulkOperation
-