Class StaticRichTextConfiguration.StaticRichTextConfigurationClientSideElement
- java.lang.Object
-
- org.ametys.core.ui.widgets.richtext.StaticRichTextConfiguration.StaticRichTextConfigurationClientSideElement
-
- All Implemented Interfaces:
ClientSideElement
- Enclosing class:
- StaticRichTextConfiguration
protected static class StaticRichTextConfiguration.StaticRichTextConfigurationClientSideElement extends Object implements ClientSideElement
A configured implementation of theClientSideElement
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ametys.core.ui.ClientSideElement
ClientSideElement.Script, ClientSideElement.ScriptFile
-
-
Field Summary
Fields Modifier and Type Field Description protected String
_id
The identifierprotected String
_pluginName
The plugin nameprotected ClientSideElement.Script
_script
The script
-
Constructor Summary
Constructors Modifier Constructor Description protected
StaticRichTextConfigurationClientSideElement(Configuration configuration, String pluginName, org.slf4j.Logger logger)
Create by configuration
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,List<String>>
getDependencies()
This method returns the list of dependencies, sorted by extension point.String
getId()
Get the id of the element.String
getPluginName()
Get the plugin name where the control was declaredMap<String,String>
getRights(Map<String,Object> contextParameters)
This method return the right that will be needed on client side.List<ClientSideElement.Script>
getScripts(boolean ignoreRights, Map<String,Object> contextParameters)
This method return the scripts that will be used on client side.List<ClientSideElement.Script>
getScripts(Map<String,Object> contextParameters)
This method return the scripts that will be used on client side.
-
-
-
Field Detail
-
_pluginName
protected String _pluginName
The plugin name
-
_script
protected ClientSideElement.Script _script
The script
-
-
Constructor Detail
-
StaticRichTextConfigurationClientSideElement
protected StaticRichTextConfigurationClientSideElement(Configuration configuration, String pluginName, org.slf4j.Logger logger) throws ConfigurationException
Create by configuration- Parameters:
configuration
- The tag configurationpluginName
- The name of the plugin where it was declaredlogger
- The logger- Throws:
ConfigurationException
- If an error occurred
-
-
Method Detail
-
getId
public String getId()
Description copied from interface:ClientSideElement
Get the id of the element.- Specified by:
getId
in interfaceClientSideElement
- Returns:
- the id. Can not be null.
-
getScripts
public List<ClientSideElement.Script> getScripts(Map<String,Object> contextParameters)
Description copied from interface:ClientSideElement
This method return the scripts that will be used on client side. This class will be parametrized by initial and current parameters.- Specified by:
getScripts
in interfaceClientSideElement
- Parameters:
contextParameters
- Contextuals parameters transmitted by the environment.- Returns:
- The list of scripts or an empty list.
-
getScripts
public List<ClientSideElement.Script> getScripts(boolean ignoreRights, Map<String,Object> contextParameters)
Description copied from interface:ClientSideElement
This method return the scripts that will be used on client side. This class will be parametrized by initial and current parameters.- Specified by:
getScripts
in interfaceClientSideElement
- Parameters:
ignoreRights
- True to ignore the rights verification.contextParameters
- Contextuals parameters transmitted by the environment.- Returns:
- The list of scripts or an empty list.
-
getRights
public Map<String,String> getRights(Map<String,Object> contextParameters)
Description copied from interface:ClientSideElement
This method return the right that will be needed on client side. This class will be parametrized by initial and current parameters.- Specified by:
getRights
in interfaceClientSideElement
- Parameters:
contextParameters
- Contextuals parameters transmitted by the environment.- Returns:
- The rights in a Map of (rightId, context). Can be empty.
-
getPluginName
public String getPluginName()
Description copied from interface:ClientSideElement
Get the plugin name where the control was declared- Specified by:
getPluginName
in interfaceClientSideElement
- Returns:
- The plugin name. Can not be null.
-
getDependencies
public Map<String,List<String>> getDependencies()
Description copied from interface:ClientSideElement
This method returns the list of dependencies, sorted by extension point.- Specified by:
getDependencies
in interfaceClientSideElement
- Returns:
- a map of dependencies ids by extension point.
-
-