com.gentics.contentnode.rest.model
Class Node

java.lang.Object
  extended by com.gentics.contentnode.rest.model.ContentNodeItem
      extended by 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
Node()
          Create empty instance
 
Method Summary
 String getBinaryPublishDir()
          Get the publish directory for binaries
 Editor getContentEditor()
          Editor to be used in the node
 Integer getContentRepositoryId()
          ID of the assigned contentrepository
 Integer getDefaultFileFolderId()
          Default File Upload Folder ID
 Integer getDefaultImageFolderId()
          Default Image Upload Folder ID
 int getFolderId()
          ID of the root folder
 String getHost()
          Hostname for publishing into the Filesystem
 String getPublishDir()
          Publish directory
 boolean isDisablePublish()
          True if publishing content modifications is disabled
 boolean isHttps()
          True if secure https is enabled for this node
 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 filesystem
 boolean isUtf8()
          True if the node content should be encoded in UTF8
 void setBinaryPublishDir(String binaryPublishDir)
          Set the publish directory for binaries
 void setContentEditor(Editor contentEditor)
          Set the editor
 void setContentRepositoryId(Integer contentRepositoryId)
          Set the contentrepository id
 void setDefaultFileFolderId(Integer defaultFileFolderId)
          Set the default file folder id
 void setDefaultImageFolderId(Integer defaultImageFolderId)
          Set the default image folder ID
 void setDisablePublish(boolean disablePublish)
          Set true for disabling publishing content modifications
 void setFolderId(int folderId)
          Set the root folder id
 void setHost(String host)
          Set the hostname
 void setHttps(boolean https)
          Set whether secure https is enabled for the node
 void setPublishContentMap(boolean publishContentMap)
          Set true for publishing into contentmap
 void setPublishDir(String publishDir)
          Set the publish directory
 void setPublishFs(boolean publishFs)
          Set true for publishing into the filesystem
 void setUtf8(boolean utf8)
          Set whether the node should be encoded in UTF8
 
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
 

Constructor Detail

Node

public Node()
Create empty instance

Method Detail

getFolderId

public int getFolderId()
ID of the root folder

Returns:
root folder ID

setFolderId

public void setFolderId(int 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:
pubDir - 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

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

public boolean isUtf8()
True if the node content should be encoded in UTF8

Returns:
true for UTF8

setUtf8

public void setUtf8(boolean utf8)
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

Parameters:
publishFs -

isPublishContentMap

public boolean isPublishContentMap()
True if the node shall publish into a contentmap (if a contentrepository is assigned)

Returns:
true for publishing into contentrepository

setPublishContentMap

public void setPublishContentMap(boolean publishContentMap)
Set true for publishing into contentmap

Parameters:
publishContentMap -

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 -

getContentEditor

public Editor getContentEditor()
Editor to be used in the node

Returns:
editor

setContentEditor

public void setContentEditor(Editor contentEditor)
Set the editor

Parameters:
contentEditor -

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 -


Copyright © 2013 Gentics Software GmbH. All Rights Reserved.