Class Node
java.lang.Object
com.gentics.contentnode.rest.model.ContentNodeItem
com.gentics.contentnode.rest.model.Node
- All Implemented Interfaces:
Serializable
REST Model for a Node
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.gentics.contentnode.rest.model.ContentNodeItem
ContentNodeItem.ItemType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the publish directory for binariesEditor to be used in the node.ID of the assigned contentrepositoryGet the name of the content repositoryDefault File Upload Folder IDDefault Image Upload Folder IDEditor to be used in the node Possible values are 0 for LiveEditor and 1 for Aloha editor.ID of the root foldergetHost()
Hostname for publishing into the FilesystemProperty containing the hostname.Return id of the node or channel which inherits the node.Whether insecure connections to the preview URL are allowed.The id of the master node if this is a channel.Get the name of the master nodeReturn the id of the master node of the node.Preview URL of Mesh Portal.Property containing the preview URL.Mesh Project, this node publishes intoTrue if to publish files to the content repositoryTrue if to publish folders to the content repositoryTrue if to publish pages to the content repositoryPublish directoryTrue if the node shall publish files into the file systemTrue if the node shall publish pages into the file systemHow URLs are rendered for files in this nodeHow URLs are rendered for pages in this nodeTrue if publishing content modifications is disabledisHttps()
True if secure https is enabled for this nodeTrue if the publish directories are created from segments defined for the folders.True if the node shall publish into a contentmap (if a contentrepository is assigned)True if the node shall publish into the filesystemTrue if image variants should be created on page/object property publishisUtf8()
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
Set the hostnamevoid
setHostProperty
(String hostProperty) Set the hostname propertyvoid
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
setMeshPreviewUrlProperty
(String meshPreviewUrlProperty) Set the mesh preview URL propertyvoid
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
setPublishImageVariants
(Boolean publishImageVariants) Set image variants should be created on page/object property publishvoid
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
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
-
Constructor Details
-
Node
public Node()Create empty instance
-
-
Method Details
-
getFolderId
ID of the root folder- Returns:
- root folder ID
-
setFolderId
Set the root folder id- Parameters:
folderId
- ID of the root folder
-
getPublishDir
Publish directory- Returns:
- publish directory
-
setPublishDir
Set the publish directory- Parameters:
publishDir
- publish directory
-
getBinaryPublishDir
Get the publish directory for binaries- Returns:
- publish directory for binaries
-
setBinaryPublishDir
Set the publish directory for binaries- Parameters:
binaryPublishDir
- publish directory for binaries
-
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
Set flag for publish directory segments- Parameters:
pubDirSegment
- flag
-
isHttps
True if secure https is enabled for this node- Returns:
- true for secure https
-
setPublishImageVariants
Set image variants should be created on page/object property publish- Parameters:
publishImageVariants
-
-
isPublishImageVariants
True if image variants should be created on page/object property publish- Returns:
-
setHttps
Set whether secure https is enabled for the node- Parameters:
https
-
-
getHost
Hostname for publishing into the Filesystem- Returns:
- hostname
-
setHost
Set the hostname- Parameters:
host
- hostname
-
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
Set the hostname property- Parameters:
hostProperty
- hostname property
-
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.Set whether the node should be encoded in UTF8- Parameters:
utf8
-
-
isPublishFs
True if the node shall publish into the filesystem- Returns:
- true for publishing into filesystem
-
setPublishFs
Set true for publishing into the filesystem Calling this also automatically enables/disables publishing for the individual object types (pages, files).- Parameters:
publishFs
-
-
getPublishFsPages
True if the node shall publish pages into the file system- Returns:
- true for publishing pages into file system
-
setPublishFsPages
Set true for publishing pages into the content repository- Parameters:
publishFsPages
- Set to true for publishing pages into the content repository
-
getPublishFsFiles
True if the node shall publish files into the file system- Returns:
- true for publishing files into file system
-
setPublishFsFiles
Set true for publishing files into the content repository- Parameters:
publishFsFiles
-
-
isPublishContentMap
True if the node shall publish into a contentmap (if a contentrepository is assigned)- Returns:
- true for publishing into content repository
-
setPublishContentMap
Set true for publishing into contentmap Calling this also automatically enables/disables publishing for the individual object types (pages, files).- Parameters:
publishContentMap
-
-
getPublishContentMapPages
True if to publish pages to the content repository- Returns:
- True for publishing pages
-
setPublishContentMapPages
Set whether to publish pages to the content repository- Parameters:
publishContentMapPages
-
-
getPublishContentMapFiles
True if to publish files to the content repository- Returns:
-
setPublishContentMapFiles
Set whether to publish files to the content repository- Parameters:
publishContentMapFiles
-
-
getPublishContentMapFolders
True if to publish folders to the content repository- Returns:
-
setPublishContentMapFolders
Set whether to publish folders to the content repository- Parameters:
publishContentMapFolders
-
-
getContentRepositoryId
ID of the assigned contentrepository- Returns:
- contentrepository ID
-
setContentRepositoryId
Set the contentrepository id- Parameters:
contentRepositoryId
-
-
isDisablePublish
True if publishing content modifications is disabled- Returns:
- true for disabling publish
-
setDisablePublish
Set true for disabling publishing content modifications- Parameters:
disablePublish
-
-
getEditorVersion
Editor to be used in the node Possible values are 0 for LiveEditor and 1 for Aloha editor.- Returns:
- editor
-
setEditorVersion
Set the editor Possible values are 0 for LiveEditor and 1 for Aloha editor.- Parameters:
editorVersion
-
-
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:
-
setContentEditor
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:
-
getDefaultFileFolderId
Default File Upload Folder ID- Returns:
- default file folder ID
-
setDefaultFileFolderId
Set the default file folder id- Parameters:
defaultFileFolderId
-
-
getDefaultImageFolderId
Default Image Upload Folder ID- Returns:
- default image folder ID
-
setDefaultImageFolderId
Set the default image folder ID- Parameters:
defaultImageFolderId
-
-
getLanguagesId
-
setLanguagesId
-
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
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
Return id of the node or channel which inherits the node.- Returns:
-
setInheritedFromId
Set the id of the node or channel which inherits the node.- Parameters:
inheritedFromId
-
-
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
Set the id of the master node of the node.- Parameters:
masterNodeId
-
-
getUrlRenderWayPages
How URLs are rendered for pages in this node- Returns:
- A value of UrlRenderWay
-
setUrlRenderWayPages
Set how URLs are rendered for pages in this node.- Parameters:
value
- A value of UrlRenderWay
-
getUrlRenderWayFiles
How URLs are rendered for files in this node- Returns:
- A value of UrlRenderWay
-
setUrlRenderWayFiles
Set how URLs are rendered for pages in this node.- Parameters:
value
- A value of UrlRenderWay
-
getMeshPreviewUrl
Preview URL of Mesh Portal.- Returns:
- URL
-
setMeshPreviewUrl
Set the Mesh Preview URL- Parameters:
meshPreviewUrl
- URL
-
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
Set the mesh preview URL property- Parameters:
meshPreviewUrlProperty
-
-
getInsecurePreviewUrl
Whether insecure connections to the preview URL are allowed.- Returns:
true
when insecure connections to the preview URL are allowed
-
setInsecurePreviewUrl
Set whether insecure connections to the preview URL are allowed.- Parameters:
insecurePreviewUrl
- Whether insecure connections to the preview URL are allowed
-
getMeshProject
Mesh Project, this node publishes into- Returns:
- mesh project
-
setMeshProject
Set the mesh project- Parameters:
meshProject
- mesh project
-
getOmitPageExtension
-
setOmitPageExtension
-
getPageLanguageCode
-
setPageLanguageCode
-
getMasterName
Get the name of the master node- Returns:
- master node name
-
setMasterName
Set the name of the master node- Parameters:
masterName
- name of the master node
-
getContentRepositoryName
Get the name of the content repository- Returns:
- content repository name
-
setContentRepositoryName
Set the name of the content repository- Parameters:
contentRepositoryName
- content repository name
-