Package fr.becpg.repo.web.scripts.entity
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
FieldsModifier and TypeFieldDescriptionprivate AttributeExtractorServiceprivate static final Stringprivate EntityVersionServiceprivate static final org.apache.commons.logging.Logprivate static final intprivate org.alfresco.service.cmr.repository.NodeServiceprivate static final Stringprivate static final Stringprivate org.alfresco.service.cmr.security.PersonServiceprivate org.alfresco.service.ServiceRegistryprivate org.alfresco.service.cmr.version.VersionService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.WebScriptResponse res) Get entity version history.private org.json.JSONObjectvoidsetAttributeExtractorService(AttributeExtractorService attributeExtractorService) Setter for the fieldattributeExtractorService.voidsetEntityVersionService(EntityVersionService entityVersionService) Setter for the fieldentityVersionService.voidsetNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) Setter for the fieldnodeService.voidsetPersonService(org.alfresco.service.cmr.security.PersonService personService) Setter for the fieldpersonService.voidsetServiceRegistry(org.alfresco.service.ServiceRegistry serviceRegistry) Setter for the fieldserviceRegistry.voidsetVersionService(org.alfresco.service.cmr.version.VersionService versionService) Setter for the fieldversionService.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 Details
-
PARAM_NODEREF
- See Also:
-
DISPLAY_FORMAT
- See Also:
-
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
-
nodeService
private org.alfresco.service.cmr.repository.NodeService nodeService -
personService
private org.alfresco.service.cmr.security.PersonService personService -
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
Setter for the field
attributeExtractorService.- Parameters:
attributeExtractorService- aAttributeExtractorServiceobject.
-
setEntityVersionService
Setter for the field
entityVersionService.- Parameters:
entityVersionService- aEntityVersionServiceobject.
-
setNodeService
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) Setter for the field
nodeService.- Parameters:
nodeService- aNodeServiceobject.
-
setPersonService
public void setPersonService(org.alfresco.service.cmr.security.PersonService personService) Setter for the field
personService.- Parameters:
personService- aPersonServiceobject.
-
setServiceRegistry
public void setServiceRegistry(org.alfresco.service.ServiceRegistry serviceRegistry) Setter for the field
serviceRegistry.- Parameters:
serviceRegistry- aServiceRegistryobject.
-
setVersionService
public void setVersionService(org.alfresco.service.cmr.version.VersionService versionService) Setter for the field
versionService.- Parameters:
versionService- aVersionServiceobject
-
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
- Throws:
org.json.JSONException
-