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_siteColorsThe site colorsprotected SiteManager_siteManagerThe site managerprotected SiteTypesExtensionPoint_siteTypeExtensionPointThe site types managerprotected String_siteTypeNameThe siteprotected SkinsManager_skinsManagerThe 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 private void_saxColorInformations(Site site)private void_saxGlyph(Site site)voidgenerate()protected Map<String,Object>getContextualParameters()Get the contextual parametersprotected RibbonConfigurationSourcegetRibbonConfiguration()Get the ribbon configurationprotected SourcegetUIToolsConfiguration()Get the UI tools configurationprotected voidsaxAdditionnalInfo(Map<String,Object> contextParameters)Use this method when inheriting the WorkspaceGenerator to sax additional datavoidservice(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:
 servicein interfaceServiceable- Overrides:
 servicein classWorkspaceGenerator- Throws:
 ServiceException
 
- 
generate
public void generate() throws IOException, SAXException, ProcessingException
- Specified by:
 generatein interfaceGenerator- Overrides:
 generatein classWorkspaceGenerator- Throws:
 IOExceptionSAXExceptionProcessingException
 
- 
getContextualParameters
protected Map<String,Object> getContextualParameters()
Description copied from class:WorkspaceGeneratorGet the contextual parameters- Overrides:
 getContextualParametersin classWorkspaceGenerator- Returns:
 - The contextual parameters
 
 
- 
getRibbonConfiguration
protected RibbonConfigurationSource getRibbonConfiguration() throws IOException
Description copied from class:WorkspaceGeneratorGet the ribbon configuration- Overrides:
 getRibbonConfigurationin 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:WorkspaceGeneratorGet the UI tools configuration- Overrides:
 getUIToolsConfigurationin 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:WorkspaceGeneratorUse this method when inheriting the WorkspaceGenerator to sax additional data- Overrides:
 saxAdditionnalInfoin classWorkspaceGenerator- Parameters:
 contextParameters- the context parameters- Throws:
 SAXException- if an error occurred
 
- 
_saxGlyph
private void _saxGlyph(Site site) throws SAXException
- Throws:
 SAXException
 
- 
_saxColorInformations
private void _saxColorInformations(Site site) throws SAXException
- Throws:
 SAXException
 
 - 
 
 -