Interface WorkflowsServiceLocal
public interface WorkflowsServiceLocal
Local interface for the Workflows service from the Planner API
-
Method Summary
Modifier and TypeMethodDescriptionaddWorkflows(List<Workflow> workflows) Creates the specified workflowsdeleteWorkflow(String id) Deletes the workflow at the specified IDReturns the workflow at the specified IDgetWorkflows(String type) Returns workflows at the specified typesetWorkflow(Workflow workflow) Modifies the specified workflow (by its inner ID)setWorkflowProcessForDocument(String documentId, Workflow workflow) Set new workflow process for document.setWorkflowProcessForDocuments(String workflowProcessId, List<Document> documents) Set the workflow for the list of documentssetWorkflowProcessForPublication(String publicationId, Workflow workflow) Set new workflow process for publication.setWorkflowProcessForPublications(String workflowProcessId, List<Publication> publications) Set the workflow for the list of publicationssetWorkflows(List<Workflow> workflows) Modifies the specified workflows
-
Method Details
-
getWorkflows
Returns workflows at the specified type- Parameters:
type- type of the workflow- Returns:
- the list of workflows
- Throws:
PubServerException- See Also:
-
getWorkflowById
Returns the workflow at the specified ID- Parameters:
id- ID of the workflow- Returns:
- the workflow
- Throws:
PubServerExceptionNumberFormatException- See Also:
-
setWorkflow
Modifies the specified workflow (by its inner ID)- Parameters:
workflow- the workflow to modify- Returns:
- modified workflow
- Throws:
PubServerException- See Also:
-
setWorkflows
Modifies the specified workflows- Parameters:
workflows- the list of workflows to modify- Returns:
- the list of processed workflow
- Throws:
PubServerException- See Also:
-
addWorkflows
Creates the specified workflows- Parameters:
workflows- the list of workflows to create- Returns:
- the list of processed workflow
- Throws:
PubServerException- See Also:
-
deleteWorkflow
Deletes the workflow at the specified ID- Parameters:
id- workflow ID- Returns:
- ID of workflow which was deleted
- Throws:
PubServerExceptionNumberFormatException- See Also:
-
setWorkflowProcessForDocuments
List<Document> setWorkflowProcessForDocuments(String workflowProcessId, 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:
-
setWorkflowProcessForPublications
List<Publication> setWorkflowProcessForPublications(String workflowProcessId, 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:
-
setWorkflowProcessForDocument
Workflow setWorkflowProcessForDocument(String documentId, Workflow workflow) throws PubServerException Set new workflow process for document.- Parameters:
documentId- documentId IDworkflow- workflow process- Returns:
- workflow
- Throws:
PubServerException- See Also:
-
setWorkflowProcessForPublication
Workflow setWorkflowProcessForPublication(String publicationId, Workflow workflow) throws PubServerException Set new workflow process for publication.- Parameters:
publicationId- publication IDworkflow- workflow process- Returns:
- workflow
- Throws:
PubServerException- See Also:
-