|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
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 document
IllegalArgumentException - if principalId is null or blank
IllegalArgumentException - if documentTypeName is null or blank
IllegalDocumentTypeException - if documentTypeName does not represent a valid document type
WorkflowDocument loadDocument(String principalId,
String documentId)
principalId - the principal id under which to perform document actionsdocumentId - the id of the document to load
IllegalArgumentException - if principalId is null or blank
IllegalArgumentException - if documentTypeName is null or blank
IllegalDocumentTypeException - if the specified document type is not active
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)
InvalidActionTakenException - if the supplied principal is not allowed to execute this
actionloadDocument(String, String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||