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
public class CustomRefPost extends AbstractRmWebScript
Implementation for Java backed webscript to add RM custom relationship to a node.- Author:
- Neil McErlean, Tuna Aksoy
-
-
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 Constructor Description CustomRefPost()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addCustomRelationship(org.springframework.extensions.webscripts.WebScriptRequest req)
Adds a custom relationshipprotected Map<String,Object>
executeImpl(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.Status status, org.springframework.extensions.webscripts.Cache cache)
protected RelationshipService
getRelationshipService()
Gets the relationship service instanceprotected RuleService
getRuleService()
Gets the rule service instancevoid
setRelationshipService(RelationshipService relationshipService)
Sets the relationship service instancevoid
setRuleService(RuleService ruleService)
Sets the rule 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, 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
-
-
-
-
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
-
getRuleService
protected RuleService getRuleService()
Gets the rule service instance- Returns:
- The rule service instance
-
setRuleService
public void setRuleService(RuleService ruleService)
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
-
-