public class GetHierarchicalReferenceTablesAction extends ServiceableAction
Modifier and Type | Field and Description |
---|---|
protected AmetysObjectResolver |
_ametysResolver
The resolver for Ametys Objects
|
protected ContentHelper |
_contentHelper
The content helper
|
protected ContentTypeExtensionPoint |
_contentTypeEP
The extension point for content types
|
protected ContentTypesHelper |
_cTypeHelper
Content types helper
|
protected HierarchicalReferenceTablesHelper |
_hierarchicalReferenceTablesHelper
The helper component for hierarchical reference tables
|
protected SourceResolver |
_srcResolver
The source resolver
|
manager
EMPTY_MAP
Constructor and Description |
---|
GetHierarchicalReferenceTablesAction() |
Modifier and Type | Method and 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) |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
protected ContentTypeExtensionPoint _contentTypeEP
protected AmetysObjectResolver _ametysResolver
protected HierarchicalReferenceTablesHelper _hierarchicalReferenceTablesHelper
protected ContentTypesHelper _cTypeHelper
protected ContentHelper _contentHelper
protected SourceResolver _srcResolver
public GetHierarchicalReferenceTablesAction()
public void service(ServiceManager smanager) throws ServiceException
service
in interface Serviceable
service
in class ServiceableAction
ServiceException
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
Exception
private AmetysObjectIterable<Content> _getChildren(String parentId, ContentType topLevelContentType, ContentType leafContentType)
private Map<String,Object> _contentToJson(Content content, boolean full, ContentType topContentType, ContentType leafContentType, boolean checkSelection, String contextPath)
private String _getTooltip(Content content)
private Map<String,Object> _rootCandidateToJson(ContentType leafContentType, boolean checkSelection)