|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DocumentService
Defines various operations that support the Document framework.
Method Summary | |
---|---|
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 |
Method Detail |
---|
boolean documentExists(String documentHeaderId)
documentHeaderId
-
Document getNewDocument(String documentTypeName) throws WorkflowException
documentTypeName
-
WorkflowException
Document getNewDocument(Class<? extends Document> documentClass) throws WorkflowException
documentClass
-
WorkflowException
Document getNewDocument(String documentTypeName, String initiatorPrincipalNm) throws WorkflowException
documentTypeName
- initiatorPrincipalNm
-
WorkflowException
Document getByDocumentHeaderId(String documentHeaderId) throws WorkflowException
documentHeaderId
-
WorkflowException
Document getByDocumentHeaderIdSessionless(String documentHeaderId) throws WorkflowException
documentHeaderId
-
WorkflowException
List<Document> getDocumentsByListOfDocumentHeaderIds(Class<? extends Document> documentClass, List<String> documentHeaderIds) throws WorkflowException
clazz
- documentHeaderIds
-
WorkflowException
Document 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.
WorkflowException
saveDocument(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 valid
document
- The document to be savedkualiDocumentEventClass
- The event class to use when saving (class must implement the SaveEvent interface)
WorkflowException
Document routeDocument(Document document, String annotation, List<AdHocRouteRecipient> adHocRoutingRecipients) throws WorkflowException
document
- annotation
- adHocRoutingRecipients
-
ValidationErrorList
WorkflowException
Document approveDocument(Document document, String annotation, List<AdHocRouteRecipient> adHocRoutingRecipients) throws WorkflowException
document
- annotation
- adHocRoutingRecipients
-
ValidationErrorList
WorkflowException
Document superUserApproveDocument(Document document, String annotation) throws WorkflowException
document
- annotation
-
ValidationErrorList
WorkflowException
Document superUserCancelDocument(Document document, String annotation) throws WorkflowException
document
- annotation
-
WorkflowException
Document superUserDisapproveDocument(Document document, String annotation) throws WorkflowException
document
- annotation
-
WorkflowException
Document superUserDisapproveDocumentWithoutSaving(Document document, String annotation) throws WorkflowException
document
- annotation
-
WorkflowException
Document disapproveDocument(Document document, String annotation) throws Exception
document
- annotation
-
Exception
Document cancelDocument(Document document, String annotation) throws WorkflowException
document
- annotation
-
WorkflowException
Document acknowledgeDocument(Document document, String annotation, List<AdHocRouteRecipient> adHocRecipients) throws WorkflowException
document
- annotation
- adHocRecipients
-
WorkflowException
Document blanketApproveDocument(Document document, String annotation, List<AdHocRouteRecipient> adHocRecipients) throws WorkflowException
document
- annotation
- adHocRecipients
-
ValidationErrorList
WorkflowException
Document clearDocumentFyi(Document document, List<AdHocRouteRecipient> adHocRecipients) throws WorkflowException
document
- adHocRecipients
-
WorkflowException
void prepareWorkflowDocument(Document document) throws WorkflowException
document
-
WorkflowException
Note 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 note
boolean saveDocumentNotes(Document document)
document
- the document for which to save notes
void sendAdHocRequests(Document document, String annotation, List<AdHocRouteRecipient> adHocRecipients) throws WorkflowException
WorkflowException
void sendNoteRouteNotification(Document document, Note note, Person sender) throws WorkflowException
document
- - document that contains the notenote
- - note to notifysender
- - user who is sending the notification
WorkflowException
Document recallDocument(Document document, String annotation, boolean cancel) throws WorkflowException
document
- annotation
-
WorkflowException
Document completeDocument(Document document, String annotation, List adHocRecipients) throws WorkflowException
document
- Documentannotation
- Annotation textadHocRecipients
- list of adhoc recipients
WorkflowException
Document validateAndPersistDocument(Document document, KualiDocumentEvent event) throws ValidationException
document
- Documentevent
- KualiDocumentEvent
ValidationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |