Java Doc for DocumentManager.java in  » Content-Management-System » apache-lenya-2.0 » org » apache » lenya » cms » publication » 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 » Content Management System » apache lenya 2.0 » org.apache.lenya.cms.publication 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.lenya.cms.publication.DocumentManager

All known Subclasses:   org.apache.lenya.cms.publication.DocumentManagerImpl,
DocumentManager
public interface DocumentManager (Code)
Helper to manage documents. It takes care of attachments etc.
version:
   $Id: DocumentManager.java 527520 2007-04-11 15:22:11Z andreas $


Field Summary
 StringROLE
     The Avalon component role.


Method Summary
 Documentadd(Document sourceDocument, String area, String path, String language, String extension, String navigationTitle, boolean visibleInNav)
    
 Documentadd(DocumentFactory factory, ResourceType resourceType, String contentSourceUri, Publication pub, String area, String path, String language, String extension, String navigationTitle, boolean visibleInNav)
     Creates a new document with the given parameters:
Parameters:
  factory - The document factory.
Parameters:
  resourceType - the document type (aka resource type) of the new document
Parameters:
  contentSourceUri - The URI to read the content from.
Parameters:
  pub - The publication.
Parameters:
  area - The area.
Parameters:
  path - The path.
Parameters:
  language - The language.
Parameters:
  extension - The extension to use for the document source, without the leading dot.
Parameters:
  navigationTitle - The navigation title.
Parameters:
  visibleInNav - The navigation visibility.
 Documentadd(DocumentFactory factory, ResourceType resourceType, String contentSourceUri, Publication pub, String area, String language, String extension)
     Creates a new document without adding it to the site structure.
Parameters:
  factory - The document factory.
Parameters:
  resourceType - the document type (aka resource type) of the new document
Parameters:
  contentSourceUri - The URI to read the content from.
Parameters:
  pub - The publication.
Parameters:
  area - The area.
Parameters:
  language - The language.
Parameters:
  extension - The extension to use for the document source, without the leading dot.
 DocumentaddVersion(Document sourceDocument, String area, String language)
     Adds a new version of a document with a different language and / or in a different area.
Parameters:
  sourceDocument - The document to initialize the contents and meta data from.
Parameters:
  area - The area.
Parameters:
  language - The language of the new document.
 DocumentaddVersion(Document sourceDocument, String area, String language, boolean addToSite)
     Adds a new version of a document with a different language and / or in a different area.
Parameters:
  sourceDocument - The document to initialize the contents and meta data from.
Parameters:
  area - The area.
Parameters:
  language - The language of the new document.
Parameters:
  addToSite - If the new version should be added to the site structure.
 voidcopy(Document sourceDocument, DocumentLocator destination)
     Copies a document from one location to another location.
 voidcopy(DocumentSet sources, DocumentSet destinations)
     Copies a document set from one location to another.
 voidcopyAll(Area sourceArea, String sourcePath, Area targetArea, String targetPath)
     Copies a document to another location, incl.
 voidcopyAllLanguageVersions(Area sourceArea, String sourcePath, Area targetArea, String targetPath)
     Copies all language versions of a document to another location.
 voidcopyToArea(Document sourceDocument, String destinationArea)
     Copies a document to another area.
 voidcopyToArea(DocumentSet documentSet, String destinationArea)
     Copies a document set to another area.
 voiddelete(Document document)
     Deletes a document from the content repository and from the site structure.
 voiddelete(DocumentSet documents)
     Deletes a set of documents.
 voiddeleteAll(Document document)
     Deletes a document, incl.
 voiddeleteAllLanguageVersions(Document document)
     Deletes all language versions of a document.
 booleanexists(DocumentFactory factory, Publication pub, String area, String uuid, String language)
     Checks if a document exists.
Parameters:
  factory - The document factory.
Parameters:
  pub - The publication.
Parameters:
  area - The area.
Parameters:
  uuid - The UUID.
Parameters:
  language - The language.
 voidmove(Document sourceDocument, DocumentLocator destination)
     Moves a document from one location to another.
 voidmove(DocumentSet sources, DocumentSet destinations)
     Moves a document set from one location to another.
 voidmoveAll(Area sourceArea, String sourcePath, Area targetArea, String targetPath)
     Moves a document to another location, incl.
 voidmoveAllLanguageVersions(Area sourceArea, String sourcePath, Area targetArea, String targetPath)
     Moves all language versions of a document to another location.

Field Detail
ROLE
String ROLE(Code)
The Avalon component role.





Method Detail
add
Document add(Document sourceDocument, String area, String path, String language, String extension, String navigationTitle, boolean visibleInNav) throws DocumentBuildException, PublicationException(Code)
Creates a new document in the same publication the parentDocument belongs to with the given parameters:
Parameters:
  sourceDocument - The document to initialize the contents and meta data from.
Parameters:
  area - The target area.
Parameters:
  path - The target path.
Parameters:
  language - The target language.
Parameters:
  extension - The extension to use for the document source.
Parameters:
  navigationTitle - navigation title
Parameters:
  visibleInNav - determines the visibility of a node in the navigation The added document.
throws:
  DocumentBuildException - if the document can not be created
throws:
  PublicationException - if the document is already contained.



add
Document add(DocumentFactory factory, ResourceType resourceType, String contentSourceUri, Publication pub, String area, String path, String language, String extension, String navigationTitle, boolean visibleInNav) throws DocumentBuildException, PublicationException(Code)
Creates a new document with the given parameters:
Parameters:
  factory - The document factory.
Parameters:
  resourceType - the document type (aka resource type) of the new document
Parameters:
  contentSourceUri - The URI to read the content from.
Parameters:
  pub - The publication.
Parameters:
  area - The area.
Parameters:
  path - The path.
Parameters:
  language - The language.
Parameters:
  extension - The extension to use for the document source, without the leading dot.
Parameters:
  navigationTitle - The navigation title.
Parameters:
  visibleInNav - The navigation visibility. The added document.
throws:
  DocumentBuildException - if the document can not be created
throws:
  PublicationException - if the document is already contained.



add
Document add(DocumentFactory factory, ResourceType resourceType, String contentSourceUri, Publication pub, String area, String language, String extension) throws DocumentBuildException, PublicationException(Code)
Creates a new document without adding it to the site structure.
Parameters:
  factory - The document factory.
Parameters:
  resourceType - the document type (aka resource type) of the new document
Parameters:
  contentSourceUri - The URI to read the content from.
Parameters:
  pub - The publication.
Parameters:
  area - The area.
Parameters:
  language - The language.
Parameters:
  extension - The extension to use for the document source, without the leading dot. The added document.
throws:
  DocumentBuildException - if the document can not be created
throws:
  PublicationException - if the document is already contained.



addVersion
Document addVersion(Document sourceDocument, String area, String language) throws DocumentBuildException, PublicationException(Code)
Adds a new version of a document with a different language and / or in a different area.
Parameters:
  sourceDocument - The document to initialize the contents and meta data from.
Parameters:
  area - The area.
Parameters:
  language - The language of the new document. The added document.
throws:
  DocumentBuildException - if the document can not be created
throws:
  PublicationException - if the document is already contained.



addVersion
Document addVersion(Document sourceDocument, String area, String language, boolean addToSite) throws DocumentBuildException, PublicationException(Code)
Adds a new version of a document with a different language and / or in a different area.
Parameters:
  sourceDocument - The document to initialize the contents and meta data from.
Parameters:
  area - The area.
Parameters:
  language - The language of the new document.
Parameters:
  addToSite - If the new version should be added to the site structure. The added document.
throws:
  DocumentBuildException - if the document can not be created
throws:
  PublicationException - if the document is already contained.



copy
void copy(Document sourceDocument, DocumentLocator destination) throws PublicationException(Code)
Copies a document from one location to another location.
Parameters:
  sourceDocument - The document to copy.
Parameters:
  destination - The destination document.
throws:
  PublicationException - if a document which destinationDocument depends on does notexist.



copy
void copy(DocumentSet sources, DocumentSet destinations) throws PublicationException(Code)
Copies a document set from one location to another. A source is copied to the destination of the same position in the set.
Parameters:
  sources - The source documents.
Parameters:
  destinations - The destination documents.
throws:
  PublicationException - if a document which the destination document depends on does notexist.



copyAll
void copyAll(Area sourceArea, String sourcePath, Area targetArea, String targetPath) throws PublicationException(Code)
Copies a document to another location, incl. all requiring documents. If a sitetree is used, this means that the whole subtree is copied.
Parameters:
  sourceArea - The source area.
Parameters:
  sourcePath - The source path.
Parameters:
  targetArea - The target area.
Parameters:
  targetPath - The target path.
throws:
  PublicationException - if an error occurs.



copyAllLanguageVersions
void copyAllLanguageVersions(Area sourceArea, String sourcePath, Area targetArea, String targetPath) throws PublicationException(Code)
Copies all language versions of a document to another location.
Parameters:
  sourceArea - The source area.
Parameters:
  sourcePath - The source path.
Parameters:
  targetArea - The target area.
Parameters:
  targetPath - The target path.
throws:
  PublicationException - if the documents could not be copied.



copyToArea
void copyToArea(Document sourceDocument, String destinationArea) throws PublicationException(Code)
Copies a document to another area.
Parameters:
  sourceDocument - The document to copy.
Parameters:
  destinationArea - The destination area.
throws:
  PublicationException - if a document which the destination document depends on does notexist.



copyToArea
void copyToArea(DocumentSet documentSet, String destinationArea) throws PublicationException(Code)
Copies a document set to another area.
Parameters:
  documentSet - The document set to copy.
Parameters:
  destinationArea - The destination area.
throws:
  PublicationException - if a document which one of the destination documents depends ondoes not exist.



delete
void delete(Document document) throws PublicationException(Code)
Deletes a document from the content repository and from the site structure.
Parameters:
  document - The document to delete.
throws:
  PublicationException - when something went wrong.



delete
void delete(DocumentSet documents) throws PublicationException(Code)
Deletes a set of documents.
Parameters:
  documents - The documents.
throws:
  PublicationException - if an error occurs.



deleteAll
void deleteAll(Document document) throws PublicationException(Code)
Deletes a document, incl. all requiring documents. If a sitetree is used, this means that the whole subtree is deleted.
Parameters:
  document - The document.
throws:
  PublicationException - if an error occurs.



deleteAllLanguageVersions
void deleteAllLanguageVersions(Document document) throws PublicationException(Code)
Deletes all language versions of a document.
Parameters:
  document - The document.
throws:
  PublicationException - if the documents could not be copied.



exists
boolean exists(DocumentFactory factory, Publication pub, String area, String uuid, String language) throws PublicationException(Code)
Checks if a document exists.
Parameters:
  factory - The document factory.
Parameters:
  pub - The publication.
Parameters:
  area - The area.
Parameters:
  uuid - The UUID.
Parameters:
  language - The language. A boolean value.
throws:
  PublicationException - if an error occurs.



move
void move(Document sourceDocument, DocumentLocator destination) throws PublicationException(Code)
Moves a document from one location to another.
Parameters:
  sourceDocument - The source document.
Parameters:
  destination - The destination document.
throws:
  PublicationException - if a document which the destination document depends on does notexist.



move
void move(DocumentSet sources, DocumentSet destinations) throws PublicationException(Code)
Moves a document set from one location to another. A source is moved to the destination of the same position in the set.
Parameters:
  sources - The source documents.
Parameters:
  destinations - The destination documents.
throws:
  PublicationException - if a document which the destination document depends on does notexist.



moveAll
void moveAll(Area sourceArea, String sourcePath, Area targetArea, String targetPath) throws PublicationException(Code)
Moves a document to another location, incl. all requiring documents. If a sitetree is used, this means that the whole subtree is moved.
Parameters:
  sourceArea - The source area.
Parameters:
  sourcePath - The source path.
Parameters:
  targetArea - The target area.
Parameters:
  targetPath - The target path.
throws:
  PublicationException - if an error occurs.



moveAllLanguageVersions
void moveAllLanguageVersions(Area sourceArea, String sourcePath, Area targetArea, String targetPath) throws PublicationException(Code)
Moves all language versions of a document to another location.
Parameters:
  sourceArea - The source area.
Parameters:
  sourcePath - The source path.
Parameters:
  targetArea - The target area.
Parameters:
  targetPath - The target path.
throws:
  PublicationException - if the documents could not be moved.



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