Package org.ametys.cms.content
Class GetContentAction
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.apache.cocoon.acting.AbstractAction
-
- org.apache.cocoon.acting.ServiceableAction
-
- org.ametys.cms.content.GetContentAction
-
- All Implemented Interfaces:
Component
,LogEnabled
,Serviceable
,Action
- Direct Known Subclasses:
GetContentAction
public class GetContentAction extends ServiceableAction
This action export the plugin name and content type for the current content.
-
-
Field Summary
Fields Modifier and Type Field Description protected ContentTypeExtensionPoint
_contentTypeExtensionPoint
The content type extension pointprotected ContentTypesHelper
_contentTypeshelper
Helper for content typesprotected AmetysObjectResolver
_resolver
The ametys object resolverstatic String
RESULT_CONTENTTYPE
The key for content typestatic String
RESULT_CONTENTVERSION
The key for content versionstatic String
RESULT_PLUGINNAME
The key for plugin's namestatic String
RESULT_RENDERINGLANGUAGE
The key for rendering language-
Fields inherited from class org.apache.cocoon.acting.ServiceableAction
manager
-
Fields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP
-
-
Constructor Summary
Constructors Constructor Description GetContentAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>
act(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 Detail
-
RESULT_PLUGINNAME
public static final String RESULT_PLUGINNAME
The key for plugin's name- See Also:
- Constant Field Values
-
RESULT_CONTENTTYPE
public static final String RESULT_CONTENTTYPE
The key for content type- See Also:
- Constant Field Values
-
RESULT_CONTENTVERSION
public static final String RESULT_CONTENTVERSION
The key for content version- See Also:
- Constant Field Values
-
RESULT_RENDERINGLANGUAGE
public static final String RESULT_RENDERINGLANGUAGE
The key for rendering language- See Also:
- Constant Field Values
-
_contentTypeExtensionPoint
protected ContentTypeExtensionPoint _contentTypeExtensionPoint
The content type extension point
-
_resolver
protected AmetysObjectResolver _resolver
The ametys object resolver
-
_contentTypeshelper
protected ContentTypesHelper _contentTypeshelper
Helper for content types
-
-
Constructor Detail
-
GetContentAction
public GetContentAction()
-
-
Method Detail
-
service
public void service(ServiceManager serviceManager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classServiceableAction
- Throws:
ServiceException
-
act
public Map<String,String> act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
- Throws:
Exception
-
-