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_contentTypeExtensionPointThe content type extension pointprotected ContentTypesHelper_contentTypeshelperHelper for content typesprotected AmetysObjectResolver_resolverThe ametys object resolverstatic StringRESULT_CONTENTTYPEThe key for content typestatic StringRESULT_CONTENTVERSIONThe key for content versionstatic StringRESULT_PLUGINNAMEThe key for plugin's namestatic StringRESULT_RENDERINGLANGUAGEThe 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)voidservice(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:
servicein interfaceServiceable- Overrides:
servicein classServiceableAction- Throws:
ServiceException
-
act
public Map<String,String> act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
- Throws:
Exception
-
-