org.ow2.orchestra.b4p.ws
Class TaskOperationsImpl

java.lang.Object
  extended by org.ow2.orchestra.b4p.ws.TaskOperationsImpl
All Implemented Interfaces:
TaskOperations

public class TaskOperationsImpl
extends Object
implements TaskOperations

Created by Guillaume Porcher Date: 04/09/11 Time: 20:37


Constructor Summary
TaskOperationsImpl()
           
 
Method Summary
 void activate(String identifier)
           
 void addAttachment(String identifier, String name, String accessType, Object attachment)
           
 void addComment(String identifier, String text)
           
 void claim(String identifier)
           
 void complete(String identifier, Object taskData)
           
 void delegate(String identifier, TOrganizationalEntity organizationalEntity)
           
 void deleteAttachments(String identifier, String attachmentName)
           
 void deleteFault(String identifier)
           
 void deleteOutput(String identifier)
           
 void fail(String identifier, String faultName, Object faultData)
           
 void forward(String identifier, TOrganizationalEntity organizationalEntity)
           
 List<TAttachmentInfo> getAttachmentInfos(String identifier)
           
 List<TAttachment> getAttachments(String identifier, String attachmentName)
           
 List<TComment> getComments(String identifier)
           
 void getFault(String identifier, javax.xml.ws.Holder<String> faultName, javax.xml.ws.Holder<Object> faultData)
           
 Object getInput(String identifier, String part)
           
 List<TTaskAbstract> getMyTaskAbstracts(String taskType, String genericHumanRole, String workQueue, List<TStatus> status, String whereClause, String createdOnClause, Integer maxTasks)
           
 List<TTask> getMyTasks(String taskType, String genericHumanRole, String workQueue, List<TStatus> status, String whereClause, String createdOnClause, Integer maxTasks)
           
 Object getOutput(String identifier, String part)
           
 Object getRendering(Object identifier, QName renderingType)
           
 List<QName> getRenderingTypes(Object identifier)
           
 String getTaskDescription(String identifier, String contentType)
           
 TTask getTaskInfo(String identifier)
           
 TaskRepository getTaskRepository()
           
 void nominate(String identifier, TOrganizationalEntity organizationalEntity)
           
 TTaskQueryResultSet query(String selectClause, String whereClause, String orderByClause, Integer maxTasks, Integer taskIndexOffset)
           
 void release(String identifier)
           
 void remove(String identifier)
           
 void resume(String identifier)
           
 void setFault(String identifier, String faultName, Object faultData)
           
 void setGenericHumanRole(String identifier, String genericHumanRole, TOrganizationalEntity organizationalEntity)
           
 void setOutput(String identifier, String part, Object taskData)
           
 void setPriority(String identifier, BigInteger priority)
           
 void setTaskRepository(TaskRepository taskRepository)
           
 void skip(String identifier)
           
 void start(String identifier)
           
 void stop(String identifier)
           
 void suspend(String identifier)
           
 void suspendUntil(String identifier, TTime time)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaskOperationsImpl

public TaskOperationsImpl()
Method Detail

setTaskRepository

public void setTaskRepository(TaskRepository taskRepository)

getTaskRepository

public TaskRepository getTaskRepository()

nominate

public void nominate(String identifier,
                     TOrganizationalEntity organizationalEntity)
              throws IllegalArgumentFault,
                     IllegalStateFault,
                     IllegalAccessFault
Specified by:
nominate in interface TaskOperations
Throws:
IllegalArgumentFault
IllegalStateFault
IllegalAccessFault

getFault

public void getFault(String identifier,
                     javax.xml.ws.Holder<String> faultName,
                     javax.xml.ws.Holder<Object> faultData)
              throws IllegalArgumentFault,
                     IllegalStateFault,
                     IllegalOperationFault,
                     IllegalAccessFault
Specified by:
getFault in interface TaskOperations
Throws:
IllegalArgumentFault
IllegalStateFault
IllegalOperationFault
IllegalAccessFault

forward

public void forward(String identifier,
                    TOrganizationalEntity organizationalEntity)
             throws IllegalArgumentFault,
                    IllegalStateFault,
                    IllegalAccessFault
Specified by:
forward in interface TaskOperations
Throws:
IllegalArgumentFault
IllegalStateFault
IllegalAccessFault

deleteOutput

public void deleteOutput(String identifier)
                  throws IllegalArgumentFault,
                         IllegalStateFault,
                         IllegalAccessFault
Specified by:
deleteOutput in interface TaskOperations
Throws:
IllegalArgumentFault
IllegalStateFault
IllegalAccessFault

getRenderingTypes

public List<QName> getRenderingTypes(Object identifier)
                              throws IllegalArgumentFault
Specified by:
getRenderingTypes in interface TaskOperations
Throws:
IllegalArgumentFault

getComments

public List<TComment> getComments(String identifier)
                           throws IllegalArgumentFault,
                                  IllegalStateFault,
                                  IllegalAccessFault
Specified by:
getComments in interface TaskOperations
Throws:
IllegalArgumentFault
IllegalStateFault
IllegalAccessFault

addAttachment

public void addAttachment(String identifier,
                          String name,
                          String accessType,
                          Object attachment)
                   throws IllegalArgumentFault,
                          IllegalStateFault,
                          IllegalAccessFault
Specified by:
addAttachment in interface TaskOperations
Throws:
IllegalArgumentFault
IllegalStateFault
IllegalAccessFault

activate

public void activate(String identifier)
              throws IllegalArgumentFault,
                     IllegalStateFault,
                     IllegalAccessFault
Specified by:
activate in interface TaskOperations
Throws:
IllegalArgumentFault
IllegalStateFault
IllegalAccessFault

setOutput

public void setOutput(String identifier,
                      String part,
                      Object taskData)
               throws IllegalArgumentFault,
                      IllegalStateFault,
                      IllegalAccessFault
Specified by:
setOutput in interface TaskOperations
Throws:
IllegalArgumentFault
IllegalStateFault
IllegalAccessFault

start

public void start(String identifier)
           throws IllegalArgumentFault,
                  IllegalStateFault,
                  IllegalAccessFault
Specified by:
start in interface TaskOperations
Throws:
IllegalArgumentFault
IllegalStateFault
IllegalAccessFault

query

public TTaskQueryResultSet query(String selectClause,
                                 String whereClause,
                                 String orderByClause,
                                 Integer maxTasks,
                                 Integer taskIndexOffset)
                          throws IllegalArgumentFault,
                                 IllegalStateFault
Specified by:
query in interface TaskOperations
Throws:
IllegalArgumentFault
IllegalStateFault

deleteAttachments

public void deleteAttachments(String identifier,
                              String attachmentName)
                       throws IllegalArgumentFault,
                              IllegalStateFault,
                              IllegalAccessFault
Specified by:
deleteAttachments in interface TaskOperations
Throws:
IllegalArgumentFault
IllegalStateFault
IllegalAccessFault

getMyTaskAbstracts

public List<TTaskAbstract> getMyTaskAbstracts(String taskType,
                                              String genericHumanRole,
                                              String workQueue,
                                              List<TStatus> status,
                                              String whereClause,
                                              String createdOnClause,
                                              Integer maxTasks)
                                       throws IllegalArgumentFault,
                                              IllegalStateFault
Specified by:
getMyTaskAbstracts in interface TaskOperations
Throws:
IllegalArgumentFault
IllegalStateFault

skip

public void skip(String identifier)
          throws IllegalArgumentFault,
                 IllegalStateFault,
                 IllegalOperationFault,
                 IllegalAccessFault
Specified by:
skip in interface TaskOperations
Throws:
IllegalArgumentFault
IllegalStateFault
IllegalOperationFault
IllegalAccessFault

getAttachments

public List<TAttachment> getAttachments(String identifier,
                                        String attachmentName)
                                 throws IllegalArgumentFault,
                                        IllegalStateFault,
                                        IllegalAccessFault
Specified by:
getAttachments in interface TaskOperations
Throws:
IllegalArgumentFault
IllegalStateFault
IllegalAccessFault

getTaskDescription

public String getTaskDescription(String identifier,
                                 String contentType)
                          throws IllegalArgumentFault
Specified by:
getTaskDescription in interface TaskOperations
Throws:
IllegalArgumentFault

release

public void release(String identifier)
             throws IllegalArgumentFault,
                    IllegalStateFault,
                    IllegalAccessFault
Specified by:
release in interface TaskOperations
Throws:
IllegalArgumentFault
IllegalStateFault
IllegalAccessFault

getTaskInfo

public TTask getTaskInfo(String identifier)
                  throws IllegalArgumentFault
Specified by:
getTaskInfo in interface TaskOperations
Throws:
IllegalArgumentFault

remove

public void remove(String identifier)
            throws IllegalArgumentFault,
                   IllegalAccessFault
Specified by:
remove in interface TaskOperations
Throws:
IllegalArgumentFault
IllegalAccessFault

suspend

public void suspend(String identifier)
             throws IllegalArgumentFault,
                    IllegalStateFault,
                    IllegalAccessFault
Specified by:
suspend in interface TaskOperations
Throws:
IllegalArgumentFault
IllegalStateFault
IllegalAccessFault

getMyTasks

public List<TTask> getMyTasks(String taskType,
                              String genericHumanRole,
                              String workQueue,
                              List<TStatus> status,
                              String whereClause,
                              String createdOnClause,
                              Integer maxTasks)
                       throws IllegalArgumentFault,
                              IllegalStateFault
Specified by:
getMyTasks in interface TaskOperations
Throws:
IllegalArgumentFault
IllegalStateFault

setGenericHumanRole

public void setGenericHumanRole(String identifier,
                                String genericHumanRole,
                                TOrganizationalEntity organizationalEntity)
                         throws IllegalArgumentFault,
                                IllegalStateFault,
                                IllegalAccessFault
Specified by:
setGenericHumanRole in interface TaskOperations
Throws:
IllegalArgumentFault
IllegalStateFault
IllegalAccessFault

getInput

public Object getInput(String identifier,
                       String part)
                throws IllegalArgumentFault,
                       IllegalStateFault,
                       IllegalAccessFault
Specified by:
getInput in interface TaskOperations
Throws:
IllegalArgumentFault
IllegalStateFault
IllegalAccessFault

getRendering

public Object getRendering(Object identifier,
                           QName renderingType)
                    throws IllegalArgumentFault
Specified by:
getRendering in interface TaskOperations
Throws:
IllegalArgumentFault

setFault

public void setFault(String identifier,
                     String faultName,
                     Object faultData)
              throws IllegalArgumentFault,
                     IllegalStateFault,
                     IllegalOperationFault,
                     IllegalAccessFault
Specified by:
setFault in interface TaskOperations
Throws:
IllegalArgumentFault
IllegalStateFault
IllegalOperationFault
IllegalAccessFault

delegate

public void delegate(String identifier,
                     TOrganizationalEntity organizationalEntity)
              throws RecipientNotAllowed,
                     IllegalArgumentFault,
                     IllegalStateFault,
                     IllegalAccessFault
Specified by:
delegate in interface TaskOperations
Throws:
RecipientNotAllowed
IllegalArgumentFault
IllegalStateFault
IllegalAccessFault

stop

public void stop(String identifier)
          throws IllegalArgumentFault,
                 IllegalStateFault,
                 IllegalAccessFault
Specified by:
stop in interface TaskOperations
Throws:
IllegalArgumentFault
IllegalStateFault
IllegalAccessFault

getOutput

public Object getOutput(String identifier,
                        String part)
                 throws IllegalArgumentFault,
                        IllegalStateFault,
                        IllegalAccessFault
Specified by:
getOutput in interface TaskOperations
Throws:
IllegalArgumentFault
IllegalStateFault
IllegalAccessFault

getAttachmentInfos

public List<TAttachmentInfo> getAttachmentInfos(String identifier)
                                         throws IllegalArgumentFault,
                                                IllegalStateFault,
                                                IllegalAccessFault
Specified by:
getAttachmentInfos in interface TaskOperations
Throws:
IllegalArgumentFault
IllegalStateFault
IllegalAccessFault

suspendUntil

public void suspendUntil(String identifier,
                         TTime time)
                  throws IllegalArgumentFault,
                         IllegalStateFault,
                         IllegalAccessFault
Specified by:
suspendUntil in interface TaskOperations
Throws:
IllegalArgumentFault
IllegalStateFault
IllegalAccessFault

addComment

public void addComment(String identifier,
                       String text)
                throws IllegalArgumentFault,
                       IllegalStateFault,
                       IllegalAccessFault
Specified by:
addComment in interface TaskOperations
Throws:
IllegalArgumentFault
IllegalStateFault
IllegalAccessFault

complete

public void complete(String identifier,
                     Object taskData)
              throws IllegalArgumentFault,
                     IllegalStateFault,
                     IllegalAccessFault
Specified by:
complete in interface TaskOperations
Throws:
IllegalArgumentFault
IllegalStateFault
IllegalAccessFault

setPriority

public void setPriority(String identifier,
                        BigInteger priority)
                 throws IllegalArgumentFault,
                        IllegalStateFault,
                        IllegalAccessFault
Specified by:
setPriority in interface TaskOperations
Throws:
IllegalArgumentFault
IllegalStateFault
IllegalAccessFault

resume

public void resume(String identifier)
            throws IllegalArgumentFault,
                   IllegalStateFault,
                   IllegalAccessFault
Specified by:
resume in interface TaskOperations
Throws:
IllegalArgumentFault
IllegalStateFault
IllegalAccessFault

claim

public void claim(String identifier)
           throws IllegalArgumentFault,
                  IllegalStateFault,
                  IllegalAccessFault
Specified by:
claim in interface TaskOperations
Throws:
IllegalArgumentFault
IllegalStateFault
IllegalAccessFault

fail

public void fail(String identifier,
                 String faultName,
                 Object faultData)
          throws IllegalArgumentFault,
                 IllegalStateFault,
                 IllegalOperationFault,
                 IllegalAccessFault
Specified by:
fail in interface TaskOperations
Throws:
IllegalArgumentFault
IllegalStateFault
IllegalOperationFault
IllegalAccessFault

deleteFault

public void deleteFault(String identifier)
                 throws IllegalArgumentFault,
                        IllegalStateFault,
                        IllegalAccessFault
Specified by:
deleteFault in interface TaskOperations
Throws:
IllegalArgumentFault
IllegalStateFault
IllegalAccessFault


Copyright © 2012 OW2 Consortium. All Rights Reserved.