org.apache.lenya.cms.site
Class AbstractSiteNode

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.lenya.cms.site.AbstractSiteNode
All Implemented Interfaces:
org.apache.avalon.framework.logger.LogEnabled, SiteNode

public abstract class AbstractSiteNode
extends org.apache.avalon.framework.logger.AbstractLogEnabled
implements SiteNode

Abstract site node implementation.


Constructor Summary
protected AbstractSiteNode(Publication publication, SiteStructure structure, java.lang.String path, java.lang.String uuid, org.apache.avalon.framework.logger.Logger logger)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
protected static java.lang.String getKey(Publication pub, java.lang.String area, java.lang.String docId)
           
 SiteNode getParent()
           
 java.lang.String getPath()
           
 SiteStructure getStructure()
           
 java.lang.String getUuid()
           
 int hashCode()
           
 boolean hasLink(java.lang.String language)
          Checks if a link for a certain language is contained.
 boolean isTopLevel()
           
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.lenya.cms.site.SiteNode
delete, getChildren, getHref, getLanguages, getLink, getName, getSuffix, hasLink, isVisible, setVisible
 

Constructor Detail

AbstractSiteNode

protected AbstractSiteNode(Publication publication,
                           SiteStructure structure,
                           java.lang.String path,
                           java.lang.String uuid,
                           org.apache.avalon.framework.logger.Logger logger)
Method Detail

getPath

public java.lang.String getPath()
Specified by:
getPath in interface SiteNode
Returns:
The path.

getStructure

public SiteStructure getStructure()
Specified by:
getStructure in interface SiteNode
Returns:
The site structure this node belongs to.

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getKey

protected static java.lang.String getKey(Publication pub,
                                         java.lang.String area,
                                         java.lang.String docId)

getParent

public SiteNode getParent()
                   throws SiteException
Specified by:
getParent in interface SiteNode
Returns:
The parent node.
Throws:
SiteException - If the node has no parent.

isTopLevel

public boolean isTopLevel()
Specified by:
isTopLevel in interface SiteNode
Returns:
If this is a top level node. Top level nodes have no parents.

getUuid

public java.lang.String getUuid()
Specified by:
getUuid in interface SiteNode
Returns:
The UUID of this node.

hasLink

public boolean hasLink(java.lang.String language)
Description copied from interface: SiteNode
Checks if a link for a certain language is contained.

Specified by:
hasLink in interface SiteNode
Parameters:
language - The language.
Returns:
A boolean value.


Copyright © 1999-2006 Apache Software Foundation. All Rights Reserved.