public class SmartContentTypesGallery extends ContentTypesGallery
ContentTypesGallery.ContentTypeComparator, ContentTypesGallery.I18nizableTextComparator
SimpleMenu.GalleryGroup, SimpleMenu.GalleryItem, SimpleMenu.UnresolvedItem
ClientSideElement.Script, ClientSideElement.ScriptFile
Modifier and Type | Field and Description |
---|---|
protected Context |
_context
The context
|
protected AmetysObjectResolver |
_resolver
Ametys object resolver
|
protected SmartContentClientSideElementHelper |
_smartHelper
Helper for smart content client elements
|
_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 |
---|
SmartContentTypesGallery() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
_isAllRight(Content content,
boolean hasError,
Map<String,Object> results)
Determines if the user can finally do action on content
|
protected Map<String,Object> |
getContentDefaultParameters(Content content)
Get the default content's parameters
|
Map<String,Object> |
getStatus(List<String> contentsId)
Get informations on contents' state
|
void |
service(ServiceManager manager) |
_addContentTypeConfiguration, _addGroupContentTypeConfiguration, _addRightsOnContentTypeConfiguration, _configureScript, _getContentTypesByGroup, _getGalleryItems, addContentType, getScripts, hasRight, 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
protected SmartContentClientSideElementHelper _smartHelper
public SmartContentTypesGallery()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
service
in class ContentTypesGallery
ServiceException
public Map<String,Object> getStatus(List<String> contentsId)
contentsId
- the ids of contentsprotected boolean _isAllRight(Content content, boolean hasError, Map<String,Object> results)
content
- The contenthasError
- true if a error has already occursresults
- The result parameters to be passed to client sideprotected Map<String,Object> getContentDefaultParameters(Content content)
content
- The content