Class DispositionLifecycleGet

  • All Implemented Interfaces:
    org.springframework.extensions.webscripts.WebScript

    public class DispositionLifecycleGet
    extends DispositionAbstractBase
    Implementation for Java backed webscript to return full details about a disposition lifecycle (next disposition action).
    Author:
    Gavin Cornwell
    • Constructor Detail

      • DispositionLifecycleGet

        public DispositionLifecycleGet()
    • Method Detail

      • setPersonService

        public void setPersonService​(org.alfresco.service.cmr.security.PersonService personService)
        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 class org.springframework.extensions.webscripts.DeclarativeWebScript
      • createEventModel

        protected Map<String,​Object> createEventModel​(EventCompletionDetails event)
        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

        protected void addUsersRealName​(Map<String,​Object> model,
                                        String userName,
                                        String propertyPrefix)
        Adds the given username's first and last name to the given model.
        Parameters:
        model - The model to add the first and last name to
        userName - The username of the user to lookup
        propertyPrefix - The prefix of the property name to use when adding to the model