Package org.ametys.cms.contenttype
Class GetViewDefinitionAction
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.acting.AbstractAction
org.apache.cocoon.acting.ServiceableAction
org.ametys.cms.contenttype.GetViewDefinitionAction
- All Implemented Interfaces:
Component
,LogEnabled
,Serviceable
,Action
Get information about the definition of the structure a
View
.-
Field Summary
Modifier and TypeFieldDescriptionprotected ContentHelper
Helper for contentsprotected ContentTypeExtensionPoint
Content type extension point.protected ContentTypesHelper
Helper for content typesprotected AmetysObjectResolver
The Ametys object resolverFields 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) error2JsonObject
(String[] contentTypes, String viewName) Get some error properties when the requested view is not found.void
service
(ServiceManager smanager) Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Field Details
-
_resolver
The Ametys object resolver -
_contentTypeExtensionPoint
Content type extension point. -
_contentTypesHelper
Helper for content types -
_contentHelper
Helper for contents
-
-
Constructor Details
-
GetViewDefinitionAction
public GetViewDefinitionAction()
-
-
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
-
error2JsonObject
Get some error properties when the requested view is not found.- Parameters:
contentTypes
- The content typesviewName
- The view name- Returns:
- A map containing the properties.
-