Package org.ametys.cms.workflow
Class ContentVersionHistoryAction
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.acting.AbstractAction
org.apache.cocoon.acting.ServiceableAction
org.ametys.cms.workflow.ContentVersionHistoryAction
- All Implemented Interfaces:
Component
,LogEnabled
,Serviceable
,Action
- Direct Known Subclasses:
ContentHistoryAction
This action returns the jcr history of a content
-
Field Summary
Fields inherited from class org.apache.cocoon.acting.ServiceableAction
manager
Fields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected List<VersionInformation>
Get the jcr infoact
(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) void
service
(ServiceManager serviceManager) Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Field Details
-
_resolver
The ametys object resolver
-
-
Constructor Details
-
ContentVersionHistoryAction
public ContentVersionHistoryAction()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classServiceableAction
- Throws:
ServiceException
-
act
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception - Throws:
Exception
-
_resolveVersionInformations
protected List<VersionInformation> _resolveVersionInformations(VersionAwareAmetysObject content) throws javax.jcr.RepositoryException Get the jcr info- Parameters:
content
- The content- Returns:
- The info
- Throws:
javax.jcr.RepositoryException
- if an error occurred
-