com.gentics.contentnode.rest.model
Class Page

java.lang.Object
  extended by com.gentics.contentnode.rest.model.ContentNodeItem
      extended by com.gentics.contentnode.rest.model.Page
All Implemented Interfaces:
Serializable

public class Page
extends ContentNodeItem
implements Serializable

Page object representing a page in GCN

Author:
floriangutmann
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.gentics.contentnode.rest.model.ContentNodeItem
ContentNodeItem.ItemType
 
Field Summary
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  PageVersion publishedVersion
          Published page version
protected  TranslationStatus translationStatus
          Translation status
protected  List<PageVersion> versions
          Page versions
 
Constructor Summary
Page()
          Constructor used by JAXB
 
Method Summary
 void addTags(Map<String,Tag> restTags)
          Add the given rest tags to the map of all other rest tags for this page
 Integer getContentGroupId()
          Contentgroup ID
 Integer getContentSetId()
          Contentset ID
 PageVersion getCurrentVersion()
          Current version of the page
 String getDescription()
          Description
 String getFileName()
          Filename
 Folder getFolder()
          Folder
 Integer getFolderId()
          Folder ID
 String getInheritedFrom()
          Name 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
 PageStatus getPageStatus()
          Get the page statustext
 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
 int getStatus()
          Status of the page
 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 isInherited()
          True if the page was inherited
 boolean isLocked()
          True if the page is locked
 boolean isReadOnly()
          True if the page was fetched readonly, false if fetched in edit mode
 void setContentGroupId(Integer contentGroupId)
           
 void setContentSetId(Integer contentSetId)
           
 void setCurrentVersion(PageVersion currentVersion)
          Set the current version
 void setDescription(String description)
           
 void setFileName(String fileName)
           
 void setFolder(Folder folder)
           
 void setFolderId(Integer folderId)
           
 void setInherited(boolean inherited)
           
 void setInheritedFrom(String inheritedFrom)
          sets 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 setMasterNode(String masterNode)
          Set the name of the node, the master object belongs to
 void setPageStatus(PageStatus pageStatus)
          Set the page statustext
 void setPageVariants(List<Page> variantIds)
           
 void setPath(String path)
          Set the path
 void setPdate(int pdate)
           
 void setPriority(Integer priority)
           
 void setPublishedVersion(PageVersion publishedVersion)
          Set the published version
 void setPublisher(User publisher)
           
 void setReadOnly(boolean readOnly)
           
 void setStatus(int status)
           
 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)
           
 
Methods inherited from class com.gentics.contentnode.rest.model.ContentNodeItem
getCdate, getCreator, getEdate, getEditor, getId, getName, getType, setCdate, setCreator, setEdate, setEditor, setId, setName, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

inherited

protected boolean inherited
true when the page is inherited from a master channel, false if not


locked

protected boolean locked
true when the page is locked, false if not


lockedSince

protected int lockedSince
Date when the page was locked, or -1 if the page is not locked


lockedBy

protected User lockedBy
User, who locked the page (if locked is true)


translationStatus

protected TranslationStatus translationStatus
Translation status


versions

protected List<PageVersion> versions
Page versions


currentVersion

protected PageVersion currentVersion
Current page version


publishedVersion

protected PageVersion publishedVersion
Published page version

Constructor Detail

Page

public Page()
Constructor used by JAXB

Method Detail

getFileName

public String getFileName()
Filename

Returns:
the fileName

getDescription

public String getDescription()
Description

Returns:
the description

getTemplateId

public Integer getTemplateId()
Template ID

Returns:
the templateId

getFolderId

public Integer getFolderId()
Folder ID

Returns:
the folderId

getPriority

public Integer getPriority()
Priority

Returns:
the priority

getPublisher

public User getPublisher()
Publisher

Returns:
the publisher

getPdate

public int getPdate()
Publish Date

Returns:
the pdate

getLanguage

public String getLanguage()
Language Code (if page has a language)

Returns:
the language

getLanguageName

public String getLanguageName()
Language Name (if page has a language)

Returns:
name of the page language

getTags

public Map<String,Tag> getTags()
Tags of the page

Returns:
tags

getInheritedFrom

public String getInheritedFrom()
Name of the node, this page is inherited from

Returns:

setInheritedFrom

public void setInheritedFrom(String inheritedFrom)
sets inherited from

Parameters:
inheritedFrom -

getMasterNode

public String getMasterNode()
Name of the node, the master object belongs to

Returns:
node name

setMasterNode

public void setMasterNode(String masterNode)
Set the name of the node, the master object belongs to

Parameters:
masterNode - node name

getPageVariants

public List<Page> getPageVariants()
Page variants of the page

Returns:
pageVariants

setFileName

public void setFileName(String fileName)
Parameters:
fileName - the fileName to set

setDescription

public void setDescription(String description)
Parameters:
description - the description to set

setTemplateId

public void setTemplateId(Integer templateId)
Parameters:
templateId - the templateId to set

setFolderId

public void setFolderId(Integer folderId)
Parameters:
folderId - the folderId to set

setPriority

public void setPriority(Integer priority)
Parameters:
priority - the priority to set

setPublisher

public void setPublisher(User publisher)
Parameters:
publisher - the publisher to set

setPdate

public void setPdate(int pdate)
Parameters:
pdate - the pdate to set

setLanguage

public void setLanguage(String language)
Parameters:
language - the language to set

setLanguageName

public void setLanguageName(String languageName)
Set the language name

Parameters:
languageName - language name

setTags

public void setTags(Map<String,Tag> tags)
Set the tags

Parameters:
tags - tags

isReadOnly

public boolean isReadOnly()
True if the page was fetched readonly, false if fetched in edit mode

Returns:

setReadOnly

public void setReadOnly(boolean readOnly)

getTimeManagement

public TimeManagement getTimeManagement()
Time Management

Returns:
the timeManagement

setTimeManagement

public void setTimeManagement(TimeManagement timeManagement)
Parameters:
timeManagement - the timeManagement to set

setPageVariants

public void setPageVariants(List<Page> variantIds)

getPath

public String getPath()
Folder path to the page

Returns:
path

setPath

public void setPath(String path)
Set the path

Parameters:
path - the path

setUrl

public void setUrl(String url)

getUrl

public String getUrl()
URL to the page

Returns:

setLiveUrl

public void setLiveUrl(String liveUrl)
Set the live URL of the page


getLiveUrl

public String getLiveUrl()
Live URL to the page

Returns:

setStatus

public void setStatus(int status)

getStatus

public int getStatus()
Status of the page

Returns:

getTemplate

public Template getTemplate()
Template

Returns:
the template

getFolder

public Folder getFolder()
Folder

Returns:
the folder

setTemplate

public void setTemplate(Template template)
Parameters:
template - the template to set

setFolder

public void setFolder(Folder folder)
Parameters:
folder - the folder to set

getContentSetId

public Integer getContentSetId()
Contentset ID

Returns:
the contentSetId

getContentGroupId

public Integer getContentGroupId()
Contentgroup ID

Returns:
the contentGroupId

setContentSetId

public void setContentSetId(Integer contentSetId)
Parameters:
contentSetId - the contentSetId to set

setContentGroupId

public void setContentGroupId(Integer contentGroupId)
Parameters:
contentGroupId - the contentGroupId to set

getLanguageVariants

public Map<Object,Page> getLanguageVariants()
Language variants

Returns:
the languageVariants

setLanguageVariants

public void setLanguageVariants(Map<Object,Page> languageVariants)
Parameters:
languageVariants - the languageVariants to set

isInherited

public boolean isInherited()
True if the page was inherited

Returns:

setInherited

public void setInherited(boolean inherited)

isLocked

public boolean isLocked()
True if the page is locked

Returns:
the locked

setLocked

public void setLocked(boolean locked)
Parameters:
locked - the locked to set

getLockedSince

public int getLockedSince()
Timestamp, since when the page is locked, or -1 if it is not locked

Returns:
timestamp of page locking or -1

setLockedSince

public void setLockedSince(int lockedSince)
Set the timestamp, since when the page is locked

Parameters:
lockedSince - timestamp of page locking or -1

getLockedBy

public User getLockedBy()
User, who locked the page

Returns:
user

setLockedBy

public void setLockedBy(User lockedBy)
Set locked by

Parameters:
lockedBy - user, who locked the page

getWorkflow

public Workflow getWorkflow()
Workflow attached to the page

Returns:
the workflow

setWorkflow

public void setWorkflow(Workflow workflow)
Parameters:
workflow - the workflow to set

getTranslationStatus

public TranslationStatus getTranslationStatus()
Translation status information

Returns:
translation status information

setTranslationStatus

public void setTranslationStatus(TranslationStatus translationStatus)
Set the translation status information

Parameters:
translationStatus - translation status information

getCurrentVersion

public PageVersion getCurrentVersion()
Current version of the page

Returns:
current version

getPublishedVersion

public PageVersion getPublishedVersion()
Published version of the page

Returns:
published version

getVersions

public List<PageVersion> getVersions()
Page versions

Returns:
page versions

setCurrentVersion

public void setCurrentVersion(PageVersion currentVersion)
Set the current version

Parameters:
currentVersion - current version

setPublishedVersion

public void setPublishedVersion(PageVersion publishedVersion)
Set the published version

Parameters:
publishedVersion - published version

setVersions

public void setVersions(List<PageVersion> versions)
Set the page versions

Parameters:
versions - page versions

setPageStatus

public void setPageStatus(PageStatus pageStatus)
Set the page statustext

Parameters:
PageStatus - statustext

getPageStatus

public PageStatus getPageStatus()
Get the page statustext

Returns:
statustext

addTags

public void addTags(Map<String,Tag> restTags)
Add the given rest tags to the map of all other rest tags for this page

Parameters:
restTags -


Copyright © 2015 Gentics Software GmbH. All Rights Reserved.