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


org.apache.lenya.modules.collection.CollectionWrapper
   org.apache.lenya.cms.site.simple.DocumentStore

DocumentStore
public class DocumentStore extends CollectionWrapper implements SiteStructure(Code)
Site structure object which stores a list of documents.
version:
   $Id: DocumentStore.java 565766 2007-08-14 14:09:21Z andreas $


Field Summary
final protected static  StringATTRIBUTE_LANGUAGE
    
final protected static  StringATTRIBUTE_PATH
    
final public static  StringIDENTIFIABLE_TYPE
     The identifiable type.
final protected static  StringNAMESPACE
    
final protected static  ObjectSITE_PATH
    

Constructor Summary
public  DocumentStore(Document doc, Logger logger)
    

Method Summary
public  Linkadd(String path, Document document)
    
public  SiteNodeadd(String path)
    
public  SiteNodeadd(String path, String followingSiblingPath)
    
public  booleancontains(String path)
    
public  booleancontains(String path, String language)
    
public  booleancontainsByUuid(String uuid, String language)
    
public  booleancontainsInAnyLanguage(String uuid)
    
protected  ElementcreateDocumentElement(Document document, NamespaceHelper helper)
    
protected  Mapdoc2path()
    
public  booleanexists()
    
public  StringgetArea()
    
public  LinkgetByUuid(String uuid, String language)
    
protected  DocumentgetDocument(String uuid)
    
protected  StringgetKey(String uuid, String language)
    
protected  StringgetLanguage(String key)
    
public  SiteNodegetNode(String path)
    
public  SiteNode[]getNodes()
    
protected  StringgetPath(String uuid, String language)
    
public  PublicationgetPublication()
    
public  NodegetRepositoryNode()
    
public  SessiongetSession()
    
public  SiteNode[]getTopLevelNodes()
    
protected  StringgetUuid(String key)
    
protected  DocumentloadDocument(Element documentElement)
    
public  voidremove(Document document)
    
public  voidsetPath(Document document, String path)
     Sets the path for a document.
public  StringtoString()
    

Field Detail
ATTRIBUTE_LANGUAGE
final protected static String ATTRIBUTE_LANGUAGE(Code)



ATTRIBUTE_PATH
final protected static String ATTRIBUTE_PATH(Code)



IDENTIFIABLE_TYPE
final public static String IDENTIFIABLE_TYPE(Code)
The identifiable type.



NAMESPACE
final protected static String NAMESPACE(Code)



SITE_PATH
final protected static Object SITE_PATH(Code)




Constructor Detail
DocumentStore
public DocumentStore(Document doc, Logger logger) throws DocumentException(Code)

Parameters:
  doc - The document where the collection is stored.
Parameters:
  logger - The logger.
throws:
  DocumentException - if an error occurs.




Method Detail
add
public Link add(String path, Document document) throws SiteException(Code)



add
public SiteNode add(String path) throws SiteException(Code)



add
public SiteNode add(String path, String followingSiblingPath) throws SiteException(Code)



contains
public boolean contains(String path)(Code)



contains
public boolean contains(String path, String language)(Code)



containsByUuid
public boolean containsByUuid(String uuid, String language)(Code)



containsInAnyLanguage
public boolean containsInAnyLanguage(String uuid)(Code)



createDocumentElement
protected Element createDocumentElement(Document document, NamespaceHelper helper) throws DocumentException(Code)

See Also:   org.apache.lenya.modules.collection.CollectionWrapper.createDocumentElement(org.apache.lenya.cms.publication.Documentorg.apache.lenya.xml.NamespaceHelper)



doc2path
protected Map doc2path()(Code)



exists
public boolean exists() throws DocumentException(Code)
if the document exists.
throws:
  DocumentException - if an error occurs.



getArea
public String getArea()(Code)



getByUuid
public Link getByUuid(String uuid, String language) throws SiteException(Code)



getDocument
protected Document getDocument(String uuid)(Code)



getKey
protected String getKey(String uuid, String language)(Code)



getLanguage
protected String getLanguage(String key)(Code)



getNode
public SiteNode getNode(String path) throws SiteException(Code)



getNodes
public SiteNode[] getNodes()(Code)



getPath
protected String getPath(String uuid, String language)(Code)



getPublication
public Publication getPublication()(Code)



getRepositoryNode
public Node getRepositoryNode()(Code)



getSession
public Session getSession()(Code)



getTopLevelNodes
public SiteNode[] getTopLevelNodes()(Code)



getUuid
protected String getUuid(String key)(Code)



loadDocument
protected Document loadDocument(Element documentElement) throws DocumentBuildException(Code)

See Also:   org.apache.lenya.modules.collection.CollectionWrapper.loadDocument(org.w3c.dom.Element)



remove
public void remove(Document document) throws DocumentException(Code)



setPath
public void setPath(Document document, String path) throws TransactionException(Code)
Sets the path for a document.
Parameters:
  document -
Parameters:
  path -
throws:
  TransactionException -



toString
public String toString()(Code)



Fields inherited from org.apache.lenya.modules.collection.CollectionWrapper
final protected static String[] TYPES(Code)(Java Doc)

Methods inherited from org.apache.lenya.modules.collection.CollectionWrapper
public void add(Document document) throws DocumentException(Code)(Java Doc)
public void add(int position, Document document) throws DocumentException(Code)(Java Doc)
public void clear() throws DocumentException(Code)(Java Doc)
public boolean contains(Document document) throws DocumentException(Code)(Java Doc)
protected Element createDocumentElement(Document document, NamespaceHelper helper) throws DocumentException(Code)(Java Doc)
protected List documents() throws DocumentException(Code)(Java Doc)
public Document getDelegate()(Code)(Java Doc)
public Document[] getDocuments() throws DocumentException(Code)(Java Doc)
public int getFirstPosition(Document document) throws DocumentException(Code)(Java Doc)
public String getHref()(Code)(Java Doc)
protected NamespaceHelper getNamespaceHelper() throws DocumentException, ParserConfigurationException, SAXException, IOException, ServiceException(Code)(Java Doc)
public String getType()(Code)(Java Doc)
protected NamespaceHelper initializeNamespaceHelper()(Code)(Java Doc)
final protected void load()(Code)(Java Doc)
protected Document loadDocument(Element documentElement) throws DocumentBuildException(Code)(Java Doc)
protected void loadXml(NamespaceHelper helper)(Code)(Java Doc)
public void remove(Document document) throws DocumentException(Code)(Java Doc)
final public void save()(Code)(Java Doc)
protected void saveXml(NamespaceHelper helper) throws TransformerException, DocumentException(Code)(Java Doc)
public void setHref(String href)(Code)(Java Doc)
public void setType(String type)(Code)(Java Doc)
public int size() throws DocumentException(Code)(Java Doc)

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