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
Produces processed results from Core Actions API calls
- Since:
- 3.1
- Author:
- Claudia Agache
-
Field Summary
Fields inherited from class org.alfresco.rest.requests.ModelRequest
restWrapper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.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 apiMethods inherited from class org.alfresco.rest.requests.ModelRequest
include, includePath, usingParams
-
Constructor Details
-
ActionsExecutionAPI
- Parameters:
rmRestWrapper- RM REST Wrapper
-
-
Method Details
-
declareAndFile
public org.json.JSONObject declareAndFile(org.alfresco.utility.model.RepoTestModel targetNode, String destinationPath) throws Exception Declares 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 Exception Declares 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 Exception Declares 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 Exception Declares 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
-