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
This action export the plugin name and content type for the current content.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ContentTypeExtensionPointThe content type extension pointprotected ContentTypesHelperHelper for content typesprotected AmetysObjectResolverThe ametys object resolverstatic final StringThe key for content typestatic final StringThe key for content versionstatic final StringThe key for plugin's namestatic final StringThe key for rendering languageFields inherited from class org.apache.cocoon.acting.ServiceableAction
managerFields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionact(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 Details
-
RESULT_PLUGINNAME
The key for plugin's name- See Also:
-
RESULT_CONTENTTYPE
The key for content type- See Also:
-
RESULT_CONTENTVERSION
The key for content version- See Also:
-
RESULT_RENDERINGLANGUAGE
The key for rendering language- See Also:
-
_contentTypeExtensionPoint
The content type extension point -
_resolver
The ametys object resolver -
_contentTypeshelper
Helper for content types
-
-
Constructor Details
-
GetContentAction
public GetContentAction()
-
-
Method Details
-
service
- 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
-