public interface WorkflowDocumentProvider
WorkflowDocuments.
NOTE: WorkflowDocumentFactory constructs a single global instance, so implementations of this interface
must be thread-safe.| Modifier and Type | Method and Description |
|---|---|
WorkflowDocument |
createDocument(String principalId,
String documentTypeName,
DocumentUpdate documentUpdate,
DocumentContentUpdate documentContentUpdate)
Creates a new workflow document of the given type with the given initiator.
|
WorkflowDocument |
loadDocument(String principalId,
String documentId)
Loads an existing workflow document.
|
WorkflowDocument createDocument(String principalId, String documentTypeName, DocumentUpdate documentUpdate, DocumentContentUpdate documentContentUpdate)
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 documentIllegalArgumentException - if principalId is null or blankIllegalArgumentException - if documentTypeName is null or blankIllegalDocumentTypeException - if documentTypeName does not represent a valid document typeWorkflowDocument loadDocument(String principalId, String documentId)
principalId - the principal id under which to perform document actionsdocumentId - the id of the document to loadIllegalArgumentException - if principalId is null or blankIllegalArgumentException - if documentTypeName is null or blankIllegalDocumentTypeException - if the specified document type is not activeIllegalDocumentTypeException - 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)InvalidActionTakenException - if the supplied principal is not allowed to execute this
actionloadDocument(String, String)Copyright © 2005–2016 The Kuali Foundation. All rights reserved.