public class GetTreeNodeAction extends ServiceableAction
| Modifier and Type | Field and Description |
|---|---|
protected AmetysObjectResolver |
_ametysResolver
The ametys object resolver instance
|
protected ContentTypeExtensionPoint |
_contentTypesEP
The content type EP instance
|
protected ContentTypesHelper |
_contentTypesHelper
The content types helper instance
|
protected TreeExtensionPoint |
_treeExtensionPoint
The tree configuration EP instance
|
managerEMPTY_MAP| Constructor and Description |
|---|
GetTreeNodeAction() |
enableLogging, getLogger, setupLogger, setupLogger, setupLoggerprotected AmetysObjectResolver _ametysResolver
protected TreeExtensionPoint _treeExtensionPoint
protected ContentTypeExtensionPoint _contentTypesEP
protected ContentTypesHelper _contentTypesHelper
public GetTreeNodeAction()
public void service(ServiceManager smanager) throws ServiceException
service in interface Serviceableservice in class ServiceableActionServiceExceptionpublic Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
Exceptionprivate TreeConfiguration _getTreeConfiguration(String treeId)
private Content _getParentContent(String parentId) throws IllegalArgumentException
IllegalArgumentExceptionprotected Map<String,Object> contentToJSON(Content content, TreeConfiguration treeConfiguration)
content - The contenttreeConfiguration - The configuration of the treeprotected Map<String,Object> getAdditionalContentInfos(Content content)
content - The contentprivate Map<String,List<Content>> _getChildrendContent(Content parentContent, TreeConfiguration treeConfiguration)
private void _merge(Map<String,List<Content>> childrenContent, Map<String,List<Content>> contents)
private Map<String,List<Content>> _handleMetadataTreeConfigurationElementsChild(ContentType contentType, CompositeMetadata metadataHolder, MetadataTreeConfigurationElementsChild metadataTreeConfigurationElementsChild, TreeConfiguration treeConfiguration)
private Map<String,List<Content>> _handleMetadata(MetadataDefinitionHolder metadataDefHolder, CompositeMetadata metadataHolder, String metadataId, String absoluteMetadataName)