Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jbpm.task.service
Class TaskServiceSession

    java.lang.Object
      org.jbpm.task.service.TaskPersistenceManagerAccessor
          org.jbpm.task.service.TaskServiceSession

    public class TaskServiceSession

extends TaskPersistenceManagerAccessor

Constructor Summary
`TaskServiceSession(TaskService service, javax.persistence.EntityManagerFactory emf)`

Method Summary
`void` | `addAttachment(long taskId, Attachment attachment, Content content)`
`void` | `addComment(long taskId, Comment comment)`
`void` | `addGroup(Group group)`
`void` | `addTask(Task task, ContentData contentData)`
`void` | `addUser(User user)`
`void` | `deleteAttachment(long taskId, long attachmentId, long contentId)`
`void` | `deleteComment(long taskId, long commentId)`
`void` | `deleteFault(long taskId, String userId)`
`void` | `deleteOutput(long taskId, String userId)`
`void` | `dispose()`
`void` | `executeEscalatedDeadline(EscalatedDeadlineHandler escalatedDeadlineHandler, TaskService service, long taskId, long deadlineId)` This method is run
`Content` | `getContent(long contentId)`
`Deadline` | `getDeadline(long deadlineId)`
`TaskService` | `getService()`
`List<TaskSummary>` | `getSubTasksAssignedAsPotentialOwner(long parentId, String userId, String language)`
`List<TaskSummary>` | `getSubTasksByParent(long parentId, String language)`
`Task` | `getTask(long taskId)`
`Task` | `getTaskByWorkItemId(long workItemId)`
`TaskPersistenceManager` | `getTaskPersistenceManager()`
`List<TaskSummary>` | `getTasksAssignedAsBusinessAdministrator(String userId, String language)`
`List<TaskSummary>` | `getTasksAssignedAsExcludedOwner(String userId, String language)`
`List<TaskSummary>` | `getTasksAssignedAsPotentialOwner(String userId, List<String> groupIds, String language)`
`List<TaskSummary>` | `getTasksAssignedAsPotentialOwner(String userId, List<String> groupIds, String language, int firstResult, int maxResults)`
`List<TaskSummary>` | `getTasksAssignedAsPotentialOwner(String userId, String language)`
`List<TaskSummary>` | `getTasksAssignedAsPotentialOwnerByGroup(String groupId, String language)`
`List<TaskSummary>` | `getTasksAssignedAsRecipient(String userId, String language)`
`List<TaskSummary>` | `getTasksAssignedAsTaskInitiator(String userId, String language)`
`List<TaskSummary>` | `getTasksAssignedAsTaskStakeholder(String userId, String language)`
`List<TaskSummary>` | `getTasksOwned(String userId, String language)`
`void` | `nominateTask(long taskId, String userId, List<OrganizationalEntity> potentialOwners)`
`List<?>` | `query(String qlString, Integer size, Integer offset)`
`void` | `setDocumentContent(long taskId, Content content)`
`void` | `setFault(long taskId, String userId, FaultData faultContentData)`
`void` | `setGlobals(String type, Map<String,Object> globals)`
`void` | `setOutput(long taskId, String userId, ContentData outputContentData)`
`void` | `setPriority(long taskId, String userId, int priority)`
`void` | `setRuleBase(String type, org.drools.RuleBase ruleBase)`
`void` | `setTaskStatus(long taskId, Status status)`
`void` | `taskOperation(Operation operation, long taskId, String userId, String targetEntityId, ContentData data, List<String> groupIds)`

Methods inherited from class org.jbpm.task.service.TaskPersistenceManagerAccessor
`getTaskPersistenceManagerFactory, setTaskPersistenceManagerFactory`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### TaskServiceSession

    public TaskServiceSession(TaskService service,
                              javax.persistence.EntityManagerFactory emf)

Method Detail

### dispose

    public void dispose()

### getTaskPersistenceManager

    public TaskPersistenceManager getTaskPersistenceManager()

### getService

    public TaskService getService()

### setRuleBase

    public void setRuleBase(String type,
                            org.drools.RuleBase ruleBase)

### setGlobals

    public void setGlobals(String type,
                           Map<String,Object> globals)

### addUser

    public void addUser(User user)

### addGroup

    public void addGroup(Group group)

### addTask

    public void addTask(Task task,
                        ContentData contentData)
                 throws CannotAddTaskException

  Throws:
    `CannotAddTaskException`

### taskOperation

    public void taskOperation(Operation operation,
                              long taskId,
                              String userId,
                              String targetEntityId,
                              ContentData data,
                              List<String> groupIds)
                       throws TaskException

  Throws:
    `TaskException`

### getTask

    public Task getTask(long taskId)

### getDeadline

    public Deadline getDeadline(long deadlineId)

### setTaskStatus

    public void setTaskStatus(long taskId,
                              Status status)

### addComment

    public void addComment(long taskId,
                           Comment comment)

### addAttachment

    public void addAttachment(long taskId,
                              Attachment attachment,
                              Content content)

### setDocumentContent

    public void setDocumentContent(long taskId,
                                   Content content)

### getContent

    public Content getContent(long contentId)

### deleteAttachment

    public void deleteAttachment(long taskId,
                                 long attachmentId,
                                 long contentId)

### deleteComment

    public void deleteComment(long taskId,
                              long commentId)

### getTaskByWorkItemId

    public Task getTaskByWorkItemId(long workItemId)

### getTasksOwned

    public List<TaskSummary> getTasksOwned(String userId,
                                           String language)

### getTasksAssignedAsBusinessAdministrator

    public List<TaskSummary> getTasksAssignedAsBusinessAdministrator(String userId,
                                                                     String language)

### getTasksAssignedAsExcludedOwner

    public List<TaskSummary> getTasksAssignedAsExcludedOwner(String userId,
                                                             String language)

### getTasksAssignedAsPotentialOwner

    public List<TaskSummary> getTasksAssignedAsPotentialOwner(String userId,
                                                              String language)

### getTasksAssignedAsPotentialOwner

    public List<TaskSummary> getTasksAssignedAsPotentialOwner(String userId,
                                                              List<String> groupIds,
                                                              String language)

### getTasksAssignedAsPotentialOwner

    public List<TaskSummary> getTasksAssignedAsPotentialOwner(String userId,
                                                              List<String> groupIds,
                                                              String language,
                                                              int firstResult,
                                                              int maxResults)

### getSubTasksAssignedAsPotentialOwner

    public List<TaskSummary> getSubTasksAssignedAsPotentialOwner(long parentId,
                                                                 String userId,
                                                                 String language)

### getTasksAssignedAsPotentialOwnerByGroup

    public List<TaskSummary> getTasksAssignedAsPotentialOwnerByGroup(String groupId,
                                                                     String language)

### getSubTasksByParent

    public List<TaskSummary> getSubTasksByParent(long parentId,
                                                 String language)

### getTasksAssignedAsRecipient

    public List<TaskSummary> getTasksAssignedAsRecipient(String userId,
                                                         String language)

### getTasksAssignedAsTaskInitiator

    public List<TaskSummary> getTasksAssignedAsTaskInitiator(String userId,
                                                             String language)

### getTasksAssignedAsTaskStakeholder

    public List<TaskSummary> getTasksAssignedAsTaskStakeholder(String userId,
                                                               String language)

### query

    public List<?> query(String qlString,
                         Integer size,
                         Integer offset)

### nominateTask

    public void nominateTask(long taskId,
                             String userId,
                             List<OrganizationalEntity> potentialOwners)

### setOutput

    public void setOutput(long taskId,
                          String userId,
                          ContentData outputContentData)

### setFault

    public void setFault(long taskId,
                         String userId,
                         FaultData faultContentData)

### setPriority

    public void setPriority(long taskId,
                            String userId,
                            int priority)

### deleteOutput

    public void deleteOutput(long taskId,
                             String userId)

### deleteFault

    public void deleteFault(long taskId,
                            String userId)

### executeEscalatedDeadline

    public void executeEscalatedDeadline(EscalatedDeadlineHandler escalatedDeadlineHandler,
                                         TaskService service,
                                         long taskId,
                                         long deadlineId)

  This method is run

  Parameters:
    `escalatedDeadlineHandler` -
    `service` -
    `taskId` -
    `deadlineId` -

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.