Class Node
- java.lang.Object
-
- com.gentics.contentnode.rest.model.ContentNodeItem
-
- com.gentics.contentnode.rest.model.Node
-
- All Implemented Interfaces:
Serializable
public class Node extends ContentNodeItem implements Serializable
REST Model for a Node- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.gentics.contentnode.rest.model.ContentNodeItem
ContentNodeItem.ItemType
-
-
Constructor Summary
Constructors Constructor Description Node()
Create empty instance
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
getBinaryPublishDir()
Get the publish directory for binariesEditor
getContentEditor()
Editor to be used in the node.Integer
getContentRepositoryId()
ID of the assigned contentrepositoryString
getContentRepositoryName()
Get the name of the content repositoryInteger
getDefaultFileFolderId()
Default File Upload Folder IDInteger
getDefaultImageFolderId()
Default Image Upload Folder IDInteger
getEditorVersion()
Editor to be used in the node Possible values are 0 for LiveEditor and 1 for Aloha editor.Integer
getFolderId()
ID of the root folderString
getHost()
Hostname for publishing into the FilesystemInteger
getInheritedFromId()
Return id of the node or channel which inherits the node.Boolean
getInsecurePreviewUrl()
Whether insecure connections to the preview URL are allowed.List<Integer>
getLanguagesId()
Integer
getMasterId()
The id of the master node if this is a channel.String
getMasterName()
Get the name of the master nodeInteger
getMasterNodeId()
Return the id of the master node of the node.String
getMeshPreviewUrl()
Preview URL of Mesh PortalString
getMeshProject()
Mesh Project, this node publishes intoBoolean
getOmitPageExtension()
PageLanguageCode
getPageLanguageCode()
Boolean
getPublishContentMapFiles()
True if to publish files to the content repositoryBoolean
getPublishContentMapFolders()
True if to publish folders to the content repositoryBoolean
getPublishContentMapPages()
True if to publish pages to the content repositoryString
getPublishDir()
Publish directoryBoolean
getPublishFsFiles()
True if the node shall publish files into the file systemBoolean
getPublishFsPages()
True if the node shall publish pages into the file systemInteger
getUrlRenderWayFiles()
How URLs are rendered for files in this nodeInteger
getUrlRenderWayPages()
How URLs are rendered for pages in this nodeBoolean
isDisablePublish()
True if publishing content modifications is disabledBoolean
isHttps()
True if secure https is enabled for this nodeBoolean
isPubDirSegment()
True if the publish directories are created from segments defined for the folders.Boolean
isPublishContentMap()
True if the node shall publish into a contentmap (if a contentrepository is assigned)Boolean
isPublishFs()
True if the node shall publish into the filesystemBoolean
isUtf8()
Deprecated.No longer used since Aloha editor requires UTF-8.void
setBinaryPublishDir(String binaryPublishDir)
Set the publish directory for binariesvoid
setContentEditor(Editor contentEditor)
Set the editor.void
setContentRepositoryId(Integer contentRepositoryId)
Set the contentrepository idvoid
setContentRepositoryName(String contentRepositoryName)
Set the name of the content repositoryvoid
setDefaultFileFolderId(Integer defaultFileFolderId)
Set the default file folder idvoid
setDefaultImageFolderId(Integer defaultImageFolderId)
Set the default image folder IDvoid
setDisablePublish(Boolean disablePublish)
Set true for disabling publishing content modificationsvoid
setEditorVersion(Integer editorVersion)
Set the editor Possible values are 0 for LiveEditor and 1 for Aloha editor.void
setFolderId(Integer folderId)
Set the root folder idvoid
setHost(String host)
Set the hostnamevoid
setHttps(Boolean https)
Set whether secure https is enabled for the nodevoid
setInheritedFromId(Integer inheritedFromId)
Set the id of the node or channel which inherits the node.void
setInsecurePreviewUrl(Boolean insecurePreviewUrl)
Set whether insecure connections to the preview URL are allowed.void
setLanguagesId(List<Integer> languagesId)
void
setMasterId(Integer masterId)
Set the id of the master channel.void
setMasterName(String masterName)
Set the name of the master nodevoid
setMasterNodeId(Integer masterNodeId)
Set the id of the master node of the node.void
setMeshPreviewUrl(String meshPreviewUrl)
Set the Mesh Preview URLvoid
setMeshProject(String meshProject)
Set the mesh projectvoid
setOmitPageExtension(Boolean omitPageExtension)
void
setPageLanguageCode(PageLanguageCode pageLanguageCode)
void
setPubDirSegment(Boolean pubDirSegment)
Set flag for publish directory segmentsvoid
setPublishContentMap(Boolean publishContentMap)
Set true for publishing into contentmap Calling this also automatically enables/disables publishing for the individual object types (pages, files).void
setPublishContentMapFiles(Boolean publishContentMapFiles)
Set whether to publish files to the content repositoryvoid
setPublishContentMapFolders(Boolean publishContentMapFolders)
Set whether to publish folders to the content repositoryvoid
setPublishContentMapPages(Boolean publishContentMapPages)
Set whether to publish pages to the content repositoryvoid
setPublishDir(String publishDir)
Set the publish directoryvoid
setPublishFs(Boolean publishFs)
Set true for publishing into the filesystem Calling this also automatically enables/disables publishing for the individual object types (pages, files).void
setPublishFsFiles(Boolean publishFsFiles)
Set true for publishing files into the content repositoryvoid
setPublishFsPages(Boolean publishFsPages)
Set true for publishing pages into the content repositoryvoid
setUrlRenderWayFiles(Integer value)
Set how URLs are rendered for pages in this node.void
setUrlRenderWayPages(Integer value)
Set how URLs are rendered for pages in this node.void
setUtf8(Boolean utf8)
Deprecated.-
Methods inherited from class com.gentics.contentnode.rest.model.ContentNodeItem
getCdate, getCreator, getDeleted, getEdate, getEditor, getFolderDeleted, getGlobalId, getId, getMasterDeleted, getName, getType, setCdate, setCreator, setDeleted, setEdate, setEditor, setFolderDeleted, setGlobalId, setId, setMasterDeleted, setName, setType
-
-
-
-
Method Detail
-
getFolderId
public Integer getFolderId()
ID of the root folder- Returns:
- root folder ID
-
setFolderId
public void setFolderId(Integer folderId)
Set the root folder id- Parameters:
folderId
- ID of the root folder
-
getPublishDir
public String getPublishDir()
Publish directory- Returns:
- publish directory
-
setPublishDir
public void setPublishDir(String publishDir)
Set the publish directory- Parameters:
publishDir
- publish directory
-
getBinaryPublishDir
public String getBinaryPublishDir()
Get the publish directory for binaries- Returns:
- publish directory for binaries
-
setBinaryPublishDir
public void setBinaryPublishDir(String binaryPublishDir)
Set the publish directory for binaries- Parameters:
binaryPublishDir
- publish directory for binaries
-
isPubDirSegment
public Boolean isPubDirSegment()
True if the publish directories are created from segments defined for the folders. False if every folder has its own publish directory.- Returns:
- true for publish directory segments
-
setPubDirSegment
public void setPubDirSegment(Boolean pubDirSegment)
Set flag for publish directory segments- Parameters:
pubDirSegment
- flag
-
isHttps
public Boolean isHttps()
True if secure https is enabled for this node- Returns:
- true for secure https
-
setHttps
public void setHttps(Boolean https)
Set whether secure https is enabled for the node- Parameters:
https
-
-
getHost
public String getHost()
Hostname for publishing into the Filesystem- Returns:
- hostname
-
setHost
public void setHost(String host)
Set the hostname- Parameters:
host
- hostname
-
isUtf8
@Deprecated public Boolean isUtf8()
Deprecated.No longer used since Aloha editor requires UTF-8.True if the node content should be encoded in UTF8- Returns:
- true for UTF8
-
setUtf8
@Deprecated public void setUtf8(Boolean utf8)
Deprecated.Set whether the node should be encoded in UTF8- Parameters:
utf8
-
-
isPublishFs
public Boolean isPublishFs()
True if the node shall publish into the filesystem- Returns:
- true for publishing into filesystem
-
setPublishFs
public void setPublishFs(Boolean publishFs)
Set true for publishing into the filesystem Calling this also automatically enables/disables publishing for the individual object types (pages, files).- Parameters:
publishFs
-
-
getPublishFsPages
public Boolean getPublishFsPages()
True if the node shall publish pages into the file system- Returns:
- true for publishing pages into file system
-
setPublishFsPages
public void setPublishFsPages(Boolean publishFsPages)
Set true for publishing pages into the content repository- Parameters:
publishFsPages
- Set to true for publishing pages into the content repository
-
getPublishFsFiles
public Boolean getPublishFsFiles()
True if the node shall publish files into the file system- Returns:
- true for publishing files into file system
-
setPublishFsFiles
public void setPublishFsFiles(Boolean publishFsFiles)
Set true for publishing files into the content repository- Parameters:
publishFsFiles
-
-
isPublishContentMap
public Boolean isPublishContentMap()
True if the node shall publish into a contentmap (if a contentrepository is assigned)- Returns:
- true for publishing into content repository
-
setPublishContentMap
public void setPublishContentMap(Boolean publishContentMap)
Set true for publishing into contentmap Calling this also automatically enables/disables publishing for the individual object types (pages, files).- Parameters:
publishContentMap
-
-
getPublishContentMapPages
public Boolean getPublishContentMapPages()
True if to publish pages to the content repository- Returns:
- True for publishing pages
-
setPublishContentMapPages
public void setPublishContentMapPages(Boolean publishContentMapPages)
Set whether to publish pages to the content repository- Parameters:
publishContentMapPages
-
-
getPublishContentMapFiles
public Boolean getPublishContentMapFiles()
True if to publish files to the content repository- Returns:
-
setPublishContentMapFiles
public void setPublishContentMapFiles(Boolean publishContentMapFiles)
Set whether to publish files to the content repository- Parameters:
publishContentMapFiles
-
-
getPublishContentMapFolders
public Boolean getPublishContentMapFolders()
True if to publish folders to the content repository- Returns:
-
setPublishContentMapFolders
public void setPublishContentMapFolders(Boolean publishContentMapFolders)
Set whether to publish folders to the content repository- Parameters:
publishContentMapFolders
-
-
getContentRepositoryId
public Integer getContentRepositoryId()
ID of the assigned contentrepository- Returns:
- contentrepository ID
-
setContentRepositoryId
public void setContentRepositoryId(Integer contentRepositoryId)
Set the contentrepository id- Parameters:
contentRepositoryId
-
-
isDisablePublish
public Boolean isDisablePublish()
True if publishing content modifications is disabled- Returns:
- true for disabling publish
-
setDisablePublish
public void setDisablePublish(Boolean disablePublish)
Set true for disabling publishing content modifications- Parameters:
disablePublish
-
-
getEditorVersion
public Integer getEditorVersion()
Editor to be used in the node Possible values are 0 for LiveEditor and 1 for Aloha editor.- Returns:
- editor
-
setEditorVersion
public void setEditorVersion(Integer editorVersion)
Set the editor Possible values are 0 for LiveEditor and 1 for Aloha editor.- Parameters:
editorVersion
-
-
getContentEditor
public Editor getContentEditor()
Editor to be used in the node. Note: This field is here for backward compatibility reasons, the preferred way to get the editor isgetEditorVersion()
.- Returns:
- Editor to be used in the node
- See Also:
getEditorVersion()
-
setContentEditor
public void setContentEditor(Editor contentEditor)
Set the editor. Note: This field is here for backward compatibility reasons, the preferred way to set the editor issetEditorVersion(java.lang.Integer)
.- Parameters:
contentEditor
- The editor to be used.- See Also:
setEditorVersion(Integer)
-
getDefaultFileFolderId
public Integer getDefaultFileFolderId()
Default File Upload Folder ID- Returns:
- default file folder ID
-
setDefaultFileFolderId
public void setDefaultFileFolderId(Integer defaultFileFolderId)
Set the default file folder id- Parameters:
defaultFileFolderId
-
-
getDefaultImageFolderId
public Integer getDefaultImageFolderId()
Default Image Upload Folder ID- Returns:
- default image folder ID
-
setDefaultImageFolderId
public void setDefaultImageFolderId(Integer defaultImageFolderId)
Set the default image folder ID- Parameters:
defaultImageFolderId
-
-
getMasterId
public Integer getMasterId()
The id of the master node if this is a channel.- Returns:
- The id of the master node if this is a channel,
null
otherwise.
-
setMasterId
public void setMasterId(Integer masterId)
Set the id of the master channel.- Parameters:
masterId
- Set to the id of the master channel if this is a channel, or tonull
if this is a normal node.
-
getInheritedFromId
public Integer getInheritedFromId()
Return id of the node or channel which inherits the node.- Returns:
-
setInheritedFromId
public void setInheritedFromId(Integer inheritedFromId)
Set the id of the node or channel which inherits the node.- Parameters:
inheritedFromId
-
-
getMasterNodeId
public Integer getMasterNodeId()
Return the id of the master node of the node. The id will point to the node itself if there is no specific master.- Returns:
-
setMasterNodeId
public void setMasterNodeId(Integer masterNodeId)
Set the id of the master node of the node.- Parameters:
masterNodeId
-
-
getUrlRenderWayPages
public Integer getUrlRenderWayPages()
How URLs are rendered for pages in this node- Returns:
- A value of UrlRenderWay
-
setUrlRenderWayPages
public void setUrlRenderWayPages(Integer value)
Set how URLs are rendered for pages in this node.- Parameters:
value
- A value of UrlRenderWay
-
getUrlRenderWayFiles
public Integer getUrlRenderWayFiles()
How URLs are rendered for files in this node- Returns:
- A value of UrlRenderWay
-
setUrlRenderWayFiles
public void setUrlRenderWayFiles(Integer value)
Set how URLs are rendered for pages in this node.- Parameters:
value
- A value of UrlRenderWay
-
getMeshPreviewUrl
public String getMeshPreviewUrl()
Preview URL of Mesh Portal- Returns:
- URL
-
setMeshPreviewUrl
public void setMeshPreviewUrl(String meshPreviewUrl)
Set the Mesh Preview URL- Parameters:
meshPreviewUrl
- URL
-
getInsecurePreviewUrl
public Boolean getInsecurePreviewUrl()
Whether insecure connections to the preview URL are allowed.- Returns:
true
when insecure connections to the preview URL are allowed
-
setInsecurePreviewUrl
public void setInsecurePreviewUrl(Boolean insecurePreviewUrl)
Set whether insecure connections to the preview URL are allowed.- Parameters:
insecurePreviewUrl
- Whether insecure connections to the preview URL are allowed
-
getMeshProject
public String getMeshProject()
Mesh Project, this node publishes into- Returns:
- mesh project
-
setMeshProject
public void setMeshProject(String meshProject)
Set the mesh project- Parameters:
meshProject
- mesh project
-
getOmitPageExtension
public Boolean getOmitPageExtension()
-
setOmitPageExtension
public void setOmitPageExtension(Boolean omitPageExtension)
-
getPageLanguageCode
public PageLanguageCode getPageLanguageCode()
-
setPageLanguageCode
public void setPageLanguageCode(PageLanguageCode pageLanguageCode)
-
getMasterName
public String getMasterName()
Get the name of the master node- Returns:
- master node name
-
setMasterName
public void setMasterName(String masterName)
Set the name of the master node- Parameters:
masterName
- name of the master node
-
getContentRepositoryName
public String getContentRepositoryName()
Get the name of the content repository- Returns:
- content repository name
-
setContentRepositoryName
public void setContentRepositoryName(String contentRepositoryName)
Set the name of the content repository- Parameters:
contentRepositoryName
- content repository name
-
-