public class Page extends ContentNodeItem implements Serializable
ContentNodeItem.ItemType
Modifier and Type | Field and Description |
---|---|
protected Integer |
channelId
Channel ID
|
protected Integer |
channelSetId
Channelset ID
|
protected Integer |
contentId
Content ID
|
protected PageVersion |
currentVersion
Current page version
|
protected boolean |
inherited
true when the page is inherited from a master channel, false if not
|
protected boolean |
locked
true when the page is locked, false if not
|
protected User |
lockedBy
User, who locked the page (if
locked is true) |
protected int |
lockedSince
Date when the page was locked, or -1 if the page is not locked
|
protected boolean |
master
true if the page is a master page, false if not
|
protected PageVersion |
publishedVersion
Published page version
|
protected TranslationStatus |
translationStatus
Translation status
|
protected List<PageVersion> |
versions
Page versions
|
Constructor and Description |
---|
Page()
Constructor used by JAXB
|
Modifier and Type | Method and Description |
---|---|
void |
addTags(Map<String,Tag> restTags)
Add the given rest tags to the map of all other rest tags for this page
|
SortedSet<String> |
getAlternateUrls()
Alternate URLs (in alphabetical order)
|
Integer |
getChannelId()
Get the channel id
|
Integer |
getChannelSetId()
Get the channelset id
|
Integer |
getContentGroupId()
Contentgroup ID
|
Integer |
getContentId()
Get the content id
|
Integer |
getContentSetId()
Contentset ID
|
PageVersion |
getCurrentVersion()
Current version of the page
|
Integer |
getCustomCdate()
Custom creation date of the page (set to 0 for clearing custom creation date and falling back to the real creation date)
|
Integer |
getCustomEdate()
Custom edit date of the page (set to 0 for clearing custom edit date and falling back to the real edit date)
|
String |
getDescription()
Description
|
Set<Node> |
getDisinheritedChannels()
the set of disinherited channels for this object
|
String |
getFileName()
Filename
|
Folder |
getFolder()
Folder
|
Integer |
getFolderId()
Folder ID
|
String |
getInheritedFrom()
Name of the node, this page is inherited from.
|
Integer |
getInheritedFromId()
Return the node id of the node this page is inherited from.
|
String |
getLanguage()
Language Code (if page has a language)
|
String |
getLanguageName()
Language Name (if page has a language)
|
Map<Object,Page> |
getLanguageVariants()
Language variants
|
String |
getLiveUrl()
Live URL to the page
|
User |
getLockedBy()
User, who locked the page
|
int |
getLockedSince()
Timestamp, since when the page is locked, or -1 if it is not locked
|
String |
getMasterNode()
Name of the node, the master object belongs to
|
Integer |
getMasterNodeId()
Return the id of the node, the master object belongs to.
|
String |
getNiceUrl()
Nice URL
|
List<Page> |
getPageVariants()
Page variants of the page
|
String |
getPath()
Folder path to the page
|
int |
getPdate()
Publish Date
|
Integer |
getPriority()
Priority
|
PageVersion |
getPublishedVersion()
Published version of the page
|
User |
getPublisher()
Publisher
|
String |
getPublishPath()
Publish path
|
Map<String,Tag> |
getTags()
Tags of the page
|
Template |
getTemplate()
Template
|
Integer |
getTemplateId()
Template ID
|
TimeManagement |
getTimeManagement()
Time Management
|
TranslationStatus |
getTranslationStatus()
Translation status information
|
String |
getUrl()
URL to the page
|
List<PageVersion> |
getVersions()
Page versions
|
Workflow |
getWorkflow()
Workflow attached to the page
|
Boolean |
isDisinheritDefault()
Whether this folder is disinherited by default in new channels.
|
Boolean |
isDisinherited()
True if the page is disinherited in some channels
|
Boolean |
isExcluded()
Whether this page is excluded from multichannelling.
|
boolean |
isInherited()
True if the page was inherited
|
boolean |
isLocked()
True if the page is locked
|
boolean |
isMaster()
Get whether this page is a master page
|
boolean |
isModified()
Whether the page is modified (the last version of the page is not the currently published one)
|
boolean |
isOnline()
Whether the page is currently online.
|
boolean |
isPlanned()
Whether the page has time management set or not
|
boolean |
isQueued()
Whether the page is in queue for being published or taken offline
|
boolean |
isReadOnly()
True if the page was fetched readonly, false if fetched in edit mode
|
void |
setAlternateUrls(SortedSet<String> alternateUrls)
Set the alternate URLs
|
void |
setChannelId(Integer channelId)
Set the channel id
|
void |
setChannelSetId(Integer channelSetId)
Set the channelset id
|
void |
setContentGroupId(Integer contentGroupId) |
void |
setContentId(Integer contentId)
Set the content id
|
void |
setContentSetId(Integer contentSetId) |
void |
setCurrentVersion(PageVersion currentVersion)
Set the current version
|
void |
setCustomCdate(Integer customCdate)
Set custom creation date
|
void |
setCustomEdate(Integer customEdate)
Set custom edit date
|
void |
setDescription(String description) |
void |
setDisinheritDefault(Boolean disinheritDefault)
Set whether this folder should be disinherited by default in new channels.
|
void |
setDisinherited(Boolean disinherited)
Set whether the page is disinherited
|
void |
setDisinheritedChannels(Set<Node> disinheritedChannels)
Set the disinherited channels for this object
|
void |
setExcluded(Boolean excluded)
Set wether the page is excluded from multichannelling
|
void |
setFileName(String fileName) |
void |
setFolder(Folder folder) |
void |
setFolderId(Integer folderId) |
void |
setInherited(boolean inherited) |
void |
setInheritedFrom(String inheritedFrom)
Sets the name of the node this page is inherited from.
|
void |
setInheritedFromId(Integer inheritedFromId)
Set the id of the node this page is inherited from.
|
void |
setLanguage(String language) |
void |
setLanguageName(String languageName)
Set the language name
|
void |
setLanguageVariants(Map<Object,Page> languageVariants) |
void |
setLiveUrl(String liveUrl)
Set the live URL of the page
|
void |
setLocked(boolean locked) |
void |
setLockedBy(User lockedBy)
Set locked by
|
void |
setLockedSince(int lockedSince)
Set the timestamp, since when the page is locked
|
void |
setMaster(boolean master)
Set true for master pages, false for localized copies
|
void |
setMasterNode(String masterNode)
Set the name of the node, the master object belongs to
|
void |
setMasterNodeId(Integer masterNodeId)
Set the id of the node the master object belongs to.
|
void |
setModified(boolean modified)
Set modified flag
|
void |
setNiceUrl(String niceUrl)
Set the nice URL
|
void |
setOnline(boolean online)
Set the online status of the page.
|
void |
setPageVariants(List<Page> variantIds) |
void |
setPath(String path)
Set the path
|
void |
setPdate(int pdate) |
void |
setPlanned(boolean planned)
Set planned flag
|
void |
setPriority(Integer priority) |
void |
setPublishedVersion(PageVersion publishedVersion)
Set the published version
|
void |
setPublisher(User publisher) |
void |
setPublishPath(String publishPath)
Set the publish path
|
void |
setQueued(boolean queued)
Set queued flag
|
void |
setReadOnly(boolean readOnly) |
void |
setTags(Map<String,Tag> tags)
Set the tags
|
void |
setTemplate(Template template) |
void |
setTemplateId(Integer templateId) |
void |
setTimeManagement(TimeManagement timeManagement) |
void |
setTranslationStatus(TranslationStatus translationStatus)
Set the translation status information
|
void |
setUrl(String url) |
void |
setVersions(List<PageVersion> versions)
Set the page versions
|
void |
setWorkflow(Workflow workflow) |
getCdate, getCreator, getDeleted, getEdate, getEditor, getFolderDeleted, getGlobalId, getId, getMasterDeleted, getName, getType, setCdate, setCreator, setDeleted, setEdate, setEditor, setFolderDeleted, setGlobalId, setId, setMasterDeleted, setName, setType
protected boolean inherited
protected boolean master
protected boolean locked
protected int lockedSince
protected TranslationStatus translationStatus
protected List<PageVersion> versions
protected PageVersion currentVersion
protected PageVersion publishedVersion
protected Integer contentId
protected Integer channelId
protected Integer channelSetId
public String getNiceUrl()
public SortedSet<String> getAlternateUrls()
public String getFileName()
public String getDescription()
public Integer getTemplateId()
public Integer getFolderId()
public Integer getPriority()
public User getPublisher()
public int getPdate()
public String getLanguage()
public String getLanguageName()
public String getInheritedFrom()
public void setInheritedFrom(String inheritedFrom)
inheritedFrom
- public Integer getInheritedFromId()
public void setInheritedFromId(Integer inheritedFromId)
inheritedFromId
- public String getMasterNode()
public void setMasterNode(String masterNode)
masterNode
- node namepublic Integer getMasterNodeId()
public void setMasterNodeId(Integer masterNodeId)
masterNodeId
- public void setNiceUrl(String niceUrl)
niceUrl
- nice URLpublic void setAlternateUrls(SortedSet<String> alternateUrls)
alternateUrls
- alternate URLspublic void setFileName(String fileName)
fileName
- the fileName to setpublic void setDescription(String description)
description
- the description to setpublic void setTemplateId(Integer templateId)
templateId
- the templateId to setpublic void setFolderId(Integer folderId)
folderId
- the folderId to setpublic void setPriority(Integer priority)
priority
- the priority to setpublic void setPublisher(User publisher)
publisher
- the publisher to setpublic void setPdate(int pdate)
pdate
- the pdate to setpublic void setLanguage(String language)
language
- the language to setpublic void setLanguageName(String languageName)
languageName
- language namepublic boolean isReadOnly()
public void setReadOnly(boolean readOnly)
public TimeManagement getTimeManagement()
public void setTimeManagement(TimeManagement timeManagement)
timeManagement
- the timeManagement to setpublic String getPath()
public void setPath(String path)
path
- the pathpublic void setUrl(String url)
public String getUrl()
public void setLiveUrl(String liveUrl)
public String getLiveUrl()
public void setPublishPath(String publishPath)
publishPath
- publish pathpublic String getPublishPath()
public boolean isOnline()
true
if the page is currently online, false
otherwise.public void setOnline(boolean online)
online
- The online status.public boolean isModified()
public void setModified(boolean modified)
modified
- flagpublic boolean isQueued()
public void setQueued(boolean queued)
queued
- flagpublic boolean isPlanned()
public void setPlanned(boolean planned)
planned
- flagpublic Template getTemplate()
public Folder getFolder()
public void setTemplate(Template template)
template
- the template to setpublic void setFolder(Folder folder)
folder
- the folder to setpublic Integer getContentSetId()
public Integer getContentGroupId()
public void setContentSetId(Integer contentSetId)
contentSetId
- the contentSetId to setpublic void setContentGroupId(Integer contentGroupId)
contentGroupId
- the contentGroupId to setpublic Map<Object,Page> getLanguageVariants()
public void setLanguageVariants(Map<Object,Page> languageVariants)
languageVariants
- the languageVariants to setpublic boolean isInherited()
public void setInherited(boolean inherited)
public boolean isLocked()
public void setLocked(boolean locked)
locked
- the locked to setpublic int getLockedSince()
public void setLockedSince(int lockedSince)
lockedSince
- timestamp of page locking or -1public User getLockedBy()
public void setLockedBy(User lockedBy)
lockedBy
- user, who locked the pagepublic Workflow getWorkflow()
public void setWorkflow(Workflow workflow)
workflow
- the workflow to setpublic TranslationStatus getTranslationStatus()
public void setTranslationStatus(TranslationStatus translationStatus)
translationStatus
- translation status informationpublic PageVersion getCurrentVersion()
public PageVersion getPublishedVersion()
public List<PageVersion> getVersions()
public void setCurrentVersion(PageVersion currentVersion)
currentVersion
- current versionpublic void setPublishedVersion(PageVersion publishedVersion)
publishedVersion
- published versionpublic void setVersions(List<PageVersion> versions)
versions
- page versionspublic void addTags(Map<String,Tag> restTags)
restTags
- public Integer getContentId()
public void setContentId(Integer contentId)
contentId
- content idpublic Integer getChannelSetId()
public void setChannelSetId(Integer channelSetId)
channelSetId
- channelset idpublic Integer getChannelId()
public void setChannelId(Integer channelId)
channelId
- channel idpublic boolean isMaster()
public void setMaster(boolean master)
master
- true for master pagepublic Set<Node> getDisinheritedChannels()
public void setDisinheritedChannels(Set<Node> disinheritedChannels)
disinheritedChannels
- the set of disinherited channnelspublic Boolean isExcluded()
public void setExcluded(Boolean excluded)
excluded
- if true, the page will be excluded from multichannellingpublic Boolean isDisinheritDefault()
true
if the folder is disinherited in new channels,
false
otherwise.public void setDisinheritDefault(Boolean disinheritDefault)
disinheritDefault
- If set to true
this folder will be
disinherited by default in new channels.public Boolean isDisinherited()
public void setDisinherited(Boolean disinherited)
disinherited
- true if disinheritedpublic Integer getCustomCdate()
public void setCustomCdate(Integer customCdate)
customCdate
- custom creation datepublic Integer getCustomEdate()
public void setCustomEdate(Integer customEdate)
customEdate
- custom edit dateCopyright © 2024 Gentics Software. All rights reserved.