Interface WorkflowsServiceLocal
-
public interface WorkflowsServiceLocalLocal interface for the Workflows service from the Planner API
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<Workflow>addWorkflows(java.util.List<Workflow> workflows)Creates the specified workflowsjava.lang.StringdeleteWorkflow(java.lang.String id)Deletes the workflow at the specified IDWorkflowgetWorkflowById(java.lang.String id)Returns the workflow at the specified IDjava.util.List<Workflow>getWorkflows(java.lang.String type)Returns workflows at the specified typejava.lang.StringsetWorkflow(Workflow workflow)Modifies the specified workflow (by its inner ID)WorkflowsetWorkflowProcessForDocument(java.lang.String documentId, Workflow workflow)Set new workflow process for document.java.util.List<Document>setWorkflowProcessForDocuments(java.lang.String workflowProcessId, java.util.List<Document> documents)Set the workflow for the list of documentsWorkflowsetWorkflowProcessForPublication(java.lang.String publicationId, Workflow workflow)Set new workflow process for publication.java.util.List<Publication>setWorkflowProcessForPublications(java.lang.String workflowProcessId, java.util.List<Publication> publications)Set the workflow for the list of publicationsjava.util.List<Workflow>setWorkflows(java.util.List<Workflow> workflows)Modifies the specified workflows
-
-
-
Method Detail
-
getWorkflows
java.util.List<Workflow> getWorkflows(java.lang.String type) throws PubServerException
Returns workflows at the specified type- Parameters:
type- type of the workflow- Returns:
- the list of workflows
- Throws:
PubServerException- See Also:
Workflow
-
getWorkflowById
Workflow getWorkflowById(java.lang.String id) throws PubServerException, java.lang.NumberFormatException
Returns the workflow at the specified ID- Parameters:
id- ID of the workflow- Returns:
- the workflow
- Throws:
PubServerExceptionjava.lang.NumberFormatException- See Also:
Workflow
-
setWorkflow
java.lang.String setWorkflow(Workflow workflow) throws PubServerException
Modifies the specified workflow (by its inner ID)- Parameters:
workflow- the workflow to modify- Returns:
- modified workflow
- Throws:
PubServerException- See Also:
Workflow
-
setWorkflows
java.util.List<Workflow> setWorkflows(java.util.List<Workflow> workflows) throws PubServerException
Modifies the specified workflows- Parameters:
workflows- the list of workflows to modify- Returns:
- the list of processed workflow
- Throws:
PubServerException- See Also:
Workflow
-
addWorkflows
java.util.List<Workflow> addWorkflows(java.util.List<Workflow> workflows) throws PubServerException
Creates the specified workflows- Parameters:
workflows- the list of workflows to create- Returns:
- the list of processed workflow
- Throws:
PubServerException- See Also:
Workflow
-
deleteWorkflow
java.lang.String deleteWorkflow(java.lang.String id) throws PubServerException, java.lang.NumberFormatExceptionDeletes the workflow at the specified ID- Parameters:
id- workflow ID- Returns:
- ID of workflow which was deleted
- Throws:
PubServerExceptionjava.lang.NumberFormatException- See Also:
Workflow
-
setWorkflowProcessForDocuments
java.util.List<Document> setWorkflowProcessForDocuments(java.lang.String workflowProcessId, java.util.List<Document> documents) throws PubServerException
Set the workflow for the list of documents- Parameters:
workflowProcessId- workflow process IDdocuments- the list of documents to set workflow process- Returns:
- the list of documents which was setted
- Throws:
PubServerException- See Also:
Workflow
-
setWorkflowProcessForPublications
java.util.List<Publication> setWorkflowProcessForPublications(java.lang.String workflowProcessId, java.util.List<Publication> publications) throws PubServerException
Set the workflow for the list of publications- Parameters:
workflowProcessId- workflow process IDpublications- the list of publications to set workflow process- Returns:
- the list of publications which was setted
- Throws:
PubServerException- See Also:
Workflow
-
setWorkflowProcessForDocument
Workflow setWorkflowProcessForDocument(java.lang.String documentId, Workflow workflow) throws PubServerException
Set new workflow process for document.- Parameters:
documentId- documentId IDworkflow- workflow process- Returns:
- workflow
- Throws:
PubServerException- See Also:
Task
-
setWorkflowProcessForPublication
Workflow setWorkflowProcessForPublication(java.lang.String publicationId, Workflow workflow) throws PubServerException
Set new workflow process for publication.- Parameters:
publicationId- publication IDworkflow- workflow process- Returns:
- workflow
- Throws:
PubServerException- See Also:
Task
-
-