Package org.ametys.odf.workflow.task
Class AbstractOdfWorkflowTasksComponent
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.ametys.cms.workflow.WorkflowTasksComponent
-
- org.ametys.odf.workflow.task.AbstractOdfWorkflowTasksComponent
-
- All Implemented Interfaces:
Component
,Configurable
,LogEnabled
,Serviceable
,ThreadSafe
- Direct Known Subclasses:
AbstractOdfWorkflowTasksWithChangesComponent
,CourseWorkflowTasksComponent
public abstract class AbstractOdfWorkflowTasksComponent extends WorkflowTasksComponent
Override WorkflowTasksComponent to target ODF contents
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.ametys.cms.workflow.WorkflowTasksComponent
WorkflowTasksComponent.LastModifiedDateComparator, WorkflowTasksComponent.Task, WorkflowTasksComponent.TaskStep
-
-
Field Summary
Fields Modifier and Type Field Description protected CatalogsManager
_catalogsManager
Catalogs manager-
Fields inherited from class org.ametys.cms.workflow.WorkflowTasksComponent
_allowUserQuery, _contentHelper, _contentTypesHelper, _cTypeEP, _languagesManager, _objectResolver, _rightManager, _tasks, _userManager, _workflowProvider, ROLE
-
-
Constructor Summary
Constructors Constructor Description AbstractOdfWorkflowTasksComponent()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected List<Expression>
_getContentsAndExpressions(WorkflowTasksComponent.TaskStep step, User user)
Get the AND expressions to request on contentsprotected void
_saxAdditionalData(ContentHandler ch, Content content, WorkflowTasksComponent.Task task)
SAX additional dataprotected abstract Expression
getContentTypeExpression()
Get the content type expression concerned by this componentvoid
service(ServiceManager manager)
-
Methods inherited from class org.ametys.cms.workflow.WorkflowTasksComponent
_configureAdditional, _configureStep, _configureStepIds, _configureTasks, _getContents, _getCorrespondingWorkflows, _getTaskContents, _getTaskContents, _saxAdditionalAttributes, _saxAdditionalAttributes, _saxContent, _saxContentCurrentState, _saxTask, _testContent, allowUserQuery, configure, getContents, getTasks, toSAX, toSAX
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Field Detail
-
_catalogsManager
protected CatalogsManager _catalogsManager
Catalogs manager
-
-
Constructor Detail
-
AbstractOdfWorkflowTasksComponent
public AbstractOdfWorkflowTasksComponent()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classWorkflowTasksComponent
- Throws:
ServiceException
-
_getContentsAndExpressions
protected List<Expression> _getContentsAndExpressions(WorkflowTasksComponent.TaskStep step, User user)
Description copied from class:WorkflowTasksComponent
Get the AND expressions to request on contents- Overrides:
_getContentsAndExpressions
in classWorkflowTasksComponent
- Parameters:
step
- the step.user
- the user.- Returns:
- The content's expressions
-
_saxAdditionalData
protected void _saxAdditionalData(ContentHandler ch, Content content, WorkflowTasksComponent.Task task) throws SAXException
Description copied from class:WorkflowTasksComponent
SAX additional data- Overrides:
_saxAdditionalData
in classWorkflowTasksComponent
- Parameters:
ch
- the content handler.content
- the contenttask
- the task- Throws:
SAXException
- If an error occurred
-
getContentTypeExpression
protected abstract Expression getContentTypeExpression()
Get the content type expression concerned by this component- Returns:
- the content type expression
-
-