org.riotfamily.pages.model
Class Page

java.lang.Object
  extended by org.riotfamily.pages.model.Page

public class Page
extends Object

Since:
6.5
Author:
Felix Gnass [fgnass at neteye dot de], Jan-Frederic Linde [jfl at neteye dot de]

Field Summary
static String TITLE_PROPERTY
          Deprecated. 
 
Constructor Summary
Page()
           
Page(Page master, Site site)
           
Page(String pathComponent, Site site)
           
 
Method Summary
 void addChildPage(Page child)
           
 String buildPath()
           
 boolean equals(Object o)
           
 String getAbsoluteUrl(PathCompleter pathCompleter, boolean secure, String defaultHost, String contextPath, Object attributes)
           
 Collection<Page> getAncestors()
           
 List<Page> getChildPages()
           
 Collection<Page> getChildPagesWithFallback()
           
 Date getCreationDate()
           
 Long getId()
           
 Locale getLocale()
           
 Page getMasterPage()
           
 PageNode getNode()
           
 PageProperties getPageProperties()
           
 String getPageType()
           
 Page getParentPage()
           
 String getPath()
           
 String getPathComponent()
           
 Site getSite()
           
 String getTitle()
          Deprecated. 
 String getTitle(boolean preview)
          Deprecated. 
 String getUrl(PathCompleter pathCompleter)
           
 String getUrl(PathCompleter pathCompleter, Object attributes)
           
 int hashCode()
           
 boolean isDirty()
           
 boolean isFolder()
          Returns whether the page only acts as container for other pages and has no own content.
 boolean isHidden()
           
 boolean isPublished()
           
 boolean isRequestable()
           
 boolean isVisible(boolean preview)
           
 boolean isWildcard()
           
 boolean isWildcardInPath()
           
 void setCreationDate(Date creationDate)
           
 void setFolder(boolean folder)
           
 void setHidden(boolean hidden)
           
 void setId(Long id)
           
 void setNode(PageNode node)
           
 void setPageProperties(PageProperties pageProperties)
           
 void setPath(String path)
           
 void setPathComponent(String pathComponent)
           
 void setPublished(boolean published)
           
 void setSite(Site site)
           
 void setWildcardInPath(boolean wildcardInPath)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

TITLE_PROPERTY

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

Page

public Page()

Page

public Page(String pathComponent,
            Site site)

Page

public Page(Page master,
            Site site)
Method Detail

getId

public Long getId()

setId

public void setId(Long id)

getNode

public PageNode getNode()

setNode

public void setNode(PageNode node)

getSite

public Site getSite()

setSite

public void setSite(Site site)

getLocale

public Locale getLocale()

getCreationDate

public Date getCreationDate()

setCreationDate

public void setCreationDate(Date creationDate)

getPathComponent

public String getPathComponent()

setPathComponent

public void setPathComponent(String pathComponent)

isHidden

public boolean isHidden()

setHidden

public void setHidden(boolean hidden)

isFolder

public boolean isFolder()
Returns whether the page only acts as container for other pages and has no own content.


setFolder

public void setFolder(boolean folder)

getPath

public String getPath()

setPath

public void setPath(String path)

getUrl

public String getUrl(PathCompleter pathCompleter)

getUrl

public String getUrl(PathCompleter pathCompleter,
                     Object attributes)

getAbsoluteUrl

public String getAbsoluteUrl(PathCompleter pathCompleter,
                             boolean secure,
                             String defaultHost,
                             String contextPath,
                             Object attributes)

isWildcard

public boolean isWildcard()

isWildcardInPath

public boolean isWildcardInPath()

setWildcardInPath

public void setWildcardInPath(boolean wildcardInPath)

buildPath

public String buildPath()

getParentPage

public Page getParentPage()

getChildPages

public List<Page> getChildPages()

getChildPagesWithFallback

public Collection<Page> getChildPagesWithFallback()

getAncestors

public Collection<Page> getAncestors()

addChildPage

public void addChildPage(Page child)

getPageType

public String getPageType()

getPageProperties

public PageProperties getPageProperties()

setPageProperties

public void setPageProperties(PageProperties pageProperties)

getMasterPage

public Page getMasterPage()

getTitle

@Deprecated
public String getTitle()
Deprecated. 


getTitle

@Deprecated
public String getTitle(boolean preview)
Deprecated. 


isDirty

public boolean isDirty()

isPublished

public boolean isPublished()

setPublished

public void setPublished(boolean published)

isRequestable

public boolean isRequestable()

isVisible

public boolean isVisible(boolean preview)

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