Interface TasksServiceLocal
public interface TasksServiceLocal
Local interface for the Tasks service from the Planner API
-
Method Summary
Modifier and TypeMethodDescriptionchangeWorkflowStepForDocument(String documentId, WorkflowStep workflowStep) change workflow step for documentchangeWorkflowStepForDocuments(String workflowStepId, List<Document> documents) change workflow step for documentschangeWorkflowStepForPublication(String publicationId, WorkflowStep workflowStep) change workflow step for documentchangeWorkflowStepForPublications(String workflowStepId, List<Publication> publications) change workflow step for publicationsReturns the task at the specified IDgetTasks(TasksFilter filter) Returns tasks fulfilling the search criteriaModifies an existing task
-
Method Details
-
getTask
Returns the task at the specified ID- Parameters:
id- task ID- Returns:
- the task
- Throws:
PubServerExceptionNumberFormatException- See Also:
-
getTasks
Returns tasks fulfilling the search criteria- Parameters:
filter- search criteria in the TasksFilter object- Returns:
- the list of tasks
- Throws:
PubServerException- See Also:
-
setTask
Modifies an existing taskposible to edit: emailtext, startdate, enddate, personID
- Parameters:
inputTask- the task to change- Returns:
- changed task
- Throws:
PubServerException- See Also:
-
changeWorkflowStepForDocument
String changeWorkflowStepForDocument(String documentId, WorkflowStep workflowStep) throws PubServerException change workflow step for document- Parameters:
documentId- publication IDworkflowStep- next workflow step- Returns:
- String if String is empty then the process of changing workflow step has been finished successful, otherwise we get error message
- Throws:
PubServerException- See Also:
-
changeWorkflowStepForPublication
String changeWorkflowStepForPublication(String publicationId, WorkflowStep workflowStep) throws PubServerException change workflow step for document- Parameters:
publicationId- publication IDworkflowStep- next workflow step- Returns:
- String if String is empty then the process of changing workflow step has been finished successful, otherwise we get error message
- Throws:
PubServerException- See Also:
-
changeWorkflowStepForDocuments
List<Document> changeWorkflowStepForDocuments(String workflowStepId, List<Document> documents) throws PubServerException change workflow step for documents- Parameters:
workflowStepId- workflow step id which should be setdocuments- the documents list of documents which should be changed- Returns:
- List of documents
- Throws:
PubServerException- See Also:
-
changeWorkflowStepForPublications
List<Publication> changeWorkflowStepForPublications(String workflowStepId, List<Publication> publications) throws PubServerException change workflow step for publications- Parameters:
workflowStepId- workflow step id which should be setpublications- which will be changed- Returns:
- List of publications
- Throws:
PubServerException- See Also:
-