Java Doc for DocumentManager.java in  » J2EE » Enhydra-Demos » org » enhydra » dm » api » 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 » J2EE » Enhydra Demos » org.enhydra.dm.api 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.enhydra.dm.api.DocumentManager

All known Subclasses:   org.enhydra.dm.business.DocumentManagerImpl,
DocumentManager
public interface DocumentManager (Code)




Method Summary
public  voidcheckIn(String id, String documentPath, String user)
     Method to document checkin.
public  DocumentcheckOut(String id, String user)
     Method to document checkout.
public  voidconfigure(Properties properties)
    
public  Stringcreate(String documentName, String documentPath, String mimeType, String user, String foDocumentId, boolean isTemplate, String templateId)
     Method that creates document in database.
public  voidcreateVersion(String documentId, String user)
    
public  voiddelete(String id, String user)
     Method to delete document by document id.
public  Document[]getDeleted(boolean isTemplate)
     Getting all deleted documents or templates.
public  DocumentgetDocument(String id)
     Method to get document from database by document id.
public  DocumentVersiongetDocumentVersion(String id)
     Method to get documentVersion from database by document version id.
public  DocumentVersion[]getDocumentVersions(String id)
     Getting document versions by document id.
public  Document[]getDocuments(boolean isTemplate)
     Getting all available documents or templates.
public  LoggetLogger()
    
public  voidlock(String id, String user)
     Method to document lock.
public  voidrestore(String id, String user)
     Restore document version - set as current version.
public  voidrestoreDocumentVersion(String versionId, String user)
     Restore document version - set as current version.
public  voidsetLogger(Log logger)
    
public  voidswitchArchived(String documentId, String user)
    
public  voidswitchAutoVersionable(String documentId, String user)
    
public  voidunCheckOut(String id, String user)
     Method to document unCheckout.
public  voidunlock(String id, String user)
     Method to document unlock.
public  voidupdate(String id, String path, String user, String foDocumentId)
     Method to document update.



Method Detail
checkIn
public void checkIn(String id, String documentPath, String user) throws BaseException(Code)
Method to document checkin. This method accepts document id, byte array document content and user as Strings and sets LOCK flag to false.
Parameters:
  id -
Parameters:
  documentPath -
Parameters:
  user -
throws:
  BaseException - - is document isn't checked out



checkOut
public Document checkOut(String id, String user) throws BaseException(Code)
Method to document checkout. This method accepts document id and user as Strings and sets LOCK flag to true.
Parameters:
  id - (Document ID)
Parameters:
  user - (User ID)
throws:
  BaseException - - already checked out



configure
public void configure(Properties properties) throws BaseException(Code)
Configure method that read parameters from Properties
Parameters:
  properties -
throws:
  BaseException -



create
public String create(String documentName, String documentPath, String mimeType, String user, String foDocumentId, boolean isTemplate, String templateId) throws BaseException(Code)
Method that creates document in database.
Parameters:
  documentName -
Parameters:
  documentPath -
Parameters:
  mimeType -
Parameters:
  user -
Parameters:
  foDocumentId -
Parameters:
  isTemplate -
Parameters:
  getTemplateRef - id
throws:
  BaseException -



createVersion
public void createVersion(String documentId, String user) throws BaseException(Code)
Creates version for documents that are not autoversionable
Parameters:
  documentDO -
Parameters:
  userName -
throws:
  BaseException -



delete
public void delete(String id, String user) throws BaseException(Code)
Method to delete document by document id. This method sets deleted flag to true and lastModifiedBy to user
Parameters:
  id -
Parameters:
  user -
throws:
  BaseException -



getDeleted
public Document[] getDeleted(boolean isTemplate) throws BaseException(Code)
Getting all deleted documents or templates.
Parameters:
  isTemplate -
throws:
  BaseException -



getDocument
public Document getDocument(String id) throws BaseException(Code)
Method to get document from database by document id.
Parameters:
  id -
throws:
  BaseException -



getDocumentVersion
public DocumentVersion getDocumentVersion(String id) throws BaseException(Code)
Method to get documentVersion from database by document version id.
Parameters:
  id -
throws:
  BaseException -



getDocumentVersions
public DocumentVersion[] getDocumentVersions(String id) throws BaseException(Code)
Getting document versions by document id.
Parameters:
  id -
throws:
  BaseException -



getDocuments
public Document[] getDocuments(boolean isTemplate) throws BaseException(Code)
Getting all available documents or templates.
Parameters:
  isTemplate -
throws:
  BaseException -



getLogger
public Log getLogger()(Code)
Getter for logger



lock
public void lock(String id, String user) throws BaseException(Code)
Method to document lock. This method accepts document id and user as Strings. and sets LOCK flag to false.
Parameters:
  id -
Parameters:
  user -
throws:
  BaseException -



restore
public void restore(String id, String user) throws BaseException(Code)
Restore document version - set as current version.
Parameters:
  documentVersion -
Parameters:
  user -
throws:
  BaseException -



restoreDocumentVersion
public void restoreDocumentVersion(String versionId, String user) throws BaseException(Code)
Restore document version - set as current version.
Parameters:
  documentVersion -
Parameters:
  user -
throws:
  BaseException -



setLogger
public void setLogger(Log logger)(Code)
Setter for logger
Parameters:
  logger -



switchArchived
public void switchArchived(String documentId, String user) throws BaseException(Code)
Archived On/Off
Parameters:
  documentId -
Parameters:
  user -
throws:
  BaseException -



switchAutoVersionable
public void switchAutoVersionable(String documentId, String user) throws BaseException(Code)
Autoversionable On/Off
Parameters:
  documentId -
Parameters:
  user -
throws:
  BaseException -



unCheckOut
public void unCheckOut(String id, String user) throws BaseException(Code)
Method to document unCheckout. This method accepts document id and user as Strings and sets LOCK flag to false.
Parameters:
  id -
Parameters:
  user -
throws:
  BaseException - - document isn't locked



unlock
public void unlock(String id, String user) throws BaseException(Code)
Method to document unlock. This method accepts document id and user as Strings and sets LOCK flag to false.
Parameters:
  id -
Parameters:
  user -
throws:
  BaseException -



update
public void update(String id, String path, String user, String foDocumentId) throws BaseException(Code)
Method to document update. This method will be executed after document save.
Parameters:
  id -
Parameters:
  path -
Parameters:
  user -
Parameters:
  foDocumentId -
throws:
  BaseException -



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