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
     
     
    private static final org.apache.commons.logging.Log
     
    private static final int
     
    private org.alfresco.service.cmr.repository.NodeService
     
    private static final String
     
    private static final String
     
    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 org.json.JSONObject
    getPerson(String frozenModifier)
     
    void
    Setter for the field attributeExtractorService.
    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
      See Also:
    • DISPLAY_FORMAT

      private static final String DISPLAY_FORMAT
      See Also:
    • PARAM_MODE

      private static final String PARAM_MODE
      See Also:
    • MAX_DESCRIPTION_LENGTH

      private static final int MAX_DESCRIPTION_LENGTH
      See Also:
    • logger

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

      private EntityVersionService entityVersionService
    • 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
    • execute

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

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