|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Page
Representation of Page object.
| Field Summary | |
|---|---|
static java.lang.String |
DATABASEPAGE_TYPE
page type for database pages. |
static java.lang.String |
PAGE_TYPE
Page type for normal pages. |
static java.lang.String |
PAGEMODEL_TYPE
Page type for page models. |
static java.lang.String |
PAGESECTION_TYPE
Page type for page sections. |
| Method Summary | |
|---|---|
BlockLabel |
getBlockLabel()
Deprecated. use getBlockLabels() instead |
BlockLabel[] |
getBlockLabels()
Return block labels associated with the page (if it is a block) or null. |
PageVersion |
getCurrent()
Returns the published version. |
PageVersion |
getCurrent(Language language)
Returns the published page version for the given language. |
Language |
getDefaultEditingLanguage()
Returns the default editing language of this page. |
PageVersion |
getEditVersion(javax.servlet.http.HttpServletRequest request)
Return version of the page you're currently editing. |
RelatedInternalLink[] |
getInternalLinksToPage()
Returns all internal links that refer to this page. |
Page |
getLevel1Page()
Return a level 1 page (subpage from the homepage). |
Page |
getLevelPage(int level)
Returns the page for specific level (level 0 is the homepage). |
Link |
getLink()
Returns the Link to this page. |
MediaItemPageVersion |
getMediaItemPageVersion()
|
java.lang.String |
getPageType()
Returns the page type of this page. |
Page |
getParent()
Return the parent page. |
Page[] |
getParents()
Return parent, parent's parent, etc. |
PageVersion |
getPlanned()
Return the latest planned version. |
PageVersion |
getPlanned(Language language)
Returns the latest planned page version for the given language. |
Page[] |
getSubPages()
Return sub pages. |
PageVersion[] |
getVersions()
Return all versions of this Page. |
PageVersion[] |
getVersions(Language language)
Returns all page versions for the given language. |
Website |
getWebsite()
Returns the website this page is on. |
WorkflowModel |
getWorkflowModel()
Return the Workflow model assigned to this page or that is inherited from a parent page. |
boolean |
hasInheritedWorkflowModel()
Returns if the Workflow model of this page was inherited from a super page or assigned directly to the page itself. |
boolean |
isBlock()
Return true if the page is a block. |
| Methods inherited from interface nl.gx.webmanager.wrapper.Wrapper |
|---|
getId, getUUID, setId, setUUID |
| Field Detail |
|---|
static final java.lang.String PAGE_TYPE
static final java.lang.String PAGESECTION_TYPE
static final java.lang.String PAGEMODEL_TYPE
static final java.lang.String DATABASEPAGE_TYPE
| Method Detail |
|---|
PageVersion[] getVersions()
PageVersion[] getVersions(Language language)
getVersions(). If there are no page versions available for that language then returns
null;
language - Return only page versions for this language.
PageVersion getCurrent()
null if there is no published version available.
Note given the same page calling this method or getPlanned() always returns a page version.
Note that due to performance reasons the current page version is cached request scope. The result is
that changing the current page version yields the previous current page version when calling this
method after the change. Prerequisite is that this method is called before the change (cache is lazily
filled) and that this all happens during the same HTTP request.
Current page version roll-overs might occur when performing a workflow change or change the publication
and/or expiration date.
PageVersion getCurrent(Language language)
getCurrent(). If there is no published version available for this language then returns
null.
Note that given a language it is possible a page has no page version for that language, so that both
this method and getPlanned() could return null.
Like getCurrent() this method caches its result request scope.
language - The language for which the current page version should be retrieved.
null if there is no current page version for this page
for the given language.PageVersion getPlanned()
Note given the same page calling this method or getCurrent() always returns a page version.
PageVersion getPlanned(Language language)
getPlanned(). If there is no planned version available then returns null.
Note that given a language it is possible a page has no page version for that language, so that both
this method and getCurrent() will return null.
language - The language for which the planned page version should be retrieved.
Page getParent()
Page[] getParents()
Page[] getSubPages()
getSubPages of class PageVersion instead.
PageVersion.getSubPages(),
PageVersion.getSubPagesWithCurrent()Website getWebsite()
Link getLink()
Page getLevelPage(int level)
level - the specific level
Page getLevel1Page()
BlockLabel[] getBlockLabels()
BlockLabel getBlockLabel()
getBlockLabels() instead
boolean isBlock()
java.lang.String getPageType()
RelatedInternalLink[] getInternalLinksToPage()
Language getDefaultEditingLanguage()
PageVersion getEditVersion(javax.servlet.http.HttpServletRequest request)
request - Current http servlet request
WorkflowModel getWorkflowModel()
boolean hasInheritedWorkflowModel()
true if the Workflow model was iherited from a super page, false
otherwiseMediaItemPageVersion getMediaItemPageVersion()
MediaItemPageVersion, or null if this Page is not stored
in the media repository
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||