Package org.ametys.web.workspace
Class WorkspaceGenerator
- All Implemented Interfaces:
Poolable,Recyclable,Disposable,Component,LogEnabled,Serviceable,Generator,SitemapModelComponent,XMLProducer
- Direct Known Subclasses:
SimpleWorkspaceGenerator
Generates the uitools factories definition using the associated components
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected SiteColorsComponentThe site colorsprotected SiteManagerThe site managerprotected SiteTypesExtensionPointThe site types managerprotected StringThe siteprotected SkinsManagerThe skins managerFields inherited from class org.ametys.plugins.core.ui.WorkspaceGenerator
_currentUserProvider, _jsonUtils, _resolver, _ribbonControlManager, _ribbonImportManager, _ribbonManagerCache, _ribbonTabManager, _saxClientSideElementHelper, _uitoolsFactoriesManager, _userHelper, _widgetsManagerFields inherited from class org.apache.cocoon.generation.ServiceableGenerator
managerFields inherited from class org.apache.cocoon.generation.AbstractGenerator
objectModel, parameters, resolver, sourceFields inherited from class org.apache.cocoon.xml.AbstractXMLProducer
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgenerate()Get the contextual parametersprotected RibbonConfigurationSourceGet the ribbon configurationprotected SourceGet 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
doGenerate, getElementsToSax, saxMessageTargetFactories, saxRelationsHandlers, saxStaticFileImports, saxUITools, saxWidgetsMethods inherited from class org.apache.cocoon.generation.ServiceableGenerator
disposeMethods inherited from class org.apache.cocoon.generation.AbstractGenerator
recycle, setupMethods inherited from class org.apache.cocoon.xml.AbstractXMLProducer
setConsumer, setContentHandler, setLexicalHandlerMethods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLoggerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
servicein interfaceServiceable- Overrides:
servicein classWorkspaceGenerator- Throws:
ServiceException
-
generate
- Specified by:
generatein interfaceGenerator- Overrides:
generatein classWorkspaceGenerator- Throws:
IOExceptionSAXExceptionProcessingException
-
getContextualParameters
Description copied from class:WorkspaceGeneratorGet the contextual parameters- Overrides:
getContextualParametersin classWorkspaceGenerator- Returns:
- The contextual parameters
-
getRibbonConfiguration
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
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
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
-