| 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 $ |
Method Summary | |
public Link | add(String path, org.apache.lenya.cms.publication.Document doc) | public SiteNode | add(String path) | public SiteNode | add(String path, String followingSiblingPath) | protected synchronized void | addLabel(String path, String language, String label) | protected synchronized void | addNode(SiteTreeNode node, String refpath) | protected synchronized void | addNode(String parentid, String id, String uuid, boolean visibleInNav) | protected synchronized void | addNode(SiteTreeNode node) | protected synchronized SiteTreeNodeImpl | addNode(String path, String uuid, boolean visibleInNav, String href, String suffix, boolean link, String refpath) | protected synchronized SiteTreeNodeImpl | addNode(String path, String uuid, boolean visibleInNav, String href, String suffix, boolean link) | protected synchronized SiteTreeNodeImpl | addNode(String parentid, String id, String uuid, boolean visibleInNav, String href, String suffix, boolean link) | protected synchronized SiteTreeNodeImpl | addNode(String parentPath, String name, String uuid, boolean visibleInNav, String href, String suffix, boolean link, String refpath) | public void | changed() | public boolean | contains(String path) | public boolean | contains(String path, String language) | public boolean | containsByUuid(String uuid, String language) | public boolean | containsInAnyLanguage(String uuid) | protected void | copyLinks(SiteTreeNode source, SiteTreeNode target) | public synchronized Document | createDocument() Create a new DefaultSiteTree xml document. | protected void | createParents(String path) | protected synchronized Node | findNode(Node node, List ids) Find a node in a subtree. | public String | getArea() | public Link | getByUuid(String uuid, String language) | protected SiteNode | getByUuidInternal(String uuid, String language) | protected DocumentFactory | getFactory() | public synchronized SiteNode | getNode(String path) | protected SiteNode | getNodeByXpath(String xPath) | public SiteNode[] | getNodes() | protected SiteNode[] | getNodesByXpath(String xPath) | public Publication | getPublication() | public org.apache.lenya.cms.repository.Node | getRepositoryNode() | protected SiteTreeNodeImpl | getRootNode() | public Session | getSession() | public SiteNode[] | getTopLevelNodes() | public synchronized void | moveDown(String path) Move down the node amongst its siblings. | public synchronized void | moveUp(String path) Move up the node amongst its siblings. | public SiteNode[] | preOrder() | protected synchronized void | removeLabel(String path, String language) | protected synchronized SiteTreeNode | removeNode(String path) | public void | save() | protected void | saveDocument() | protected synchronized void | setLabel(String path, String language, String label) |
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) | | |
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. |
changed | public void changed()(Code) | | |
containsInAnyLanguage | public boolean containsInAnyLanguage(String uuid)(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 |
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. |
|
|