public class WorkflowTasksComponent extends WorkflowTasksComponent implements Contextualizable
WorkflowTasksComponent.LastModifiedDateComparator, WorkflowTasksComponent.Task, WorkflowTasksComponent.TaskStep
Modifier and Type | Field and Description |
---|---|
protected Context |
_context
The avalon context.
|
protected ContentTypesAssignmentHandler |
_cTypeHandler
The content types assignment handler
|
protected SiteManager |
_siteManager
The site manager.
|
static String |
ROLE
The avalon role.
|
_allowUserQuery, _contentHelper, _contentTypesHelper, _cTypeEP, _languagesManager, _objectResolver, _rightManager, _tasks, _userManager, _workflowProvider
Constructor and Description |
---|
WorkflowTasksComponent() |
Modifier and Type | Method and Description |
---|---|
protected AmetysObjectIterable<Content> |
_getContents(WorkflowTasksComponent.TaskStep step,
User user)
Get the contents for a step.
|
protected Expression |
_getContentTypeExpression(String siteName)
The content type expression
|
protected void |
_saxAdditionalAttributes(Content content,
AttributesImpl attrs)
SAX additional attributes
|
void |
contextualize(Context context) |
Collection<Content> |
getContents(User user,
String taskId,
String siteName,
String language,
int limit)
Get the list of contents for a given user, task and site.
|
void |
service(ServiceManager serviceManager) |
void |
toSAX(ContentHandler ch,
User user)
SAX the contents for given user
|
void |
toSAX(ContentHandler ch,
User user,
String taskId)
SAX the contents for given user and task
|
void |
toSAX(ContentHandler ch,
User user,
String siteName,
String language,
String taskId)
SAX the contents for given user, site and task
|
_configureStepIds, _configureTasks, _getCorrespondingWorkflows, _getTaskContents, _getTaskContents, _saxAdditionalAttributes, _saxContent, _saxContentCurrentState, _saxTask, _testContent, allowUserQuery, configure, getContents, getTasks
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
protected SiteManager _siteManager
protected ContentTypesAssignmentHandler _cTypeHandler
public WorkflowTasksComponent()
public void service(ServiceManager serviceManager) throws ServiceException
service
in interface Serviceable
service
in class WorkflowTasksComponent
ServiceException
public void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
ContextException
public void toSAX(ContentHandler ch, User user) throws SAXException
WorkflowTasksComponent
toSAX
in class WorkflowTasksComponent
ch
- the content handler to SAX intouser
- the userSAXException
- If an error occurredpublic void toSAX(ContentHandler ch, User user, String taskId) throws SAXException
WorkflowTasksComponent
toSAX
in class WorkflowTasksComponent
ch
- the content handler to SAX intouser
- the usertaskId
- the task idSAXException
- If an error occurredpublic void toSAX(ContentHandler ch, User user, String siteName, String language, String taskId) throws SAXException
ch
- the content handler to SAX intouser
- the usersiteName
- the site namelanguage
- the language.taskId
- the task idSAXException
- if an error occurred while saxingpublic Collection<Content> getContents(User user, String taskId, String siteName, String language, int limit) throws AmetysRepositoryException
user
- the user.taskId
- the task ID.siteName
- the site name.language
- the language.limit
- the maximum number of results, 0 for all.AmetysRepositoryException
- if an error occurredprotected AmetysObjectIterable<Content> _getContents(WorkflowTasksComponent.TaskStep step, User user)
WorkflowTasksComponent
_getContents
in class WorkflowTasksComponent
step
- the step.user
- the user.protected Expression _getContentTypeExpression(String siteName)
siteName
- the site nameprotected void _saxAdditionalAttributes(Content content, AttributesImpl attrs) throws SAXException
WorkflowTasksComponent
_saxAdditionalAttributes
in class WorkflowTasksComponent
content
- the contentattrs
- the attributesSAXException
- If an error occurred