com.arsdigita.acs
Class SiteNode

java.lang.Object
  |
  +--com.arsdigita.acs.SiteNode

public class SiteNode
extends java.lang.Object


Field Summary
static java.lang.String cvsId
           
 
Constructor Summary
SiteNode(java.sql.ResultSet rs)
           
 
Method Summary
 java.math.BigDecimal getNodeId()
           
 java.math.BigDecimal getObjectId()
           
 java.lang.String getObjectType()
           
 ACSPackage getPackage()
           
 java.lang.String getUrl(javax.servlet.http.HttpServletRequest req)
           
 java.lang.String getUrl(java.lang.String contextPath)
           
 java.lang.String getUrlNoContext()
           
 boolean isDirectory()
           
 boolean isPattern()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cvsId

public static final java.lang.String cvsId
Constructor Detail

SiteNode

public SiteNode(java.sql.ResultSet rs)
         throws java.sql.SQLException
Method Detail

getUrl

public java.lang.String getUrl(javax.servlet.http.HttpServletRequest req)
Parameters:
req - Servlet request. This is needed to get the context path, in case the servlet is not mounted at /.
Returns:
the URL of the site node; NOT the URL requested by the user!

getUrl

public java.lang.String getUrl(java.lang.String contextPath)
Parameters:
ContextPath - In case the servlet is not mounted at /.
Returns:
the URL of the site node; NOT the URL requested by the user!

getUrlNoContext

public java.lang.String getUrlNoContext()
Returns:
the URL of the site node; NOT the URL requested by the user!

getNodeId

public java.math.BigDecimal getNodeId()

isDirectory

public boolean isDirectory()

isPattern

public boolean isPattern()

getObjectId

public java.math.BigDecimal getObjectId()

getObjectType

public java.lang.String getObjectType()

getPackage

public ACSPackage getPackage()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object