| org.apache.lenya.cms.site.AbstractSiteManager org.apache.lenya.cms.site.tree.TreeSiteManager
TreeSiteManager | public class TreeSiteManager extends AbstractSiteManager implements Serviceable(Code) | | A tree-based site manager.
version: $Id: TreeSiteManager.java 208766 2005-07-01 16:05:00Z andreas $ |
Method Summary | |
public void | add(String path, Document document) | protected String | computeUniquePath(DocumentFactory factory, DocumentLocator locator) compute an unique document id
Parameters: factory - The factory. Parameters: locator - The locator. | public boolean | contains(Document resource) | protected boolean | contains(DocumentFactory factory, DocumentLocator locator) | public boolean | containsInAnyLanguage(Document resource) | public void | copy(Document sourceDocument, Document destinationDocument) | protected List | getAncestors(SiteNode node) Returns the ancestors of a resource, beginning with the parent.
Parameters: node - The resource. | public DocumentLocator | getAvailableLocator(DocumentFactory factory, DocumentLocator locator) | public Document[] | getDocuments(DocumentFactory map, Publication publication, String area) | protected String | getKey(Publication publication, String area) Parameters: publication - The publication. Parameters: area - The area. | protected Link | getLabelObject(Document document) Returns the label object of a document.
Parameters: document - The document. | protected String | getPath(DocumentFactory factory, Publication pub, String area, String uuid, String language) | public DocumentLocator[] | getRequiredResources(DocumentFactory map, DocumentLocator loc) | public SiteNode[] | getRequiringResources(DocumentFactory map, SiteNode resource) | public SiteStructure | getSiteStructure(DocumentFactory map, Publication publiation, String area) | public DefaultSiteTree | getTree(DocumentFactory map, Publication publication, String area) Returns the sitetree for a specific area of this publication. | protected DefaultSiteTree | getTree(Document document) | protected String | getUUID(DocumentFactory factory, Publication pub, String area, String path) | public boolean | isVisibleInNav(Document document) | public boolean | requires(DocumentFactory map, SiteNode dependingResource, SiteNode requiredResource) | public void | set(String path, Document document) | public void | setVisibleInNav(Document document, boolean visibleInNav) |
TreeSiteManager | public TreeSiteManager()(Code) | | Ctor.
|
getAncestors | protected List getAncestors(SiteNode node) throws SiteException(Code) | | Returns the ancestors of a resource, beginning with the parent.
Parameters: node - The resource. A list of resources. throws: SiteException - if an error occurs. |
getKey | protected String getKey(Publication publication, String area)(Code) | | Parameters: publication - The publication. Parameters: area - The area. The key to store sitetree objects in the identity map. |
getTree | public DefaultSiteTree getTree(DocumentFactory map, Publication publication, String area) throws SiteException(Code) | | Returns the sitetree for a specific area of this publication. Sitetrees are created on demand
and are cached.
Parameters: map - The document identity map. Parameters: publication - The publication. Parameters: area - The area. A site tree. throws: SiteException - if an error occurs. |
Fields inherited from org.apache.lenya.cms.site.AbstractSiteManager | protected ServiceManager manager(Code)(Java Doc)
|
|
|