|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DocumentService
This is the DocumentService interface which must have an implementation that accompanies it. This interfaces defines all of the generally required methods for all document instances
Method Summary | |
---|---|
Document |
acknowledgeDocument(Document document,
String annotation,
List 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. |
boolean |
addNoteToDocument(Document document,
Note note)
This method adds a note to a document |
Document |
approveDocument(Document document,
String annotation,
List 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 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 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 |
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 |
getDocumentsByListOfDocumentHeaderIds(Class clazz,
List documentHeaderIds)
This method retrieves a list of fully-populated documents given a list of document header id values. |
Document |
getNewDocument(Class 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 |
PersistableBusinessObject |
getNoteParent(Document document,
Note newNote)
This method gets the parent for a note from a document |
void |
prepareWorkflowDocument(Document document)
Sets the title and app document id in the flex document |
Document |
routeDocument(Document document,
String annotation,
List 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 kualiDocumentEventClass)
Saves the passed-in document. |
void |
sendAdHocRequests(Document document,
String annotation,
List<AdHocRouteRecipient> adHocRecipients)
|
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 |
void |
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 |
Method Detail |
---|
boolean documentExists(String documentHeaderId)
documentHeaderId
-
Document getNewDocument(String documentTypeName) throws org.kuali.rice.kew.exception.WorkflowException
documentTypeName
-
org.kuali.rice.kew.exception.WorkflowException
Document getNewDocument(Class documentClass) throws org.kuali.rice.kew.exception.WorkflowException
documentClass
-
org.kuali.rice.kew.exception.WorkflowException
Document getByDocumentHeaderId(String documentHeaderId) throws org.kuali.rice.kew.exception.WorkflowException
documentHeaderId
-
org.kuali.rice.kew.exception.WorkflowException
Document getByDocumentHeaderIdSessionless(String documentHeaderId) throws org.kuali.rice.kew.exception.WorkflowException
documentHeaderId
-
org.kuali.rice.kew.exception.WorkflowException
List getDocumentsByListOfDocumentHeaderIds(Class clazz, List documentHeaderIds) throws org.kuali.rice.kew.exception.WorkflowException
clazz
- documentHeaderIds
-
org.kuali.rice.kew.exception.WorkflowException
void updateDocument(Document document)
document
- Document saveDocument(Document document) throws org.kuali.rice.kew.exception.WorkflowException
saveDocument(Document, Class)
method. The convenience
of this method is that the event being used is the standard SaveDocumentEvent.
org.kuali.rice.kew.exception.WorkflowException
saveDocument(Document, Class)
Document saveDocument(Document document, Class kualiDocumentEventClass) throws org.kuali.rice.kew.exception.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)
org.kuali.rice.kew.exception.WorkflowException
Document routeDocument(Document document, String annotation, List adHocRoutingRecipients) throws org.kuali.rice.kew.exception.WorkflowException
document
- annotation
- adHocRoutingRecipients
-
ValidationErrorList
org.kuali.rice.kew.exception.WorkflowException
Document approveDocument(Document document, String annotation, List adHocRoutingRecipients) throws org.kuali.rice.kew.exception.WorkflowException
document
- annotation
- adHocRoutingRecipients
-
ValidationErrorList
org.kuali.rice.kew.exception.WorkflowException
Document superUserApproveDocument(Document document, String annotation) throws org.kuali.rice.kew.exception.WorkflowException
document
- annotation
-
ValidationErrorList
org.kuali.rice.kew.exception.WorkflowException
Document superUserCancelDocument(Document document, String annotation) throws org.kuali.rice.kew.exception.WorkflowException
document
- annotation
-
org.kuali.rice.kew.exception.WorkflowException
Document superUserDisapproveDocument(Document document, String annotation) throws org.kuali.rice.kew.exception.WorkflowException
document
- annotation
-
org.kuali.rice.kew.exception.WorkflowException
Document disapproveDocument(Document document, String annotation) throws Exception
document
- annotation
-
Exception
Document cancelDocument(Document document, String annotation) throws org.kuali.rice.kew.exception.WorkflowException
document
- annotation
-
org.kuali.rice.kew.exception.WorkflowException
Document acknowledgeDocument(Document document, String annotation, List adHocRecipients) throws org.kuali.rice.kew.exception.WorkflowException
document
- annotation
- adHocRecipients
-
org.kuali.rice.kew.exception.WorkflowException
Document blanketApproveDocument(Document document, String annotation, List adHocRecipients) throws org.kuali.rice.kew.exception.WorkflowException
document
- annotation
- adHocRecipients
-
ValidationErrorList
org.kuali.rice.kew.exception.WorkflowException
Document clearDocumentFyi(Document document, List adHocRecipients) throws org.kuali.rice.kew.exception.WorkflowException
document
- adHocRecipients
-
org.kuali.rice.kew.exception.WorkflowException
void prepareWorkflowDocument(Document document) throws org.kuali.rice.kew.exception.WorkflowException
document
-
org.kuali.rice.kew.exception.WorkflowException
Note createNoteFromDocument(Document document, String text) throws Exception
document
- text
-
Exception
boolean addNoteToDocument(Document document, Note note)
document
- note
-
PersistableBusinessObject getNoteParent(Document document, Note newNote)
document
- newNote
-
void sendAdHocRequests(Document document, String annotation, List<AdHocRouteRecipient> adHocRecipients) throws org.kuali.rice.kew.exception.WorkflowException
org.kuali.rice.kew.exception.WorkflowException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |