Package org.ametys.web.workspace
Class WorkspaceGenerator
-
- All Implemented Interfaces:
Poolable
,Recyclable
,Disposable
,Component
,Contextualizable
,LogEnabled
,Serviceable
,Generator
,SitemapModelComponent
,XMLProducer
- Direct Known Subclasses:
SimpleWorkspaceGenerator
public class WorkspaceGenerator extends WorkspaceGenerator
Generates the uitools factories definition using the associated components
-
-
Field Summary
Fields Modifier and Type Field Description protected SiteColorsComponent
_siteColors
The site colorsprotected SiteManager
_siteManager
The site managerprotected SiteTypesExtensionPoint
_siteTypeExtensionPoint
The site types managerprotected String
_siteTypeName
The siteprotected SkinsManager
_skinsManager
The skins manager-
Fields inherited from class org.ametys.plugins.core.ui.WorkspaceGenerator
_cocoonContext, _currentUserProvider, _fileImportsManager, _jsonUtils, _messageTargetFactoriesManager, _relationsManager, _resolver, _ribbonControlManager, _ribbonImportManager, _ribbonManagerCache, _ribbonTabManager, _saxClientSideElementHelper, _uitoolsFactoriesManager, _userHelper, _widgetsManager
-
Fields inherited from class org.apache.cocoon.generation.ServiceableGenerator
manager
-
Fields inherited from class org.apache.cocoon.generation.AbstractGenerator
objectModel, parameters, resolver, source
-
Fields inherited from class org.apache.cocoon.xml.AbstractXMLProducer
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
-
-
Constructor Summary
Constructors Constructor Description WorkspaceGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
generate()
protected Map<String,Object>
getContextualParameters()
Get the contextual parametersprotected RibbonConfigurationSource
getRibbonConfiguration()
Get the ribbon configurationprotected Source
getUIToolsConfiguration()
Get the UI tools configurationprotected void
saxAdditionnalInfo(Map<String,Object> contextParameters)
Use this method when inheriting the WorkspaceGenerator to sax additional datavoid
service(ServiceManager smanager)
-
Methods inherited from class org.ametys.plugins.core.ui.WorkspaceGenerator
contextualize, doGenerate, getElementsToSax, saxMessageTargetFactories, saxRelationsHandlers, saxStaticFileImports, saxUITools, saxWidgets
-
Methods inherited from class org.apache.cocoon.generation.ServiceableGenerator
dispose
-
Methods inherited from class org.apache.cocoon.generation.AbstractGenerator
recycle, setup
-
Methods inherited from class org.apache.cocoon.xml.AbstractXMLProducer
setConsumer, setContentHandler, setLexicalHandler
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.cocoon.xml.XMLProducer
setConsumer
-
-
-
-
Field Detail
-
_siteTypeExtensionPoint
protected SiteTypesExtensionPoint _siteTypeExtensionPoint
The site types manager
-
_siteManager
protected SiteManager _siteManager
The site manager
-
_siteTypeName
protected String _siteTypeName
The site
-
_skinsManager
protected SkinsManager _skinsManager
The skins manager
-
_siteColors
protected SiteColorsComponent _siteColors
The site colors
-
-
Constructor Detail
-
WorkspaceGenerator
public WorkspaceGenerator()
-
-
Method Detail
-
service
public void service(ServiceManager smanager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classWorkspaceGenerator
- Throws:
ServiceException
-
generate
public void generate() throws IOException, SAXException, ProcessingException
- Specified by:
generate
in interfaceGenerator
- Overrides:
generate
in classWorkspaceGenerator
- Throws:
IOException
SAXException
ProcessingException
-
getContextualParameters
protected Map<String,Object> getContextualParameters()
Description copied from class:WorkspaceGenerator
Get the contextual parameters- Overrides:
getContextualParameters
in classWorkspaceGenerator
- Returns:
- The contextual parameters
-
getRibbonConfiguration
protected RibbonConfigurationSource getRibbonConfiguration() throws IOException
Description copied from class:WorkspaceGenerator
Get the ribbon configuration- Overrides:
getRibbonConfiguration
in classWorkspaceGenerator
- Returns:
- the ribbon configuration
- Throws:
IOException
- if an errors occurs getting the ribbon configuration
-
getUIToolsConfiguration
protected Source getUIToolsConfiguration() throws IOException
Description copied from class:WorkspaceGenerator
Get the UI tools configuration- Overrides:
getUIToolsConfiguration
in classWorkspaceGenerator
- Returns:
- the UI tools configuration
- Throws:
IOException
- if an errors occurs getting the UI tools configuration
-
saxAdditionnalInfo
protected void saxAdditionnalInfo(Map<String,Object> contextParameters) throws SAXException
Description copied from class:WorkspaceGenerator
Use this method when inheriting the WorkspaceGenerator to sax additional data- Overrides:
saxAdditionnalInfo
in classWorkspaceGenerator
- Parameters:
contextParameters
- the context parameters- Throws:
SAXException
- if an error occurred
-
-