Class ActionsExecutionAPI
- java.lang.Object
-
- org.alfresco.rest.requests.ModelRequest<Request>
-
- org.alfresco.rest.rm.community.requests.RMModelRequest
-
- org.alfresco.rest.rm.community.requests.gscore.api.ActionsExecutionAPI
-
public class ActionsExecutionAPI extends RMModelRequest
Produces processed results from Core Actions API calls- Since:
- 3.1
- Author:
- Claudia Agache
-
-
Constructor Summary
Constructors Constructor Description ActionsExecutionAPI(RMRestWrapper rmRestWrapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.json.JSONObjectaddWORMLock(org.alfresco.utility.model.RepoTestModel targetNode)Add WORM lock to a node using v1 actions apiorg.json.JSONObjectaddWORMLock(org.alfresco.utility.model.RepoTestModel targetNode, int retentionPeriod)WORM lock a node for a period of daysorg.json.JSONObjectdeclareAndFile(org.alfresco.utility.model.RepoTestModel targetNode, String destinationPath)Declares and files a document as record to a record folder using v1 actions apiorg.json.JSONObjectdeclareAndFileVersionAsRecord(org.alfresco.utility.model.RepoTestModel targetNode, String destinationPath)Declares and file a document version as record to a record folder using v1 actions apiorg.json.JSONObjectdeclareAsRecord(org.alfresco.utility.model.RepoTestModel targetNode)Declares a document as record using v1 actions apiorg.json.JSONObjectdeclareVersionAsRecord(org.alfresco.utility.model.RepoTestModel targetNode)Declares a document version as record using v1 actions api
-
-
-
Constructor Detail
-
ActionsExecutionAPI
public ActionsExecutionAPI(RMRestWrapper rmRestWrapper)
- Parameters:
rmRestWrapper- RM REST Wrapper
-
-
Method Detail
-
declareAndFile
public org.json.JSONObject declareAndFile(org.alfresco.utility.model.RepoTestModel targetNode, String destinationPath) throws ExceptionDeclares and files a document as record to a record folder using v1 actions api- Parameters:
targetNode- the node on which the action is executeddestinationPath- the path to the record folder- Throws:
Exception
-
declareAsRecord
public org.json.JSONObject declareAsRecord(org.alfresco.utility.model.RepoTestModel targetNode) throws ExceptionDeclares a document as record using v1 actions api- Parameters:
targetNode- the node on which the action is executed- Throws:
Exception
-
declareAndFileVersionAsRecord
public org.json.JSONObject declareAndFileVersionAsRecord(org.alfresco.utility.model.RepoTestModel targetNode, String destinationPath) throws ExceptionDeclares and file a document version as record to a record folder using v1 actions api- Parameters:
targetNode- the node on which the action is executeddestinationPath- the path to the record folder- Throws:
Exception
-
declareVersionAsRecord
public org.json.JSONObject declareVersionAsRecord(org.alfresco.utility.model.RepoTestModel targetNode) throws ExceptionDeclares a document version as record using v1 actions api- Parameters:
targetNode- the node on which the action is executed- Throws:
Exception
-
addWORMLock
public org.json.JSONObject addWORMLock(org.alfresco.utility.model.RepoTestModel targetNode)
Add WORM lock to a node using v1 actions api- Parameters:
targetNode- the node on which the action is executed- Throws:
Exception
-
addWORMLock
public org.json.JSONObject addWORMLock(org.alfresco.utility.model.RepoTestModel targetNode, int retentionPeriod)WORM lock a node for a period of days- Parameters:
targetNode- the node on which the action is executedretentionPeriod- the retention period in days for the WORM lock- Throws:
Exception
-
-