Package org.alfresco.rest.v0
Class CustomDefinitionsAPI
java.lang.Object
org.alfresco.rest.core.v0.BaseAPI
org.alfresco.rest.v0.CustomDefinitionsAPI
Methods to make API requests using v0 API on Records Management Custom Model Reference Definitions
- Since:
- 2.6
- Author:
- Rodica Sutu
-
Nested Class Summary
Nested classes/interfaces inherited from class org.alfresco.rest.core.v0.BaseAPI
BaseAPI.PermissionType, BaseAPI.RETENTION_SCHEDULE, BaseAPI.RM_ACTIONS, BaseAPI.RMProperty -
Field Summary
Fields inherited from class org.alfresco.rest.core.v0.BaseAPI
ACTIONS_API, contentService, NODE_PREFIX, NODE_REF_WORKSPACE_SPACES_STORE, RM_ACTIONS_API, RM_SITE_ID, SHARE_ACTION_API, UPDATE_METADATA_API -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateRelationship(String adminUser, String adminPassword, int expectedStatus, String recordNodeIdFrom, String recordNodeIdTo, CustomDefinitions relationshipType) voidcreateRelationship(String adminUser, String adminPassword, String recordNodeIdFrom, String recordNodeIdTo, CustomDefinitions relationshipType) Helper method to add custom reference instance to the specified record nodevoiddeleteRelationship(String adminUser, String adminPassword, String recordNodeIdFrom, String recordNodeIdTo, String relationshipUniqueName) getCustomReferenceId(String adminUser, String adminPassword, String customDefinition) Helper method to get the reference id for a custom referenceorg.json.JSONObjectgetRelationshipDetails(String adminUser, String adminPassword, String nodeRef) Methods inherited from class org.alfresco.rest.core.v0.BaseAPI
addPropertyToRequest, deleteItem, doDeleteRequest, doGetRequest, doPostJsonRequest, doPostRequest, doPutJsonRequest, doPutRequest, doSlingshotPostJsonRequest, facetedRequest, getFilePlanPath, getItemNodeRef, getNodeRefSpacesStore, getObjectByPath, getPropertyValue, getPropertyValue, getPropertyValues, getPropertyValuesByUniquePropertyValue
-
Constructor Details
-
CustomDefinitionsAPI
public CustomDefinitionsAPI()
-
-
Method Details
-
getCustomReferenceId
Helper method to get the reference id for a custom reference- Parameters:
adminUser- user with administrative privilegesadminPassword- password for adminUsercustomDefinition- custom reference definition name- Returns:
reference idif the customDefinition is foundnullotherwise
-
createRelationship
public void createRelationship(String adminUser, String adminPassword, String recordNodeIdFrom, String recordNodeIdTo, CustomDefinitions relationshipType) Helper method to add custom reference instance to the specified record node- Parameters:
adminUser- user with administrative privilegesadminPassword- password for adminUserrecordNodeIdFrom- node ref to set a custom referencerecordNodeIdTo- node ref of the to recordrelationshipType- relation type to be created- Throws:
AssertionError- if the creation fails.
-
createRelationship
public void createRelationship(String adminUser, String adminPassword, int expectedStatus, String recordNodeIdFrom, String recordNodeIdTo, CustomDefinitions relationshipType) -
getRelationshipDetails
-
deleteRelationship
-