public class GetHierarchicalReferenceTablesAction extends ServiceableAction
Modifier and Type | Field and Description |
---|---|
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 AmetysObjectResolver |
_resolver
The resolver for Ametys Objects
|
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) |
private AmetysObjectIterable<Content> |
_getChildContents(String contentId) |
private AmetysObjectIterable<Content> |
_getRootChildren(ContentType rootContentType) |
private boolean |
_isLeaf(Content content,
String topContentTypeId,
String leafContentTypeId) |
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 _resolver
protected HierarchicalReferenceTablesHelper _hierarchicalReferenceTablesHelper
protected ContentTypesHelper _cTypeHelper
protected ContentHelper _contentHelper
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> _getRootChildren(ContentType rootContentType)
private AmetysObjectIterable<Content> _getChildContents(String contentId)
private Map<String,Object> _contentToJson(Content content, boolean full, ContentType topContentType, ContentType leafContentType)