Class DispositionLifecycleGet
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.DispositionAbstractBase
org.alfresco.module.org_alfresco_module_rm.script.DispositionLifecycleGet
- All Implemented Interfaces:
org.springframework.extensions.webscripts.WebScript
Implementation for Java backed webscript to return full details
about a disposition lifecycle (next disposition action).
- Author:
- Gavin Cornwell
-
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.DispositionAbstractBase
COMBINE_DISPOSITION_STEP_CONDITIONS
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
Adds the given username's first and last name to the given model.Helper to create a model to represent the given event execution.executeImpl
(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.Status status, org.springframework.extensions.webscripts.Cache cache) void
setPersonService
(PersonService personService) Sets the PersonService instanceMethods inherited from class org.alfresco.module.org_alfresco_module_rm.script.DispositionAbstractBase
createActionDefModel, getDispositionScheduleModel, parseRequestForActionDefinition, parseRequestForSchedule
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
-
Constructor Details
-
DispositionLifecycleGet
public DispositionLifecycleGet()
-
-
Method Details
-
setPersonService
Sets the PersonService instance- Parameters:
personService
- The PersonService 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
-
createEventModel
Helper to create a model to represent the given event execution.- Parameters:
event
- The event to create a model for- Returns:
- Map representing the model
-
addUsersRealName
Adds the given username's first and last name to the given model.- Parameters:
model
- The model to add the first and last name touserName
- The username of the user to lookuppropertyPrefix
- The prefix of the property name to use when adding to the model
-