Package org.ametys.core.ui
Class UIToolsConfigurationManager
- java.lang.Object
-
- org.ametys.core.ui.UIToolsConfigurationManager
-
public class UIToolsConfigurationManager extends Object
Handles the configuration of uitools factories
-
-
Field Summary
Fields Modifier and Type Field Description protected String[]
_additionalDefaultTools
Additional default tools to openprotected Map<String,String>
_defaultUITools
The default opened toolsprivate static org.slf4j.Logger
_logger
protected SAXClientSideElementHelper
_saxClientSideElementHelper
The sax clientside element helperprotected UIToolsFactoriesManager
_uitoolsFactoriesManager
The ui tools factories manager
-
Constructor Summary
Constructors Constructor Description UIToolsConfigurationManager(UIToolsFactoriesManager uitoolsFactoriesManager, SAXClientSideElementHelper saxClientSideElementHelper, Source configSource, Request request)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
_configure(Configuration configuration)
void
saxDefaultState(ContentHandler handler, Map<String,Object> contextualParameters, List<ClientSideElement> dependenciesList)
SAX the default state of uitools to know which ones are opened
-
-
-
Field Detail
-
_logger
private static org.slf4j.Logger _logger
-
_defaultUITools
protected Map<String,String> _defaultUITools
The default opened tools
-
_uitoolsFactoriesManager
protected UIToolsFactoriesManager _uitoolsFactoriesManager
The ui tools factories manager
-
_saxClientSideElementHelper
protected SAXClientSideElementHelper _saxClientSideElementHelper
The sax clientside element helper
-
_additionalDefaultTools
protected String[] _additionalDefaultTools
Additional default tools to open
-
-
Constructor Detail
-
UIToolsConfigurationManager
public UIToolsConfigurationManager(UIToolsFactoriesManager uitoolsFactoriesManager, SAXClientSideElementHelper saxClientSideElementHelper, Source configSource, Request request)
Constructor- Parameters:
uitoolsFactoriesManager
- The instance of ui tools managersaxClientSideElementHelper
- The instance of sax client helperconfigSource
- The configuration sourcerequest
- The request to open by default additionally to those configured
-
-
Method Detail
-
_configure
private void _configure(Configuration configuration) throws ConfigurationException
- Throws:
ConfigurationException
-
saxDefaultState
public void saxDefaultState(ContentHandler handler, Map<String,Object> contextualParameters, List<ClientSideElement> dependenciesList) throws SAXException
SAX the default state of uitools to know which ones are opened- Parameters:
handler
- Where to SAXcontextualParameters
- Contextuals parameters transmitted by the environment.dependenciesList
- The list of dependencies- Throws:
SAXException
- if an error occurs
-
-