public class WorkspaceGenerator extends ServiceableGenerator implements Contextualizable
Modifier and Type | Field and Description |
---|---|
protected Context |
_cocoonContext
Cocoon context
|
protected CurrentUserProvider |
_currentUserProvider
The current user provider component
|
protected StaticFileImportsManager |
_fileImportsManager
The static files import manager
|
protected JSONUtils |
_jsonUtils
The json utils component
|
protected MessageTargetFactoriesManager |
_messageTargetFactoriesManager
The list of existing message target factories
|
protected RelationsManager |
_relationsManager
The relations manager
|
protected SourceResolver |
_resolver
The Excalibur source resolver
|
protected RibbonControlsManager |
_ribbonControlManager
The ribbon control manager
|
protected RibbonImportManager |
_ribbonImportManager
The ribbon import manager
|
protected RibbonManagerCache |
_ribbonManagerCache
The ribbon manager cache helper
|
protected RibbonTabsManager |
_ribbonTabManager
The ribbon tab manager
|
protected SAXClientSideElementHelper |
_saxClientSideElementHelper
The sax clientside element helper
|
protected UIToolsFactoriesManager |
_uitoolsFactoriesManager
The ui tools factories manager
|
protected UserHelper |
_userHelper
The User Helper
|
protected UserManager |
_userManager
The users manager instance
|
protected WidgetsManager |
_widgetsManager
The widgets manager
|
manager
objectModel, parameters, resolver, source
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
Constructor and Description |
---|
WorkspaceGenerator() |
Modifier and Type | Method and Description |
---|---|
void |
contextualize(Context context) |
protected void |
doGenerate(Map<String,Object> contextParameters)
Generates the UI factories definitions, with parameters
|
void |
generate() |
protected Map<String,Object> |
getContextualParameters()
Get the contextual parameters
|
protected Map<String,List<ClientSideElement>> |
getElementsToSax(ClientSideElementDependenciesManager dependenciesManager,
RibbonConfigurationManager ribbonManager)
Retrieve the list of elements to generate the Workspace
|
protected Source |
getRibbonConfiguration()
Get the ribbon configuration
|
protected Source |
getUIToolsConfiguration()
Get the UI tools configuration
|
protected void |
saxAdditionnalInfo(Map<String,Object> contextParameters)
Use this method when inheriting the WorkspaceGenerator to sax additional data
|
protected void |
saxMessageTargetFactories(Map<String,Object> contextParameters,
List<ClientSideElement> elements)
SAX the message target factories
|
protected void |
saxRelationsHandlers(Map<String,Object> contextParameters,
List<ClientSideElement> elements)
SAX the relations handlers
|
protected void |
saxStaticFileImports(Map<String,Object> contextParameters,
List<ClientSideElement> elements)
SAX the static file imports
|
protected void |
saxUITools(Map<String,Object> contextParameters,
List<ClientSideElement> elements)
SAX the UI Tools
|
protected void |
saxWidgets(Map<String,Object> contextParameters)
SAX the widgets
|
void |
service(ServiceManager smanager) |
dispose
recycle, setup
setConsumer, setContentHandler, setLexicalHandler
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setConsumer
protected RibbonControlsManager _ribbonControlManager
protected RibbonTabsManager _ribbonTabManager
protected MessageTargetFactoriesManager _messageTargetFactoriesManager
protected UIToolsFactoriesManager _uitoolsFactoriesManager
protected RelationsManager _relationsManager
protected WidgetsManager _widgetsManager
protected SAXClientSideElementHelper _saxClientSideElementHelper
protected StaticFileImportsManager _fileImportsManager
protected SourceResolver _resolver
protected Context _cocoonContext
protected CurrentUserProvider _currentUserProvider
protected UserManager _userManager
protected JSONUtils _jsonUtils
protected UserHelper _userHelper
protected RibbonManagerCache _ribbonManagerCache
protected RibbonImportManager _ribbonImportManager
public WorkspaceGenerator()
public void service(ServiceManager smanager) throws ServiceException
service
in interface Serviceable
service
in class ServiceableGenerator
ServiceException
public void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
ContextException
public void generate() throws IOException, SAXException, ProcessingException
generate
in interface Generator
IOException
SAXException
ProcessingException
protected Map<String,Object> getContextualParameters()
protected void doGenerate(Map<String,Object> contextParameters) throws IOException, SAXException, ProcessingException
contextParameters
- context parameters.IOException
- if an error occurredSAXException
- if an error occurredProcessingException
- if an error occurredprotected Map<String,List<ClientSideElement>> getElementsToSax(ClientSideElementDependenciesManager dependenciesManager, RibbonConfigurationManager ribbonManager) throws SAXException
dependenciesManager
- The dependencies managerribbonManager
- The ribbon manager for this workspaceSAXException
- If an error occursprotected void saxUITools(Map<String,Object> contextParameters, List<ClientSideElement> elements) throws IOException, SAXException
contextParameters
- the context parameterselements
- The list of elements to saxIOException
- if an error occurredSAXException
- if an error occurredprotected Source getRibbonConfiguration() throws IOException
IOException
- if an errors occurs getting the ribbon configurationprotected Source getUIToolsConfiguration() throws IOException
IOException
- if an errors occurs getting the UI tools configurationprotected void saxMessageTargetFactories(Map<String,Object> contextParameters, List<ClientSideElement> elements) throws SAXException
contextParameters
- the context parameterselements
- The list of elements for the message target factoriesSAXException
- if an error occurredprotected void saxRelationsHandlers(Map<String,Object> contextParameters, List<ClientSideElement> elements) throws SAXException
contextParameters
- the context parameterselements
- The list of relation handlersSAXException
- if an error occurredprotected void saxWidgets(Map<String,Object> contextParameters) throws SAXException
contextParameters
- the context parametersSAXException
- if an error occurredprotected void saxStaticFileImports(Map<String,Object> contextParameters, List<ClientSideElement> elements) throws SAXException
contextParameters
- the context parameterselements
- The list of static file imports elementsSAXException
- if an error occurredprotected void saxAdditionnalInfo(Map<String,Object> contextParameters) throws SAXException
contextParameters
- the context parametersSAXException
- if an error occurred