Class EntityVersionWebScript

java.lang.Object
org.springframework.extensions.webscripts.AbstractWebScript
fr.becpg.repo.web.scripts.entity.EntityVersionWebScript
All Implemented Interfaces:
org.springframework.extensions.webscripts.WebScript

public class EntityVersionWebScript extends org.springframework.extensions.webscripts.AbstractWebScript
The Class VersionHistoryWebScript.
Version:
$Id: $Id
Author:
querephi
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.springframework.extensions.webscripts.AbstractWebScript

    org.springframework.extensions.webscripts.AbstractWebScript.ScriptDetails
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
    private static final String
    Constant DISPLAY_FORMAT="dd MMM yyyy HH:mm:ss 'GMT'Z '('zzz')'"
     
     
    private static final org.apache.commons.logging.Log
    Constant logger
    private static final int
    Constant MAX_DESCRIPTION_LENGTH=200
    private org.alfresco.service.cmr.repository.NodeService
     
    private static final String
    Constant PARAM_MODE="mode"
    private static final String
    Constant PARAM_NODEREF="nodeRef"
    private org.alfresco.service.cmr.security.PersonService
     
    private org.alfresco.service.ServiceRegistry
     
    private org.alfresco.service.cmr.version.VersionService
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    execute(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.WebScriptResponse res)
    Get entity version history.
    private Serializable
    getEntityState(org.alfresco.service.cmr.repository.NodeRef entityNodeRef)
    getEntityState.
    private org.json.JSONObject
    getPerson(String frozenModifier)
    getPerson.
    void
    Setter for the field attributeExtractorService.
    void
    Setter for the field entityActivityService.
    void
    Setter for the field entityVersionService.
    void
    setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
    Setter for the field nodeService.
    void
    setPersonService(org.alfresco.service.cmr.security.PersonService personService)
    Setter for the field personService.
    void
    setServiceRegistry(org.alfresco.service.ServiceRegistry serviceRegistry)
    Setter for the field serviceRegistry.
    void
    setVersionService(org.alfresco.service.cmr.version.VersionService versionService)
    Setter for the field versionService.

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • PARAM_NODEREF

      private static final String PARAM_NODEREF
      Constant PARAM_NODEREF="nodeRef"
      See Also:
    • DISPLAY_FORMAT

      private static final String DISPLAY_FORMAT
      Constant DISPLAY_FORMAT="dd MMM yyyy HH:mm:ss 'GMT'Z '('zzz')'"
      See Also:
    • PARAM_MODE

      private static final String PARAM_MODE
      Constant PARAM_MODE="mode"
      See Also:
    • MAX_DESCRIPTION_LENGTH

      private static final int MAX_DESCRIPTION_LENGTH
      Constant MAX_DESCRIPTION_LENGTH=200
      See Also:
    • logger

      private static final org.apache.commons.logging.Log logger
      Constant logger
    • entityVersionService

      private EntityVersionService entityVersionService
    • entityActivityService

      private EntityActivityService entityActivityService
    • nodeService

      private org.alfresco.service.cmr.repository.NodeService nodeService
    • personService

      private org.alfresco.service.cmr.security.PersonService personService
    • attributeExtractorService

      private AttributeExtractorService attributeExtractorService
    • serviceRegistry

      private org.alfresco.service.ServiceRegistry serviceRegistry
    • versionService

      private org.alfresco.service.cmr.version.VersionService versionService
  • Constructor Details

    • EntityVersionWebScript

      public EntityVersionWebScript()
  • Method Details

    • setAttributeExtractorService

      public void setAttributeExtractorService(AttributeExtractorService attributeExtractorService)

      Setter for the field attributeExtractorService.

      Parameters:
      attributeExtractorService - a AttributeExtractorService object.
    • setEntityVersionService

      public void setEntityVersionService(EntityVersionService entityVersionService)

      Setter for the field entityVersionService.

      Parameters:
      entityVersionService - a EntityVersionService object.
    • setNodeService

      public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)

      Setter for the field nodeService.

      Parameters:
      nodeService - a NodeService object.
    • setPersonService

      public void setPersonService(org.alfresco.service.cmr.security.PersonService personService)

      Setter for the field personService.

      Parameters:
      personService - a PersonService object.
    • setServiceRegistry

      public void setServiceRegistry(org.alfresco.service.ServiceRegistry serviceRegistry)

      Setter for the field serviceRegistry.

      Parameters:
      serviceRegistry - a ServiceRegistry object.
    • setVersionService

      public void setVersionService(org.alfresco.service.cmr.version.VersionService versionService)

      Setter for the field versionService.

      Parameters:
      versionService - a VersionService object
    • setEntityActivityService

      public void setEntityActivityService(EntityActivityService entityActivityService)

      Setter for the field entityActivityService.

      Parameters:
      entityActivityService - a EntityActivityService object
    • execute

      public void execute(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.WebScriptResponse res) throws IOException
      Get entity version history.
      Throws:
      IOException
    • getEntityState

      private Serializable getEntityState(org.alfresco.service.cmr.repository.NodeRef entityNodeRef)

      getEntityState.

      Parameters:
      entityNodeRef - a NodeRef object
      Returns:
      a Serializable object
    • getPerson

      private org.json.JSONObject getPerson(String frozenModifier) throws org.json.JSONException

      getPerson.

      Parameters:
      frozenModifier - a String object
      Returns:
      a JSONObject object
      Throws:
      org.json.JSONException - if any.