public interface DocumentService
| Modifier and Type | Method and Description |
|---|---|
Document |
acknowledgeDocument(Document document,
String annotation,
List<AdHocRouteRecipient> adHocRecipients)
acknowledge this document, optionally providing an annotation for the acknowledgement which will show up in the route log for
the document for this acknowledgement, additionally optionally provide a list of ad hoc recipients that should recieve this
document.
|
Document |
approveDocument(Document document,
String annotation,
List<AdHocRouteRecipient> adHocRoutingRecipients)
approve this document, optionally providing an annotation which will show up in the route log for this document for this
action taken, and optionally providing a list of ad hoc recipients for the document
|
Document |
blanketApproveDocument(Document document,
String annotation,
List<AdHocRouteRecipient> adHocRecipients)
blanket approve this document which will approve the document and stand in for an approve for all typically generated
approval actions requested for this document.
|
Document |
cancelDocument(Document document,
String annotation)
cancel this document, optionally providing an annotation for the disapproval which will show up in the route log for the
document for this action taken
|
Document |
clearDocumentFyi(Document document,
List<AdHocRouteRecipient> adHocRecipients)
clear the fyi request for this document, optionally providing a list of ad hoc recipients for this document, which should be
restricted to action requested of fyi as all other actions requested will be discarded
|
Document |
completeDocument(Document document,
String annotation,
List adHocRecipients)
Complete action for a document
|
Note |
createNoteFromDocument(Document document,
String text)
This method creates a note from a given document and note text.
|
Document |
disapproveDocument(Document document,
String annotation)
disapprove this document, optionally providing an annotation for the disapproval which will show up in the route log for the
document for this action taken
|
boolean |
documentExists(String documentHeaderId) |
Document |
getByDocumentHeaderId(String documentHeaderId)
get a document based on the document header id which is the primary key for all document types
|
Document |
getByDocumentHeaderIdSessionless(String documentHeaderId)
get a document based on the document header id which is the primary key for all document types.
|
List<Document> |
getDocumentsByListOfDocumentHeaderIds(Class<? extends Document> documentClass,
List<String> documentHeaderIds)
This method retrieves a list of fully-populated documents given a list of document header id values.
|
Document |
getNewDocument(Class<? extends Document> documentClass)
get a new blank document instance having the given Document class
|
Document |
getNewDocument(String documentTypeName)
get a new blank document instance based on the document type name
|
Document |
getNewDocument(String documentTypeName,
String initiatorPrincipalNm)
get a new blank document instance based on the document type name.
|
void |
prepareWorkflowDocument(Document document)
Sets the title and app document id in the workflow document
|
Document |
recallDocument(Document document,
String annotation,
boolean cancel)
recall this document, optionally providing an annotation for the recall which will show up in the route log for the
document for this action taken
|
Document |
routeDocument(Document document,
String annotation,
List<AdHocRouteRecipient> adHocRoutingRecipients)
start the route the document for approval, optionally providing a list of ad hoc recipients, and additionally provideing a
annotation to show up in the route log for the document
|
Document |
saveDocument(Document document)
This is a helper method that performs the same as the
saveDocument(Document, Class) method. |
Document |
saveDocument(Document document,
Class<? extends KualiDocumentEvent> kualiDocumentEventClass)
Saves the passed-in document.
|
boolean |
saveDocumentNotes(Document document)
Saves the notes associated with the given document if they are in a state where they can be
saved.
|
void |
sendAdHocRequests(Document document,
String annotation,
List<AdHocRouteRecipient> adHocRecipients) |
void |
sendNoteRouteNotification(Document document,
Note note,
Person sender)
Builds an workflow notification request for the note and sends it to note recipient.
|
Document |
superUserApproveDocument(Document document,
String annotation)
approve this document as super user, optionally providing an annotation which will show up in the route log for this document
for this action taken
|
Document |
superUserCancelDocument(Document document,
String annotation)
cancel this document as super user, optionally providing an annotation which will show up in the route log for this document
for this action taken
|
Document |
superUserDisapproveDocument(Document document,
String annotation)
disapprove this document as super user, optionally providing an annotation which will show up in the route log for this document
for this action taken
|
Document |
superUserDisapproveDocumentWithoutSaving(Document document,
String annotation)
disapprove this document as super user, without saving, optionally providing an annotation which will show up in the route log for this document
for this action taken
|
Document |
updateDocument(Document document)
This method is to allow for documents to be updated which is currently used to update the document status as well as to allow
for locked docs to be unlocked
|
Document |
validateAndPersistDocument(Document document,
KualiDocumentEvent event)
Helper method used to save and validate a document
|
boolean documentExists(String documentHeaderId)
documentHeaderId - Document getNewDocument(String documentTypeName) throws WorkflowException
documentTypeName - WorkflowExceptionDocument getNewDocument(Class<? extends Document> documentClass) throws WorkflowException
documentClass - WorkflowExceptionDocument getNewDocument(String documentTypeName, String initiatorPrincipalNm) throws WorkflowException
documentTypeName - initiatorPrincipalNm - WorkflowExceptionDocument getByDocumentHeaderId(String documentHeaderId) throws WorkflowException
documentHeaderId - WorkflowExceptionDocument getByDocumentHeaderIdSessionless(String documentHeaderId) throws WorkflowException
documentHeaderId - WorkflowExceptionList<Document> getDocumentsByListOfDocumentHeaderIds(Class<? extends Document> documentClass, List<String> documentHeaderIds) throws WorkflowException
clazz - documentHeaderIds - WorkflowExceptionDocument updateDocument(Document document)
document - Document saveDocument(Document document) throws WorkflowException
saveDocument(Document, Class) method. The convenience
of this method is that the event being used is the standard SaveDocumentEvent.WorkflowExceptionsaveDocument(Document, Class)Document saveDocument(Document document, Class<? extends KualiDocumentEvent> kualiDocumentEventClass) throws WorkflowException
SaveEvent interface.
Note that the system does not support passing in Workflow Annotations or AdHoc Route Recipients on a SaveDocument call. These
are sent to workflow on a routeDocument action, or any of the others which actually causes a routing action to happen in
workflow.
NOTE: This method will not check the document action flags to check if a save is validdocument - The document to be savedkualiDocumentEventClass - The event class to use when saving (class must implement the SaveEvent interface)WorkflowExceptionDocument routeDocument(Document document, String annotation, List<AdHocRouteRecipient> adHocRoutingRecipients) throws WorkflowException
document - annotation - adHocRoutingRecipients - ValidationErrorListWorkflowExceptionDocument approveDocument(Document document, String annotation, List<AdHocRouteRecipient> adHocRoutingRecipients) throws WorkflowException
document - annotation - adHocRoutingRecipients - ValidationErrorListWorkflowExceptionDocument superUserApproveDocument(Document document, String annotation) throws WorkflowException
document - annotation - ValidationErrorListWorkflowExceptionDocument superUserCancelDocument(Document document, String annotation) throws WorkflowException
document - annotation - WorkflowExceptionDocument superUserDisapproveDocument(Document document, String annotation) throws WorkflowException
document - annotation - WorkflowExceptionDocument superUserDisapproveDocumentWithoutSaving(Document document, String annotation) throws WorkflowException
document - annotation - WorkflowExceptionDocument disapproveDocument(Document document, String annotation) throws Exception
document - annotation - ExceptionDocument cancelDocument(Document document, String annotation) throws WorkflowException
document - annotation - WorkflowExceptionDocument acknowledgeDocument(Document document, String annotation, List<AdHocRouteRecipient> adHocRecipients) throws WorkflowException
document - annotation - adHocRecipients - WorkflowExceptionDocument blanketApproveDocument(Document document, String annotation, List<AdHocRouteRecipient> adHocRecipients) throws WorkflowException
document - annotation - adHocRecipients - ValidationErrorListWorkflowExceptionDocument clearDocumentFyi(Document document, List<AdHocRouteRecipient> adHocRecipients) throws WorkflowException
document - adHocRecipients - WorkflowExceptionvoid prepareWorkflowDocument(Document document) throws WorkflowException
document - WorkflowExceptionNote createNoteFromDocument(Document document, String text)
Document.getNoteType(). Additionally, it's
remoteObjectId will be set to the object id of the document's note target.document - the document from which to use the note type and note target when creating the notetext - the text value to include in the resulting noteboolean saveDocumentNotes(Document document)
document - the document for which to save notesvoid sendAdHocRequests(Document document, String annotation, List<AdHocRouteRecipient> adHocRecipients) throws WorkflowException
WorkflowExceptionvoid sendNoteRouteNotification(Document document, Note note, Person sender) throws WorkflowException
document - - document that contains the notenote - - note to notifysender - - user who is sending the notificationWorkflowExceptionDocument recallDocument(Document document, String annotation, boolean cancel) throws WorkflowException
document - annotation - WorkflowExceptionDocument completeDocument(Document document, String annotation, List adHocRecipients) throws WorkflowException
document - Documentannotation - Annotation textadHocRecipients - list of adhoc recipientsWorkflowExceptionDocument validateAndPersistDocument(Document document, KualiDocumentEvent event) throws ValidationException
document - Documentevent - KualiDocumentEventValidationExceptionCopyright © 2005-2015 The Kuali Foundation. All Rights Reserved.