public class TaskService extends Object
| Constructor and Description |
|---|
TaskService() |
| Modifier and Type | Method and Description |
|---|---|
void |
createTask(Task task,
JCRUserNode userNode)
Creates a task for the specified user.
|
void |
createTask(Task task,
String forUser)
Creates a task for the specified user.
|
void |
createTaskForGroup(Task task,
JCRGroupNode group) |
void |
createTaskForGroup(Task task,
String forGroup,
String siteKey)
Creates a task for all users of the specified group.
|
void |
setGroupManager(JahiaGroupManagerService groupManager) |
void |
setUserManagerService(JahiaUserManagerService userManagerService) |
public void createTask(Task task, String forUser) throws javax.jcr.RepositoryException
task - the task to be createdforUser - the user name, who gets this taskjavax.jcr.RepositoryException - in case of an errorpublic void createTask(Task task, JCRUserNode userNode) throws javax.jcr.RepositoryException
task - the task to be createduserNode - the user node, who gets this taskjavax.jcr.RepositoryException - in case of an errorpublic void createTaskForGroup(Task task, String forGroup, String siteKey) throws javax.jcr.RepositoryException
task - the task to be createdforGroup - the group name, which members will get this tasksiteKey - the site key of the groupjavax.jcr.RepositoryException - in case of an errorpublic void createTaskForGroup(Task task, JCRGroupNode group) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void setGroupManager(JahiaGroupManagerService groupManager)
public void setUserManagerService(JahiaUserManagerService userManagerService)
Copyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.