Package org.kuali.rice.kew.impl.document
Interface WorkflowDocumentProvider
- All Known Implementing Classes:
DefaultWorkflowDocumentProvider
public interface WorkflowDocumentProvider
Service provider interface for creation and loading of
WorkflowDocuments.
NOTE: WorkflowDocumentFactory constructs a single global instance, so implementations of this interface
must be thread-safe.- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Method Summary
Modifier and TypeMethodDescriptionorg.kuali.rice.kew.api.WorkflowDocumentcreateDocument(String principalId, String documentTypeName, org.kuali.rice.kew.api.document.DocumentUpdate documentUpdate, org.kuali.rice.kew.api.document.DocumentContentUpdate documentContentUpdate) Creates a new workflow document of the given type with the given initiator.org.kuali.rice.kew.api.WorkflowDocumentloadDocument(String principalId, String documentId) Loads an existing workflow document.
-
Method Details
-
createDocument
org.kuali.rice.kew.api.WorkflowDocument createDocument(String principalId, String documentTypeName, org.kuali.rice.kew.api.document.DocumentUpdate documentUpdate, org.kuali.rice.kew.api.document.DocumentContentUpdate documentContentUpdate) Creates a new workflow document of the given type with the given initiator.- Parameters:
principalId- the document initiatordocumentTypeName- the document typedocumentUpdate- pre-constructed state with which to initialize the documentdocumentContentUpdate- pre-constructed document content with which to initialize the document- Returns:
- a WorkflowDocument object through which to interact with the new workflow document
- Throws:
IllegalArgumentException- if principalId is null or blankIllegalArgumentException- if documentTypeName is null or blankorg.kuali.rice.kew.api.doctype.IllegalDocumentTypeException- if documentTypeName does not represent a valid document type
-
loadDocument
Loads an existing workflow document.- Parameters:
principalId- the principal id under which to perform document actionsdocumentId- the id of the document to load- Returns:
- a WorkflowDocument object through which to interact with the loaded workflow document
- Throws:
IllegalArgumentException- if principalId is null or blankIllegalArgumentException- if documentTypeName is null or blankorg.kuali.rice.kew.api.doctype.IllegalDocumentTypeException- if the specified document type is not activeorg.kuali.rice.kew.api.doctype.IllegalDocumentTypeException- if the specified document type does not support document creation (in other words, it's a document type that is only used as a parent)org.kuali.rice.kew.api.action.InvalidActionTakenException- if the supplied principal is not allowed to execute this action- See Also:
-