Java Doc for DocumentFactoryImpl.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.DocumentFactoryImpl

DocumentFactoryImpl
public class DocumentFactoryImpl extends AbstractLogEnabled implements DocumentFactory(Code)
A DocumentIdentityMap avoids the multiple instanciation of a document object.
version:
   $Id: DocumentIdentityMap.java 264153 2005-08-29 15:11:14Z andreas $


Field Summary
protected  ServiceManagermanager
    

Constructor Summary
public  DocumentFactoryImpl(Session session, ServiceManager manager, Logger logger)
     Ctor.

Method Summary
protected  DocumentbuildDocument(DocumentFactory map, DocumentIdentifier identifier, int revision, DocumentBuilder builder)
    
public  RepositoryItembuildItem(Session session, String key)
    
protected  DocumentImplcreateDocument(DocumentFactory map, DocumentIdentifier identifier, int revision, DocumentBuilder builder)
     Creates a new document object.
public  booleanexistsPublication(String id)
    
public  Documentget(Publication publication, String area, String uuid, String language)
     Returns a document.
Parameters:
  publication - The publication.
Parameters:
  area - The area.
Parameters:
  uuid - The document UUID.
Parameters:
  language - The language.
public  Documentget(Publication publication, String area, String uuid, String language, int revision)
    
public  Documentget(Publication publication, String area, String documentId)
     Builds a document for the default language.
Parameters:
  publication - The publication.
Parameters:
  area - The area.
Parameters:
  documentId - The document ID.
public  Documentget(DocumentIdentifier identifier)
    
public  Documentget(DocumentLocator locator)
    
public  DocumentgetAreaVersion(Document document, String area)
     Builds a clone of a document for another area.
Parameters:
  document - The document to clone.
Parameters:
  area - The area of the target document.
public  DocumentgetFromURL(String webappUrl)
     Returns the document identified by a certain web application URL.
Parameters:
  webappUrl - The web application URL.
public  StringgetItemType()
    
public  StringgetKey(Publication publication, String area, String uuid, String language, int revision)
     Builds a document key.
public  StringgetKey(String webappUrl)
     Builds a document key.
Parameters:
  webappUrl - The web application URL.
public  DocumentgetLanguageVersion(Document document, String language)
     Builds a clone of a document for another language.
Parameters:
  document - The document to clone.
Parameters:
  language - The language of the target document.
protected  DocumentLocatorgetLocator(String webappUrl)
    
protected  PublicationManagergetPubManager()
    
public  PublicationgetPublication(String id)
    
public  Publication[]getPublications()
    
public  SessiongetSession()
    
public  booleanisDocument(String webappUrl)
     Checks if a webapp URL represents a document.
Parameters:
  webappUrl - A web application URL.
public  booleanisValidDocumentId(String id)
     Checks if a string represents a valid document ID.
Parameters:
  id - The string.

Field Detail
manager
protected ServiceManager manager(Code)




Constructor Detail
DocumentFactoryImpl
public DocumentFactoryImpl(Session session, ServiceManager manager, Logger logger)(Code)
Ctor.
Parameters:
  session - The session to use.
Parameters:
  manager - The service manager.
Parameters:
  logger - The logger to use.




Method Detail
buildDocument
protected Document buildDocument(DocumentFactory map, DocumentIdentifier identifier, int revision, DocumentBuilder builder) throws DocumentBuildException(Code)



buildItem
public RepositoryItem buildItem(Session session, String key) throws RepositoryException(Code)

See Also:   org.apache.lenya.transaction.IdentifiableFactory.build(org.apache.lenya.transaction.IdentityMapjava.lang.String)



createDocument
protected DocumentImpl createDocument(DocumentFactory map, DocumentIdentifier identifier, int revision, DocumentBuilder builder) throws DocumentBuildException(Code)
Creates a new document object. Override this method to create specific document objects, e.g., for different document IDs.
Parameters:
  map - The identity map.
Parameters:
  identifier - The identifier.
Parameters:
  revision - The revision or -1 for the latest revision.
Parameters:
  builder - The document builder. A document.
throws:
  DocumentBuildException - when something went wrong.



existsPublication
public boolean existsPublication(String id)(Code)



get
public Document get(Publication publication, String area, String uuid, String language) throws DocumentBuildException(Code)
Returns a document.
Parameters:
  publication - The publication.
Parameters:
  area - The area.
Parameters:
  uuid - The document UUID.
Parameters:
  language - The language. A document.
throws:
  DocumentBuildException - if an error occurs.



get
public Document get(Publication publication, String area, String uuid, String language, int revision) throws DocumentBuildException(Code)



get
public Document get(Publication publication, String area, String documentId) throws DocumentBuildException(Code)
Builds a document for the default language.
Parameters:
  publication - The publication.
Parameters:
  area - The area.
Parameters:
  documentId - The document ID. A document.
throws:
  DocumentBuildException - if an error occurs.



get
public Document get(DocumentIdentifier identifier) throws DocumentBuildException(Code)



get
public Document get(DocumentLocator locator) throws DocumentBuildException(Code)



getAreaVersion
public Document getAreaVersion(Document document, String area) throws DocumentBuildException(Code)
Builds a clone of a document for another area.
Parameters:
  document - The document to clone.
Parameters:
  area - The area of the target document. A document.
throws:
  DocumentBuildException - if an error occurs.



getFromURL
public Document getFromURL(String webappUrl) throws DocumentBuildException(Code)
Returns the document identified by a certain web application URL.
Parameters:
  webappUrl - The web application URL. A document.
throws:
  DocumentBuildException - if an error occurs.



getItemType
public String getItemType()(Code)



getKey
public String getKey(Publication publication, String area, String uuid, String language, int revision)(Code)
Builds a document key.
Parameters:
  publication - The publication.
Parameters:
  area - The area.
Parameters:
  uuid - The document UUID.
Parameters:
  language - The language.
Parameters:
  revision - A key.



getKey
public String getKey(String webappUrl)(Code)
Builds a document key.
Parameters:
  webappUrl - The web application URL. A key.



getLanguageVersion
public Document getLanguageVersion(Document document, String language) throws DocumentBuildException(Code)
Builds a clone of a document for another language.
Parameters:
  document - The document to clone.
Parameters:
  language - The language of the target document. A document.
throws:
  DocumentBuildException - if an error occurs.



getLocator
protected DocumentLocator getLocator(String webappUrl)(Code)



getPubManager
protected PublicationManager getPubManager()(Code)



getPublication
public Publication getPublication(String id) throws PublicationException(Code)



getPublications
public Publication[] getPublications()(Code)



getSession
public Session getSession()(Code)
The session.



isDocument
public boolean isDocument(String webappUrl) throws DocumentBuildException(Code)
Checks if a webapp URL represents a document.
Parameters:
  webappUrl - A web application URL. A boolean value.
throws:
  DocumentBuildException - if an error occurs.



isValidDocumentId
public boolean isValidDocumentId(String id)(Code)
Checks if a string represents a valid document ID.
Parameters:
  id - The string. A boolean value.



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