org.riotfamily.pages.view
Class PageFacade

java.lang.Object
  extended by org.riotfamily.pages.view.PageFacade

public class PageFacade
extends Object

Since:
6.5
Author:
Felix Gnass [fgnass at neteye dot de]

Field Summary
static String TITLE_PROPERTY
           
 
Constructor Summary
PageFacade(Page page, HttpServletRequest request, PathCompleter pathCompleter)
           
 
Method Summary
 boolean equals(Object o)
           
 Object findPropertyInAncestors(String key)
           
 Object get(String key)
           
 String getAbsoluteUrl()
           
 String getAbsoluteWildcardUrl(Object attributes)
           
 Collection<Page> getAncestors()
           
 Collection<Page> getChildPages()
           
 Long getContentId()
           
 Date getCreationDate()
           
 Long getId()
           
 Map<String,Object> getLocal()
           
 Locale getLocale()
           
 Page getLocalPage()
           
 Page getMasterPage()
           
 Page getNextSibling()
           
 PageNode getNode()
           
 PageProperties getPageProperties()
           
 String getPageType()
           
 Page getParent()
           
 String getPath()
           
 String getPathComponent()
           
 Page getPreviousSibling()
           
 Map<String,Object> getProperties()
           
 String getSecureUrl()
           
 String getSecureWildcardUrl(Object attributes)
           
 List<Page> getSiblings()
           
 Site getSite()
           
 String getTitle()
           
 String getUrl()
           
 String getWildcardUrl(Object attributes)
           
 int hashCode()
           
 boolean isFolder()
           
 boolean isHidden()
           
 boolean isPublished()
           
 boolean isVisible()
           
 boolean isWildcard()
           
 boolean isWildcardInPath()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

TITLE_PROPERTY

public static final String TITLE_PROPERTY
See Also:
Constant Field Values
Constructor Detail

PageFacade

public PageFacade(Page page,
                  HttpServletRequest request,
                  PathCompleter pathCompleter)
Method Detail

getId

public Long getId()

getNode

public PageNode getNode()

getSite

public Site getSite()

getLocale

public Locale getLocale()

getCreationDate

public Date getCreationDate()

getPathComponent

public String getPathComponent()

isHidden

public boolean isHidden()

isFolder

public boolean isFolder()

getPath

public String getPath()

getUrl

public String getUrl()

getWildcardUrl

public String getWildcardUrl(Object attributes)

getAbsoluteUrl

public String getAbsoluteUrl()

getAbsoluteWildcardUrl

public String getAbsoluteWildcardUrl(Object attributes)

getSecureUrl

public String getSecureUrl()

getSecureWildcardUrl

public String getSecureWildcardUrl(Object attributes)

getLocalPage

public Page getLocalPage()

getMasterPage

public Page getMasterPage()

isWildcard

public boolean isWildcard()

isWildcardInPath

public boolean isWildcardInPath()

getParent

public Page getParent()

getChildPages

public Collection<Page> getChildPages()

getSiblings

public List<Page> getSiblings()

getPreviousSibling

public Page getPreviousSibling()

getNextSibling

public Page getNextSibling()

getAncestors

public Collection<Page> getAncestors()

findPropertyInAncestors

public Object findPropertyInAncestors(String key)

getPageType

public String getPageType()

getContentId

public Long getContentId()

getPageProperties

public PageProperties getPageProperties()

getProperties

public Map<String,Object> getProperties()

get

public Object get(String key)
See Also:
http://freemarker.org/docs/api/freemarker/ext/beans/BeanModel.html#get(java.lang.String)

getLocal

public Map<String,Object> getLocal()

getTitle

public String getTitle()

isPublished

public boolean isPublished()

isVisible

public boolean isVisible()

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object