Java Doc for DocumentService.java in  » ERP-CRM-Financial » Kuali-Financial-System » org » kuali » core » service » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » ERP CRM Financial » Kuali Financial System » org.kuali.core.service 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.kuali.core.service.DocumentService

All known Subclasses:   org.kuali.core.service.impl.DocumentServiceImpl,
DocumentService
public interface DocumentService (Code)
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
public  DocumentacknowledgeDocument(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.
public  booleanaddNoteToDocument(Document document, Note note)
    
public  DocumentapproveDocument(Document document, String annotation, List adHocRoutingRecipients)
    
public  DocumentblanketApproveDocument(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.
public  DocumentcancelDocument(Document document, String annotation)
    
public  DocumentclearDocumentFyi(Document document, List adHocRecipients)
    
public  NotecreateNoteFromDocument(Document document, String text)
    
public  DocumentdisapproveDocument(Document document, String annotation)
    
public  booleandocumentExists(String documentHeaderId)
    
public  CollectionfindByDocumentHeaderStatusCode(Class clazz, String statusCode)
     Retrieves a collection of documents with type of given Class, and with the passed status code.
public  DocumentgetByDocumentHeaderId(String documentHeaderId)
    
public  ListgetDocumentsByListOfDocumentHeaderIds(Class clazz, List documentHeaderIds)
     This method retrieves a list of fully-populated documents given a list of document header id values.
public  CollectiongetFinalDocumentHeadersByDate(Date documentFinalDate)
     Retrieves a collection of DocumentHeaders by the date that they were finalized.
public  DocumentgetNewDocument(String documentTypeName)
    
public  DocumentgetNewDocument(Class documentClass)
    
public  PersistableBusinessObjectgetNoteParent(Document document, Note newNote)
    
public  voidprepareWorkflowDocument(Document document)
    
public  DocumentrouteDocument(Document document, String annotation, List adHocRoutingRecipients)
    
public  DocumentsaveDocument(Document document)
     This is a helper method that performs the same as the DocumentService.saveDocument(Document,Class) method.
public  DocumentsaveDocument(Document document, Class kualiDocumentEventClass)
     Saves the passed-in document.
public  DocumentsuperUserApproveDocument(Document document, String annotation)
    
public  DocumentsuperUserCancelDocument(Document document, String annotation)
    
public  DocumentsuperUserDisapproveDocument(Document document, String annotation)
    
public  voidupdateDocument(Document document)
    



Method Detail
acknowledgeDocument
public Document acknowledgeDocument(Document document, String annotation, List adHocRecipients) throws WorkflowException(Code)
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. The list of ad hoc recipients for this document should have an action requested of acknowledge or fyi as all other actions requested will be discarded as invalid based on the action being taken being an acknowledgement.
Parameters:
  document -
Parameters:
  annotation -
Parameters:
  adHocRecipients -
throws:
  EdenException -



addNoteToDocument
public boolean addNoteToDocument(Document document, Note note)(Code)
This method adds a note to a document
Parameters:
  document -
Parameters:
  note - the added Note



approveDocument
public Document approveDocument(Document document, String annotation, List adHocRoutingRecipients) throws WorkflowException(Code)
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
Parameters:
  document -
Parameters:
  annotation -
Parameters:
  adHocRoutingRecipients -
throws:
  EdenException -
throws:
  ValidationErrorList -



blanketApproveDocument
public Document blanketApproveDocument(Document document, String annotation, List adHocRecipients) throws WorkflowException(Code)
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. The user must have blanket approval authority for this document by being registered as a user in the blanket approval workgroup that is associated with this document type. Optionally an annotation can be provided which will show up for this action taken on the document in the route log. Additionally optionally provide a list of ad hoc recipients for this document, which should be restricted to actions requested of acknowledge and fyi as all other actions requested will be discarded
Parameters:
  document -
Parameters:
  annotation -
Parameters:
  adHocRecipients -
throws:
  EdenException -
throws:
  ValidationErrorList -



cancelDocument
public Document cancelDocument(Document document, String annotation) throws WorkflowException(Code)
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
Parameters:
  document -
Parameters:
  annotation -
throws:
  EdenException -



clearDocumentFyi
public Document clearDocumentFyi(Document document, List adHocRecipients) throws WorkflowException(Code)
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
Parameters:
  document -
Parameters:
  adHocRecipients -
throws:
  EdenException -



createNoteFromDocument
public Note createNoteFromDocument(Document document, String text) throws Exception(Code)
This method creates a note from a given document and note text
Parameters:
  document -
Parameters:
  text -
throws:
  Exception -



disapproveDocument
public Document disapproveDocument(Document document, String annotation) throws Exception(Code)
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
Parameters:
  document -
Parameters:
  annotation - Document
throws:
  Exception -



documentExists
public boolean documentExists(String documentHeaderId)(Code)

Parameters:
  documentHeaderId - true if a document with the given documentHeaderId exists



findByDocumentHeaderStatusCode
public Collection findByDocumentHeaderStatusCode(Class clazz, String statusCode) throws WorkflowException(Code)
Retrieves a collection of documents with type of given Class, and with the passed status code.
Parameters:
  clazz -
Parameters:
  statusCode -



getByDocumentHeaderId
public Document getByDocumentHeaderId(String documentHeaderId) throws WorkflowException(Code)
get a document based on the document header id which is the primary key for all document types
Parameters:
  documentHeaderId -
throws:
  EdenUserNotFoundException -
throws:
  EdenException -



getDocumentsByListOfDocumentHeaderIds
public List getDocumentsByListOfDocumentHeaderIds(Class clazz, List documentHeaderIds) throws WorkflowException(Code)
This method retrieves a list of fully-populated documents given a list of document header id values.
Parameters:
  clazz -
Parameters:
  documentHeaderIds - List of fully-populated documents
throws:
  WorkflowException -



getFinalDocumentHeadersByDate
public Collection getFinalDocumentHeadersByDate(Date documentFinalDate) throws WorkflowException(Code)
Retrieves a collection of DocumentHeaders by the date that they were finalized.
Parameters:
  documentFinalDate - Collection of DocumentHeaders
throws:
  WorkflowException -



getNewDocument
public Document getNewDocument(String documentTypeName) throws WorkflowException(Code)
get a new blank document instance based on the document type name
Parameters:
  documentTypeName -
throws:
  EdenUserNotFoundException -
throws:
  EdenException -



getNewDocument
public Document getNewDocument(Class documentClass) throws WorkflowException(Code)
get a new blank document instance having the given Document class
Parameters:
  documentClass -
throws:
  EdenUserNotFoundException -
throws:
  EdenException -



getNoteParent
public PersistableBusinessObject getNoteParent(Document document, Note newNote)(Code)
This method gets the parent for a note from a document
Parameters:
  document -
Parameters:
  newNote - Business Object that the note is attached to.



prepareWorkflowDocument
public void prepareWorkflowDocument(Document document) throws WorkflowException(Code)
Sets the title and app document id in the flex document
Parameters:
  document -
throws:
  WorkflowException -



routeDocument
public Document routeDocument(Document document, String annotation, List adHocRoutingRecipients) throws WorkflowException(Code)
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
Parameters:
  document -
Parameters:
  annotation -
Parameters:
  adHocRoutingRecipients -
throws:
  EdenException -
throws:
  ValidationErrorList -



saveDocument
public Document saveDocument(Document document) throws WorkflowException(Code)
This is a helper method that performs the same as the DocumentService.saveDocument(Document,Class) method. The convenience of this method is that the event being used is the standard SaveDocumentEvent.
See Also:   org.kuali.core.service.DocumentService.saveDocument(DocumentClass)



saveDocument
public Document saveDocument(Document document, Class kualiDocumentEventClass) throws WorkflowException(Code)
Saves the passed-in document. This will persist it both to the Kuali database, and also initiate it (if necessary) within workflow, so its available in the initiator's action list. This method uses the passed in KualiDocumentEvent class when saving the document. The KualiDocumentEvent class must implement the 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
Parameters:
  document - The document to be saved
Parameters:
  kualiDocumentEventClass - The event class to use when saving (class must implement the SaveEvent interface) the document that was passed in
throws:
  WorkflowException -



superUserApproveDocument
public Document superUserApproveDocument(Document document, String annotation) throws WorkflowException(Code)
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
Parameters:
  document -
Parameters:
  annotation -
throws:
  EdenException -
throws:
  ValidationErrorList -



superUserCancelDocument
public Document superUserCancelDocument(Document document, String annotation) throws WorkflowException(Code)
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
Parameters:
  document -
Parameters:
  annotation -
throws:
  WorkflowException -



superUserDisapproveDocument
public Document superUserDisapproveDocument(Document document, String annotation) throws WorkflowException(Code)
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
Parameters:
  document -
Parameters:
  annotation -
throws:
  WorkflowException -



updateDocument
public void updateDocument(Document document)(Code)
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
Parameters:
  document -



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.