public class ReferenceTablesGallery extends ContentTypesGallery
ContentTypesGallery.ContentTypeComparator, ContentTypesGallery.I18nizableTextComparator
SimpleMenu.GalleryGroup, SimpleMenu.GalleryItem, SimpleMenu.UnresolvedItem
ClientSideElement.Script, ClientSideElement.ScriptFile
Modifier and Type | Field and Description |
---|---|
protected HierarchicalReferenceTablesHelper |
_hierarchicalSimpleContentsHelper
The helper component for hierarchical simple contents
|
_contentTypeExtensionPoint, _i18nUtils, _languagesManager, _rootContentHelper
_galleryItemManager, _galleryItems, _menuItemManager, _menuItems, _primaryMenuItem, _referencedClientSideElement, _ribbonControlManager, _smanager, _unresolvedMenuItems
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script
Constructor and Description |
---|
ReferenceTablesGallery() |
Modifier and Type | Method and Description |
---|---|
protected void |
_addContentTypeConfiguration(DefaultConfiguration rootConf,
ContentType cType)
Get the configuration of the content type item
|
protected Map<String,List<String>> |
_configureDependencies(Configuration configuration)
Configure the dependencies following the configuration
|
protected List<ContentType> |
getReferenceTables()
Get the list of available simple content types
|
List<ClientSideElement.Script> |
getScripts(boolean ignoreRights,
Map<String,Object> contextParameters)
This method return the scripts that will be used on client side.
|
protected boolean |
hasRight(ContentType cType)
Test if the current user has the right needed by the content type to create a content.
|
protected boolean |
isValidContentType(ContentType contentType)
Determines if the content type is a valid content type for the gallery
|
void |
service(ServiceManager smanager) |
_addGroupContentTypeConfiguration, _addRightsOnContentTypeConfiguration, _configureScript, _getContentTypesByGroup, _getGalleryItems, addContentType
_addDependencies, _configureClass, _configureGalleries, _configureGroupGallery, _configureItemsMenu, _getMenuItems, configure, getReferencedClientSideElements, getRights
_configureParameters, configureInitialParameters
_configureImports, _configureRights, _configureRightsMode, getDependencies, getId, getPluginName, getScripts, hasRight, setPluginInfo, toString
getLogger, setLogger
protected HierarchicalReferenceTablesHelper _hierarchicalSimpleContentsHelper
public ReferenceTablesGallery()
public void service(ServiceManager smanager) throws ServiceException
service
in interface Serviceable
service
in class ContentTypesGallery
ServiceException
protected boolean isValidContentType(ContentType contentType)
ContentTypesGallery
isValidContentType
in class ContentTypesGallery
contentType
- The coententpublic List<ClientSideElement.Script> getScripts(boolean ignoreRights, Map<String,Object> contextParameters)
ClientSideElement
getScripts
in interface ClientSideElement
getScripts
in class ContentTypesGallery
ignoreRights
- True to ignore the rights verification.contextParameters
- Contextuals parameters transmitted by the environment.protected List<ContentType> getReferenceTables()
protected void _addContentTypeConfiguration(DefaultConfiguration rootConf, ContentType cType)
ContentTypesGallery
_addContentTypeConfiguration
in class ContentTypesGallery
rootConf
- The root configurationcType
- The content typeprotected boolean hasRight(ContentType cType)
ContentTypesGallery
hasRight
in class ContentTypesGallery
cType
- the content typeprotected Map<String,List<String>> _configureDependencies(Configuration configuration) throws ConfigurationException
StaticFileImportsClientSideElement
_configureDependencies
in class StaticFileImportsClientSideElement
configuration
- The root configurationConfigurationException
- if a dependency element is present but empty