Class GetHierarchicalReferenceTablesAction
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.apache.cocoon.acting.AbstractAction
-
- org.apache.cocoon.acting.ServiceableAction
-
- org.ametys.cms.content.referencetable.GetHierarchicalReferenceTablesAction
-
- All Implemented Interfaces:
Component
,LogEnabled
,Serviceable
,Action
public class GetHierarchicalReferenceTablesAction extends ServiceableAction
Action for getting information about the hierarchy of a reference table
-
-
Field Summary
Fields Modifier and Type Field Description protected AmetysObjectResolver
_ametysResolver
The resolver for Ametys Objectsprotected ContentHelper
_contentHelper
The content helperprotected ContentTypeExtensionPoint
_contentTypeEP
The extension point for content typesprotected ContentTypesHelper
_cTypeHelper
Content types helperprotected HierarchicalReferenceTablesHelper
_hierarchicalReferenceTablesHelper
The helper component for hierarchical reference tablesprotected SourceResolver
_srcResolver
The source resolver-
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 GetHierarchicalReferenceTablesAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private Map<String,Object>
_contentToJson(Content content, boolean full, ContentType topContentType, ContentType leafContentType, boolean checkSelection, String contextPath)
private AmetysObjectIterable<Content>
_getChildren(String parentId, ContentType topLevelContentType, ContentType leafContentType)
private String
_getTooltip(Content content)
private boolean
_isLeaf(Content content, String topContentTypeId, String leafContentTypeId)
private Map<String,Object>
_rootCandidateToJson(ContentType leafContentType, boolean checkSelection)
Map
act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters)
void
service(ServiceManager smanager)
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Field Detail
-
_contentTypeEP
protected ContentTypeExtensionPoint _contentTypeEP
The extension point for content types
-
_ametysResolver
protected AmetysObjectResolver _ametysResolver
The resolver for Ametys Objects
-
_hierarchicalReferenceTablesHelper
protected HierarchicalReferenceTablesHelper _hierarchicalReferenceTablesHelper
The helper component for hierarchical reference tables
-
_cTypeHelper
protected ContentTypesHelper _cTypeHelper
Content types helper
-
_contentHelper
protected ContentHelper _contentHelper
The content helper
-
_srcResolver
protected SourceResolver _srcResolver
The source resolver
-
-
Constructor Detail
-
GetHierarchicalReferenceTablesAction
public GetHierarchicalReferenceTablesAction()
-
-
Method Detail
-
service
public void service(ServiceManager smanager) throws ServiceException
- 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
-
_getChildren
private AmetysObjectIterable<Content> _getChildren(String parentId, ContentType topLevelContentType, ContentType leafContentType)
-
_contentToJson
private Map<String,Object> _contentToJson(Content content, boolean full, ContentType topContentType, ContentType leafContentType, boolean checkSelection, String contextPath)
-
_getTooltip
private String _getTooltip(Content content)
-
_rootCandidateToJson
private Map<String,Object> _rootCandidateToJson(ContentType leafContentType, boolean checkSelection)
-
-