mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
APPS-269 Automate AC for Worm Lock Action
This commit is contained in:
@@ -59,4 +59,6 @@ public class FilePlanComponentAspects
|
||||
|
||||
//declare version as record aspect
|
||||
public static final String VERSION_AS_RECORD="rmv:versionRecord";
|
||||
|
||||
public static final String ASPECT_STORE_SELECTOR="cm:storeSelector";
|
||||
}
|
||||
|
@@ -49,7 +49,8 @@ public enum ActionsOnRule
|
||||
SET_PROPERTY_VALUE_RM("setPropertyValue"),
|
||||
HIDE_RECORD("hide-record"),
|
||||
DECLARE_VERSION_AS_RECORD("declare-as-version-record"),
|
||||
DECLARE_AS_RECORD("create-record");
|
||||
DECLARE_AS_RECORD("create-record"),
|
||||
WORM_LOCK("worm");
|
||||
|
||||
private String actionValue;
|
||||
|
||||
|
@@ -102,4 +102,16 @@ public class ActionsExecutionAPI extends RMModelRequest
|
||||
return getRmRestWrapper().withCoreAPI().usingActions()
|
||||
.executeAction(ActionsOnRule.DECLARE_VERSION_AS_RECORD.getActionValue(), targetNode);
|
||||
}
|
||||
|
||||
/**
|
||||
* Add WORM lock to a node using v1 actions api
|
||||
*
|
||||
* @param targetNode the node on which the action is executed
|
||||
* @throws Exception
|
||||
*/
|
||||
public JSONObject addWORMLock(RepoTestModel targetNode) throws Exception
|
||||
{
|
||||
return getRmRestWrapper().withCoreAPI().usingActions()
|
||||
.executeAction(ActionsOnRule.WORM_LOCK.getActionValue(), targetNode);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user