Package org.ametys.web.workspace
Class WorkspaceGenerator
- All Implemented Interfaces:
Poolable
,Recyclable
,Disposable
,Component
,Contextualizable
,LogEnabled
,Serviceable
,Generator
,SitemapModelComponent
,XMLProducer
- Direct Known Subclasses:
SimpleWorkspaceGenerator
Generates the uitools factories definition using the associated components
-
Field Summary
Modifier and TypeFieldDescriptionprotected SiteColorsComponent
The site colorsprotected SiteManager
The site managerprotected SiteTypesExtensionPoint
The site types managerprotected String
The siteprotected SkinsManager
The skins managerFields 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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
generate()
Get the contextual parametersprotected RibbonConfigurationSource
Get the ribbon configurationprotected Source
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 Details
-
_siteTypeExtensionPoint
The site types manager -
_siteManager
The site manager -
_siteTypeName
The site -
_skinsManager
The skins manager -
_siteColors
The site colors
-
-
Constructor Details
-
WorkspaceGenerator
public WorkspaceGenerator()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classWorkspaceGenerator
- Throws:
ServiceException
-
generate
- Specified by:
generate
in interfaceGenerator
- Overrides:
generate
in classWorkspaceGenerator
- Throws:
IOException
SAXException
ProcessingException
-
getContextualParameters
Description copied from class:WorkspaceGenerator
Get the contextual parameters- Overrides:
getContextualParameters
in classWorkspaceGenerator
- Returns:
- The contextual parameters
-
getRibbonConfiguration
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
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
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
-