Class ContentNodeItem
java.lang.Object
com.gentics.contentnode.rest.model.ContentNodeItem
- All Implemented Interfaces:
Serializable
ContentNodeItem which can be a Page, File, Image or Folder
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Types of items to be fetched with method -
Constructor Summary
ConstructorDescriptionDefault constructor needed by JAXBCreate an empty instance of an item -
Method Summary
Modifier and TypeMethodDescriptionint
getCdate()
Creation date of the itemCreator of the itemDeletion information, if object was deletedint
getEdate()
Last Edit Date of the itemLast 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 typevoid
setCdate
(int cdate) void
setCreator
(User creator) void
setDeleted
(DeleteInfo deleted) Set deletion infovoid
setEdate
(int edate) void
void
setFolderDeleted
(DeleteInfo folderDeleted) Set containing folder deletion info.void
setGlobalId
(String globalId) Set the global IDvoid
void
setMasterDeleted
(DeleteInfo masterDeleted) Set master deletion info.void
void
Set 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- Returns:
- the cdate
-
getEditor
Last editor of the item- Returns:
- the editor
-
getEdate
public int getEdate()Last Edit Date of the item- 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:
masterDeleted
- deletion info
-