Class ContentNodeItem
java.lang.Object
com.gentics.contentnode.rest.model.ContentNodeItem
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
File,Folder,Node,PublishableContentItem
ContentNodeItem which can be a Page, File, Image or Folder
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumTypes of items to be fetched with method -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor needed by JAXBCreate an empty instance of an item -
Method Summary
Modifier and TypeMethodDescriptionintgetCdate()Creation date of the item as unix timestampCreator of the itemDeletion information, if object was deletedintgetEdate()Last Edit Date of the item as unix timestampLast editor of the itemDeletion information about the containing folder.Global ID of the itemgetId()ID of the itemDeletion information about the master (if the object is not a master itself).getName()Name of the itemgetType()Item typevoidsetCdate(int cdate) voidsetCreator(User creator) voidsetDeleted(DeleteInfo deleted) Set deletion infovoidsetEdate(int edate) voidvoidsetFolderDeleted(DeleteInfo folderDeleted) Set containing folder deletion info.voidsetGlobalId(String globalId) Set the global IDvoidvoidsetMasterDeleted(DeleteInfo masterDeleted) Set master deletion info.voidvoidSet the item type
-
Constructor Details
-
ContentNodeItem
public ContentNodeItem()Default constructor needed by JAXB -
ContentNodeItem
Create an empty instance of an item
-
-
Method Details
-
getId
ID of the item- Returns:
- the id
-
getGlobalId
Global ID of the item- Returns:
- the global ID
-
getName
Name of the item- Returns:
- the name
-
getCreator
Creator of the item- Returns:
- the creator
-
getCdate
public int getCdate()Creation date of the item as unix timestamp- Returns:
- the cdate
-
getEditor
Last editor of the item- Returns:
- the editor
-
getEdate
public int getEdate()Last Edit Date of the item as unix timestamp- Returns:
- the edate
-
getType
Item type- Returns:
- item type
-
setId
- Parameters:
id- the id to set
-
setGlobalId
Set the global ID- Parameters:
globalId- global ID
-
setName
- Parameters:
name- the name to set
-
setCreator
- Parameters:
creator- the creator to set
-
setCdate
public void setCdate(int cdate) - Parameters:
cdate- the cdate to set
-
setEditor
- Parameters:
editor- the editor to set
-
setEdate
public void setEdate(int edate) - Parameters:
edate- the edate to set
-
setType
Set the item type- Parameters:
type- item type
-
getDeleted
Deletion information, if object was deleted- Returns:
- deletion info
-
setDeleted
Set deletion info- Parameters:
deleted- deletion info
-
getMasterDeleted
Deletion information about the master (if the object is not a master itself).- Returns:
- deletion info.
-
setMasterDeleted
Set master deletion info.- Parameters:
masterDeleted- deletion info
-
getFolderDeleted
Deletion information about the containing folder.- Returns:
- deletion info.
-
setFolderDeleted
Set containing folder deletion info.- Parameters:
folderDeleted- deletion info
-