public class SmartContentMenu extends SmartContentClientSideElement implements MenuClientSideElement
Modifier and Type | Class and Description |
---|---|
(package private) class |
SmartContentMenu.UnresolvedItem |
ClientSideElement.Script, ClientSideElement.ScriptFile
Modifier and Type | Field and Description |
---|---|
protected ThreadSafeComponentManager<ClientSideElement> |
_menuItemManager
The client side element component manager for menu items.
|
protected List<ClientSideElement> |
_menuItems
The menu items
|
protected ClientSideElement |
_primaryMenuItem
The primary menu item
|
private List<ClientSideElement> |
_referencedClientSideElement |
protected RibbonControlsManager |
_ribbonControlManager
The ribbon control manager
|
protected ServiceManager |
_serviceManager
The service manager.
|
private List<SmartContentMenu.UnresolvedItem> |
_unresolvedMenuItems |
_context, _resolver, _userManager, _userProvider, _workflowProvider
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script
Constructor and Description |
---|
SmartContentMenu() |
Modifier and Type | Method and Description |
---|---|
protected void |
_configureItemsMenu(Configuration configuration)
Configure the items menu
|
private void |
_resolveMenuItems() |
void |
configure(Configuration configuration) |
List<ClientSideElement> |
getReferencedClientSideElements()
This method returns the
ClientSideElement referenced by the menu through its menu or gallery items |
List<ClientSideElement.Script> |
getScripts(boolean ignoreRights,
Map<String,Object> contextParameters)
This method return the scripts that will be used on client side.
|
void |
service(ServiceManager serviceManager) |
_getAllRightDescription, _getIncorrectWorkflowStepDescription, _getLockedDescription, _getNoModifiableDescription, _getNoRightDescription, _getWorkflowActionUnvailableDescription, _hasRight, _isAllRight, _isLocked, _isModifiable, _isWorkflowStepCorrect, _workflowAction, contextualize, getContentDefaultParameters, getStatus
_configureClass, _configureParameters, _configureScript, configureInitialParameters
_configureDependencies, _configureImports, _configureRights, _configureRightsMode, getDependencies, getId, getPluginName, getRights, getScripts, hasRight, setPluginInfo, toString
getLogger, setLogger
protected ThreadSafeComponentManager<ClientSideElement> _menuItemManager
protected RibbonControlsManager _ribbonControlManager
protected ServiceManager _serviceManager
protected List<ClientSideElement> _menuItems
protected ClientSideElement _primaryMenuItem
private List<ClientSideElement> _referencedClientSideElement
private List<SmartContentMenu.UnresolvedItem> _unresolvedMenuItems
public SmartContentMenu()
public void service(ServiceManager serviceManager) throws ServiceException
service
in interface Serviceable
service
in class SmartContentClientSideElement
ServiceException
public void configure(Configuration configuration) throws ConfigurationException
configure
in interface Configurable
configure
in class StaticFileImportsClientSideElement
ConfigurationException
protected void _configureItemsMenu(Configuration configuration) throws ConfigurationException
configuration
- the configurationConfigurationException
- If the configuration is not correct.public List<ClientSideElement.Script> getScripts(boolean ignoreRights, Map<String,Object> contextParameters)
ClientSideElement
getScripts
in interface ClientSideElement
getScripts
in class StaticFileImportsClientSideElement
ignoreRights
- True to ignore the rights verification.contextParameters
- Contextuals parameters transmitted by the environment.public List<ClientSideElement> getReferencedClientSideElements()
MenuClientSideElement
ClientSideElement
referenced by the menu through its menu or gallery itemsgetReferencedClientSideElements
in interface MenuClientSideElement
private void _resolveMenuItems() throws Exception
Exception