public class HierarchicalReferenceTableClientSideElement extends StaticClientSideElement
ClientSideElement.Script, ClientSideElement.ScriptFile| Modifier and Type | Field and Description |
|---|---|
protected ContentTypeExtensionPoint |
_contentTypeEP
The extension point for content types
|
protected ContentTypesHelper |
_cTypeHelper
The content types helper
|
protected HierarchicalReferenceTablesHelper |
_hierarchicalReferenceTableContentsHelper
The helper component for hierarchical reference tables
|
protected AmetysObjectResolver |
_resolver
The Ametys Object resolver
|
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script| Constructor and Description |
|---|
HierarchicalReferenceTableClientSideElement() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canHaveChild(String contentId)
Returns true if the given content can have a child, according to its hierarchy.
|
Map<String,Object> |
getContentTypeForRoot(String leafContentTypeId)
Gets the content type id and the default title for a child of the root node of the hierarchy of reference table contents, defined by the given leaf content type
|
List<Map<String,Object>> |
getContentTypesForChild(String parentContentId)
Gets the content types ids and the default titles for a child of the given content (must be non-leaf in a hierarchy of reference tables contents)
|
Map<String,Object> |
getHierarchyProperties(String leafContentTypeId)
Get the hierarchy properties of the content types tree
|
void |
service(ServiceManager smanager) |
_configureClass, _configureParameters, _configureScript, configureInitialParameters_configureDependencies, _configureImports, _configureRights, _configureRightsMode, configure, getDependencies, getId, getPluginName, getRights, getScripts, getScripts, hasRight, setPluginInfo, toStringgetLogger, setLoggerprotected ContentTypeExtensionPoint _contentTypeEP
protected HierarchicalReferenceTablesHelper _hierarchicalReferenceTableContentsHelper
protected AmetysObjectResolver _resolver
protected ContentTypesHelper _cTypeHelper
public HierarchicalReferenceTableClientSideElement()
public void service(ServiceManager smanager) throws ServiceException
service in interface Serviceableservice in class StaticFileImportsClientSideElementServiceExceptionpublic boolean canHaveChild(String contentId)
ContentType.getParentMetadata()contentId - The id of the contentpublic Map<String,Object> getHierarchyProperties(String leafContentTypeId)
leafContentTypeId - The id of the leaf content type, which defines the hierarchy.public List<Map<String,Object>> getContentTypesForChild(String parentContentId)
parentContentId - The id of the parent contentpublic Map<String,Object> getContentTypeForRoot(String leafContentTypeId)
leafContentTypeId - The id of the leaf content type, which defines the hierarchy.