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
Modifier and TypeFieldDescriptionprotected ContentTypeExtensionPoint
The content type extension pointprotected ContentTypesHelper
Helper for content typesprotected AmetysObjectResolver
The ametys object resolverstatic final String
The key for content typestatic final String
The key for content versionstatic final String
The key for plugin's namestatic final String
The key for rendering languageFields 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 TypeMethodDescriptionact
(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
-
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:
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
-