Class CustomReferenceDefinitionBase
- java.lang.Object
-
- org.springframework.extensions.webscripts.AbstractWebScript
-
- org.springframework.extensions.webscripts.DeclarativeWebScript
-
- org.alfresco.module.org_alfresco_module_rm.script.AbstractRmWebScript
-
- org.alfresco.module.org_alfresco_module_rm.script.CustomReferenceDefinitionBase
-
- All Implemented Interfaces:
org.springframework.extensions.webscripts.WebScript
- Direct Known Subclasses:
CustomReferenceDefinitionPost
,CustomReferenceDefinitionPut
,CustomReferenceDefinitionsGet
public class CustomReferenceDefinitionBase extends AbstractRmWebScript
Base class for custom reference definition classes- Since:
- 2.3
- Author:
- Tuna Aksoy
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
CUSTOM_REFS
protected static String
LABEL
protected static String
REF_ID
protected static String
REFERENCE_TYPE
Constants for the custom reference definition classesprotected static String
SOURCE
protected static String
TARGET
protected static String
URL
-
Fields inherited from class org.alfresco.module.org_alfresco_module_rm.script.AbstractRmWebScript
ID, INVERT, PATH_SEPARATOR, STORE_ID, STORE_TYPE, SUCCESS
-
-
Constructor Summary
Constructors Constructor Description CustomReferenceDefinitionBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected RelationshipDisplayName
createDisplayName(org.json.JSONObject requestContent)
Creates the relationship display name from request contentprotected RelationshipService
getRelationshipService()
Gets the relationship service instancevoid
setRelationshipService(RelationshipService relationshipService)
Sets the relationship service instance-
Methods inherited from class org.alfresco.module.org_alfresco_module_rm.script.AbstractRmWebScript
getDispositionService, getNamespaceService, getNodeService, parseRequestForNodeRef, setDispositionService, setNamespaceService, setNodeService
-
Methods inherited from class org.springframework.extensions.webscripts.DeclarativeWebScript
execute, executeFinallyImpl, executeImpl, executeImpl, executeImpl, getTemplateModel, renderFormatTemplate
-
Methods inherited from class org.springframework.extensions.webscripts.AbstractWebScript
addModuleBundleToCache, checkModuleBundleCache, createArgs, createArgsM, createHeaders, createHeadersM, createScriptParameters, createStatusException, createTemplateParameters, executeScript, getContainer, getDescription, getExecuteScript, getResources, getStatusTemplate, init, renderString, renderString, renderTemplate, sendStatus, setURLModelFactory, toString
-
-
-
-
Field Detail
-
REFERENCE_TYPE
protected static final String REFERENCE_TYPE
Constants for the custom reference definition classes- See Also:
- Constant Field Values
-
REF_ID
protected static final String REF_ID
- See Also:
- Constant Field Values
-
LABEL
protected static final String LABEL
- See Also:
- Constant Field Values
-
SOURCE
protected static final String SOURCE
- See Also:
- Constant Field Values
-
TARGET
protected static final String TARGET
- See Also:
- Constant Field Values
-
CUSTOM_REFS
protected static final String CUSTOM_REFS
- See Also:
- Constant Field Values
-
URL
protected static final String URL
- See Also:
- Constant Field Values
-
-
Method Detail
-
getRelationshipService
protected RelationshipService getRelationshipService()
Gets the relationship service instance- Returns:
- The relationship service instance
-
setRelationshipService
public void setRelationshipService(RelationshipService relationshipService)
Sets the relationship service instance- Parameters:
relationshipService
- The relationship service instance
-
createDisplayName
protected RelationshipDisplayName createDisplayName(org.json.JSONObject requestContent)
Creates the relationship display name from request content- Parameters:
requestContent
- The request content as json object- Returns:
- The relationship display name
-
-