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
|
manager
EMPTY_MAP
Constructor and Description |
---|
GetTreeNodeAction() |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
protected AmetysObjectResolver _ametysResolver
protected TreeExtensionPoint _treeExtensionPoint
protected ContentTypeExtensionPoint _contentTypesEP
protected ContentTypesHelper _contentTypesHelper
public GetTreeNodeAction()
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 TreeConfiguration _getTreeConfiguration(String treeId)
private Content _getParentContent(String parentId) throws IllegalArgumentException
IllegalArgumentException
protected 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)