Class AbstractRmWebScript
- java.lang.Object
-
- org.springframework.extensions.webscripts.AbstractWebScript
-
- org.springframework.extensions.webscripts.DeclarativeWebScript
-
- org.alfresco.module.org_alfresco_module_rm.script.AbstractRmWebScript
-
- All Implemented Interfaces:
org.springframework.extensions.webscripts.WebScript
- Direct Known Subclasses:
BaseCustomPropertyWebScript
,CustomPropertyDefinitionDelete
,CustomRefDelete
,CustomReferenceDefinitionBase
,CustomRefPost
,CustomRefsGet
,DispositionAbstractBase
,RecordedVersionConfigGet
,RecordedVersionConfigPost
,RelationshipDelete
,RelationshipLabelsGet
,RelationshipsGet
public abstract class AbstractRmWebScript extends org.springframework.extensions.webscripts.DeclarativeWebScript
Abstract base class for all RM webscript classes. Includes utility methods for processing the webscript request.- Author:
- Neil McErlean, Tuna Aksoy, Gavin Cornwell
-
-
Constructor Summary
Constructors Constructor Description AbstractRmWebScript()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DispositionService
getDispositionService()
Gets the disposition service instanceprotected NamespaceService
getNamespaceService()
Gets the namespace service instanceprotected NodeService
getNodeService()
Gets the node service instanceprotected NodeRef
parseRequestForNodeRef(org.springframework.extensions.webscripts.WebScriptRequest req)
Parses the request and providing it's valid returns the NodeRef.void
setDispositionService(DispositionService dispositionService)
Sets the disposition service instancevoid
setNamespaceService(NamespaceService namespaceService)
Sets the namespace service instancevoid
setNodeService(NodeService nodeService)
Sets the node service instance-
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
-
PATH_SEPARATOR
protected static final String PATH_SEPARATOR
Constants- See Also:
- Constant Field Values
-
STORE_TYPE
protected static final String STORE_TYPE
- See Also:
- Constant Field Values
-
STORE_ID
protected static final String STORE_ID
- See Also:
- Constant Field Values
-
ID
protected static final String ID
- See Also:
- Constant Field Values
-
SUCCESS
protected static final String SUCCESS
- See Also:
- Constant Field Values
-
INVERT
protected static final String INVERT
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDispositionService
protected DispositionService getDispositionService()
Gets the disposition service instance- Returns:
- The disposition service instance
-
setDispositionService
public void setDispositionService(DispositionService dispositionService)
Sets the disposition service instance- Parameters:
dispositionService
- The disposition service instance
-
getNamespaceService
protected NamespaceService getNamespaceService()
Gets the namespace service instance- Returns:
- The namespace service instance
-
setNamespaceService
public void setNamespaceService(NamespaceService namespaceService)
Sets the namespace service instance- Parameters:
namespaceService
- The namespace service instance
-
getNodeService
protected NodeService getNodeService()
Gets the node service instance- Returns:
- The node service instance
-
setNodeService
public void setNodeService(NodeService nodeService)
Sets the node service instance- Parameters:
nodeService
- The node service instance
-
parseRequestForNodeRef
protected NodeRef parseRequestForNodeRef(org.springframework.extensions.webscripts.WebScriptRequest req)
Parses the request and providing it's valid returns the NodeRef.- Parameters:
req
- The webscript request- Returns:
- The NodeRef passed in the request
-
-