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


org.apache.lenya.cms.site.tree.DefaultSiteTree

DefaultSiteTree
public class DefaultSiteTree extends AbstractLogEnabled implements SiteTree(Code)
Default sitetree implementation.
version:
   $Id: DefaultSiteTree.java 208764 2005-07-01 15:57:21Z andreas $


Field Summary
final public static  StringNAMESPACE_URI
     The sitetree namespace.
final public static  StringSITE_TREE_FILENAME
     The name of the sitetree file.
protected  ServiceManagermanager
    

Constructor Summary
protected  DefaultSiteTree(DocumentFactory factory, Publication publication, String _area, ServiceManager manager, Logger logger)
    

Method Summary
public  Linkadd(String path, org.apache.lenya.cms.publication.Document doc)
    
public  SiteNodeadd(String path)
    
public  SiteNodeadd(String path, String followingSiblingPath)
    
protected synchronized  voidaddLabel(String path, String language, String label)
    
protected synchronized  voidaddNode(SiteTreeNode node, String refpath)
    
protected synchronized  voidaddNode(String parentid, String id, String uuid, boolean visibleInNav)
    
protected synchronized  voidaddNode(SiteTreeNode node)
    
protected synchronized  SiteTreeNodeImpladdNode(String path, String uuid, boolean visibleInNav, String href, String suffix, boolean link, String refpath)
    
protected synchronized  SiteTreeNodeImpladdNode(String path, String uuid, boolean visibleInNav, String href, String suffix, boolean link)
    
protected synchronized  SiteTreeNodeImpladdNode(String parentid, String id, String uuid, boolean visibleInNav, String href, String suffix, boolean link)
    
protected synchronized  SiteTreeNodeImpladdNode(String parentPath, String name, String uuid, boolean visibleInNav, String href, String suffix, boolean link, String refpath)
    
public  voidchanged()
    
public  booleancontains(String path)
    
public  booleancontains(String path, String language)
    
public  booleancontainsByUuid(String uuid, String language)
    
public  booleancontainsInAnyLanguage(String uuid)
    
protected  voidcopyLinks(SiteTreeNode source, SiteTreeNode target)
    
public synchronized  DocumentcreateDocument()
     Create a new DefaultSiteTree xml document.
protected  voidcreateParents(String path)
    
protected synchronized  NodefindNode(Node node, List ids)
     Find a node in a subtree.
public  StringgetArea()
    
public  LinkgetByUuid(String uuid, String language)
    
protected  SiteNodegetByUuidInternal(String uuid, String language)
    
protected  DocumentFactorygetFactory()
    
public synchronized  SiteNodegetNode(String path)
    
protected  SiteNodegetNodeByXpath(String xPath)
    
public  SiteNode[]getNodes()
    
protected  SiteNode[]getNodesByXpath(String xPath)
    
public  PublicationgetPublication()
    
public  org.apache.lenya.cms.repository.NodegetRepositoryNode()
    
protected  SiteTreeNodeImplgetRootNode()
    
public  SessiongetSession()
    
public  SiteNode[]getTopLevelNodes()
    
public synchronized  voidmoveDown(String path)
     Move down the node amongst its siblings.
public synchronized  voidmoveUp(String path)
     Move up the node amongst its siblings.
public  SiteNode[]preOrder()
    
protected synchronized  voidremoveLabel(String path, String language)
    
protected synchronized  SiteTreeNoderemoveNode(String path)
    
public  voidsave()
    
protected  voidsaveDocument()
    
protected synchronized  voidsetLabel(String path, String language, String label)
    

Field Detail
NAMESPACE_URI
final public static String NAMESPACE_URI(Code)
The sitetree namespace.



SITE_TREE_FILENAME
final public static String SITE_TREE_FILENAME(Code)
The name of the sitetree file.



manager
protected ServiceManager manager(Code)




Constructor Detail
DefaultSiteTree
protected DefaultSiteTree(DocumentFactory factory, Publication publication, String _area, ServiceManager manager, Logger logger) throws SiteException(Code)
Create a DefaultSiteTree
Parameters:
  factory - The document factory.
Parameters:
  publication - The publication.
Parameters:
  _area - The area.
Parameters:
  manager - The service manager.
Parameters:
  logger - The logger.
throws:
  SiteException - if an error occurs.




Method Detail
add
public Link add(String path, org.apache.lenya.cms.publication.Document doc) throws SiteException(Code)



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



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



addLabel
protected synchronized void addLabel(String path, String language, String label)(Code)



addNode
protected synchronized void addNode(SiteTreeNode node, String refpath) throws SiteException(Code)



addNode
protected synchronized void addNode(String parentid, String id, String uuid, boolean visibleInNav) throws SiteException(Code)



addNode
protected synchronized void addNode(SiteTreeNode node) throws SiteException(Code)



addNode
protected synchronized SiteTreeNodeImpl addNode(String path, String uuid, boolean visibleInNav, String href, String suffix, boolean link, String refpath) throws SiteException(Code)



addNode
protected synchronized SiteTreeNodeImpl addNode(String path, String uuid, boolean visibleInNav, String href, String suffix, boolean link) throws SiteException(Code)



addNode
protected synchronized SiteTreeNodeImpl addNode(String parentid, String id, String uuid, boolean visibleInNav, String href, String suffix, boolean link) throws SiteException(Code)



addNode
protected synchronized SiteTreeNodeImpl addNode(String parentPath, String name, String uuid, boolean visibleInNav, String href, String suffix, boolean link, String refpath) throws SiteException(Code)



changed
public void changed()(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)



copyLinks
protected void copyLinks(SiteTreeNode source, SiteTreeNode target) throws SiteException(Code)



createDocument
public synchronized Document createDocument() throws ParserConfigurationException(Code)
Create a new DefaultSiteTree xml document. the new site document
throws:
  ParserConfigurationException - if an error occurs



createParents
protected void createParents(String path) throws SiteException(Code)



findNode
protected synchronized Node findNode(Node node, List ids)(Code)
Find a node in a subtree. The search is started at the given node. The list of ids contains the document-id split by "/".
Parameters:
  node - where to start the search
Parameters:
  ids - list of node ids the node that matches the path given in the list of ids



getArea
public String getArea()(Code)



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



getByUuidInternal
protected SiteNode getByUuidInternal(String uuid, String language)(Code)



getFactory
protected DocumentFactory getFactory()(Code)



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

See Also:   org.apache.lenya.cms.site.tree.SiteTree.getNode(java.lang.String)



getNodeByXpath
protected SiteNode getNodeByXpath(String xPath)(Code)



getNodes
public SiteNode[] getNodes()(Code)



getNodesByXpath
protected SiteNode[] getNodesByXpath(String xPath)(Code)



getPublication
public Publication getPublication()(Code)



getRepositoryNode
public org.apache.lenya.cms.repository.Node getRepositoryNode()(Code)

See Also:   org.apache.lenya.cms.site.SiteStructure.getRepositoryNode



getRootNode
protected SiteTreeNodeImpl getRootNode()(Code)



getSession
public Session getSession()(Code)



getTopLevelNodes
public SiteNode[] getTopLevelNodes()(Code)



moveDown
public synchronized void moveDown(String path) throws SiteException(Code)
Move down the node amongst its siblings.
Parameters:
  path - The document id for the node.
throws:
  SiteException - if the moving failed.



moveUp
public synchronized void moveUp(String path) throws SiteException(Code)
Move up the node amongst its siblings.
Parameters:
  path - The document id for the node.
throws:
  SiteException - if the moving failed.



preOrder
public SiteNode[] preOrder()(Code)



removeLabel
protected synchronized void removeLabel(String path, String language)(Code)



removeNode
protected synchronized SiteTreeNode removeNode(String path)(Code)



save
public void save() throws RepositoryException(Code)



saveDocument
protected void saveDocument() throws SiteException(Code)



setLabel
protected synchronized void setLabel(String path, String language, String label)(Code)



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