Package org.ametys.cms.workflow
Class WorkflowTasksGenerator
-
- All Implemented Interfaces:
Poolable
,Recyclable
,Disposable
,Component
,LogEnabled
,Serviceable
,Generator
,SitemapModelComponent
,XMLProducer
- Direct Known Subclasses:
CourseWorkflowTasksGenerator
,ProgramWorkflowTasksGenerator
,WorkflowTasksGenerator
public class WorkflowTasksGenerator extends AbstractCurrentUserProviderServiceableGenerator
Workflow tasks generator.
-
-
Field Summary
Fields Modifier and Type Field Description protected WorkflowTasksComponent
_tasksManager
The task componentprotected UserManager
_userManager
The Users Manager.-
Fields inherited from class org.ametys.core.util.cocoon.AbstractCurrentUserProviderServiceableGenerator
_currentUserProvider
-
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 WorkflowTasksGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
generate()
protected void
saxTasks(User user)
SAX tasksvoid
service(ServiceManager serviceManager)
-
Methods inherited from class org.ametys.core.util.cocoon.AbstractCurrentUserProviderServiceableGenerator
_getCurrentUser
-
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
-
_userManager
protected UserManager _userManager
The Users Manager.
-
_tasksManager
protected WorkflowTasksComponent _tasksManager
The task component
-
-
Constructor Detail
-
WorkflowTasksGenerator
public WorkflowTasksGenerator()
-
-
Method Detail
-
service
public void service(ServiceManager serviceManager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classAbstractCurrentUserProviderServiceableGenerator
- Throws:
ServiceException
-
generate
public void generate() throws IOException, SAXException, ProcessingException
-
saxTasks
protected void saxTasks(User user) throws SAXException
SAX tasks- Parameters:
user
- the user- Throws:
SAXException
- If an error occurred
-
-