public class ContentTypesGallery extends ContentTypesGallery
SimpleMenu.GalleryGroup, SimpleMenu.GalleryItem, SimpleMenu.UnresolvedItem
ClientSideElement.Script, ClientSideElement.ScriptFile
Modifier and Type | Field and Description |
---|---|
protected PageDAO |
_pageDAO
The DAO for pages
|
protected AmetysObjectResolver |
_resolver
Repository content
|
_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 |
---|
ContentTypesGallery() |
Modifier and Type | Method and Description |
---|---|
List<String> |
getAvailableContentTypes(String pageId,
String zoneName)
Get the available content types for given page and zone
|
protected boolean |
hasRight(ContentType cType)
Test if the current user has the right needed by the content type to create a content.
|
void |
service(ServiceManager smanager) |
_addContentTypeConfiguration, _addGroupContentTypeConfiguration, _addRightsOnContentTypeConfiguration, _configureScript, _getContentTypesByGroup, _getGalleryItems, addContentType, getScripts, isValidContentType
_addDependencies, _configureClass, _configureGalleries, _configureGroupGallery, _configureItemsMenu, _getMenuItems, configure, getReferencedClientSideElements, getRights
_configureParameters, configureInitialParameters
_configureDependencies, _configureImports, _configureRights, _configureRightsMode, getDependencies, getId, getPluginName, getScripts, hasRight, setPluginInfo, toString
getLogger, setLogger
protected AmetysObjectResolver _resolver
public ContentTypesGallery()
public void service(ServiceManager smanager) throws ServiceException
service
in interface Serviceable
service
in class ContentTypesGallery
ServiceException
public List<String> getAvailableContentTypes(String pageId, String zoneName)
pageId
- The page's idzoneName
- The zone's nameprotected boolean hasRight(ContentType cType)
ContentTypesGallery
hasRight
in class ContentTypesGallery
cType
- the content type