Package org.kuali.rice.kew.impl.document
Class DefaultWorkflowDocumentProvider
java.lang.Object
org.kuali.rice.kew.impl.document.DefaultWorkflowDocumentProvider
- All Implemented Interfaces:
WorkflowDocumentProvider
public final class DefaultWorkflowDocumentProvider
extends Object
implements WorkflowDocumentProvider
TODO
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Constructor Summary
Constructors -
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.
-
Constructor Details
-
DefaultWorkflowDocumentProvider
public DefaultWorkflowDocumentProvider()
-
-
Method Details
-
createDocument
public 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) Description copied from interface:WorkflowDocumentProviderCreates a new workflow document of the given type with the given initiator.- Specified by:
createDocumentin interfaceWorkflowDocumentProvider- 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
-
loadDocument
Description copied from interface:WorkflowDocumentProviderLoads an existing workflow document.- Specified by:
loadDocumentin interfaceWorkflowDocumentProvider- 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
- See Also:
-