Package org.alfresco.rest.v0
Class CustomDefinitionsAPI
- java.lang.Object
-
- org.alfresco.rest.core.v0.BaseAPI
-
- org.alfresco.rest.v0.CustomDefinitionsAPI
-
@Component public class CustomDefinitionsAPI extends BaseAPI
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 Constructor Description CustomDefinitionsAPI()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateRelationship(String adminUser, String adminPassword, String recordNodeIdFrom, String recordNodeIdTo, CustomDefinitions relationshipType)Helper method to add custom reference instance to the specified record nodeStringgetCustomReferenceId(String adminUser, String adminPassword, String customDefinition)Helper method to get the reference id for a custom reference-
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
-
-
-
-
Method Detail
-
getCustomReferenceId
public String getCustomReferenceId(String adminUser, String adminPassword, String customDefinition)
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.
-
-