All Implemented Interfaces:
Serializable

public class Node extends ContentNodeItem implements Serializable
REST Model for a Node
See Also:
  • Constructor Details

    • Node

      public Node()
      Create empty instance
  • Method Details

    • 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
    • setPublishImageVariants

      public void setPublishImageVariants(Boolean publishImageVariants)
      Set image variants should be created on page/object property publish
      Parameters:
      publishImageVariants -
    • isPublishImageVariants

      public Boolean isPublishImageVariants()
      True if image variants should be created on page/object property publish
      Returns:
    • 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
    • getHostProperty

      public String getHostProperty()
      Property containing the hostname. This can be set to a system property or environment variable in the format ${sys:property} or ${env:variable}.
      Returns:
      hostname property
    • setHostProperty

      public void setHostProperty(String hostProperty)
      Set the hostname property
      Parameters:
      hostProperty - hostname property
    • 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 is getEditorVersion().
      Returns:
      Editor to be used in the node
      See Also:
    • 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 is setEditorVersion(java.lang.Integer).
      Parameters:
      contentEditor - The editor to be used.
      See Also:
    • 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 -
    • getLanguagesId

      public List<Integer> getLanguagesId()
    • setLanguagesId

      public void setLanguagesId(List<Integer> languagesId)
    • 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 to null 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
    • getMeshPreviewUrlProperty

      public String getMeshPreviewUrlProperty()
      Property containing the preview URL. This can be set to a system property or environment variable in the format ${sys:property} or ${env:variable}.
      Returns:
      URL
    • setMeshPreviewUrlProperty

      public void setMeshPreviewUrlProperty(String meshPreviewUrlProperty)
      Set the mesh preview URL property
      Parameters:
      meshPreviewUrlProperty -
    • 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