Class CustomRefPost
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.CustomRefPost
- All Implemented Interfaces:
org.springframework.extensions.webscripts.WebScript
Implementation for Java backed webscript to add RM custom relationship to a node.
- Author:
- Neil McErlean, Tuna Aksoy
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.extensions.webscripts.AbstractWebScript
org.springframework.extensions.webscripts.AbstractWebScript.ScriptDetails
-
Field Summary
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 -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addCustomRelationship
(org.springframework.extensions.webscripts.WebScriptRequest req) Adds a custom relationshipexecuteImpl
(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.Status status, org.springframework.extensions.webscripts.Cache cache) protected RelationshipService
Gets the relationship service instanceprotected RuleService
Gets the rule service instancevoid
setRelationshipService
(RelationshipService relationshipService) Sets the relationship service instancevoid
setRuleService
(RuleService ruleService) Sets the rule service instanceMethods 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, 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
-
Constructor Details
-
CustomRefPost
public CustomRefPost()
-
-
Method Details
-
getRelationshipService
Gets the relationship service instance- Returns:
- The relationship service instance
-
setRelationshipService
Sets the relationship service instance- Parameters:
relationshipService
- The relationship service instance
-
getRuleService
Gets the rule service instance- Returns:
- The rule service instance
-
setRuleService
Sets the rule service instance- Parameters:
ruleService
- The rule service instance
-
executeImpl
protected Map<String,Object> executeImpl(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.Status status, org.springframework.extensions.webscripts.Cache cache) - Overrides:
executeImpl
in classorg.springframework.extensions.webscripts.DeclarativeWebScript
- See Also:
-
DeclarativeWebScript.executeImpl(org.springframework.extensions.webscripts.WebScriptRequest, org.springframework.extensions.webscripts.Status, org.springframework.extensions.webscripts.Cache)
-
addCustomRelationship
protected void addCustomRelationship(org.springframework.extensions.webscripts.WebScriptRequest req) Adds a custom relationship- Parameters:
req
- The webscript request
-