Class ContentNodeItem
- java.lang.Object
-
- com.gentics.contentnode.rest.model.ContentNodeItem
-
- All Implemented Interfaces:
Serializable
public abstract class ContentNodeItem extends Object implements Serializable
ContentNodeItem which can be a Page, File, Image or Folder- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ContentNodeItem.ItemType
Types of items to be fetched with method
-
Constructor Summary
Constructors Constructor Description ContentNodeItem()
Default constructor needed by JAXBContentNodeItem(ContentNodeItem.ItemType type)
Create an empty instance of an item
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCdate()
Creation date of the itemUser
getCreator()
Creator of the itemDeleteInfo
getDeleted()
Deletion information, if object was deletedint
getEdate()
Last Edit Date of the itemUser
getEditor()
Last editor of the itemDeleteInfo
getFolderDeleted()
Deletion information about the containing folder.String
getGlobalId()
Global ID of the itemInteger
getId()
ID of the itemDeleteInfo
getMasterDeleted()
Deletion information about the master (if the object is not a master itself).String
getName()
Name of the itemContentNodeItem.ItemType
getType()
Item typevoid
setCdate(int cdate)
void
setCreator(User creator)
void
setDeleted(DeleteInfo deleted)
Set deletion infovoid
setEdate(int edate)
void
setEditor(User editor)
void
setFolderDeleted(DeleteInfo folderDeleted)
Set containing folder deletion info.void
setGlobalId(String globalId)
Set the global IDvoid
setId(Integer id)
void
setMasterDeleted(DeleteInfo masterDeleted)
Set master deletion info.void
setName(String name)
void
setType(ContentNodeItem.ItemType type)
Set the item type
-
-
-
Constructor Detail
-
ContentNodeItem
public ContentNodeItem()
Default constructor needed by JAXB
-
ContentNodeItem
public ContentNodeItem(ContentNodeItem.ItemType type)
Create an empty instance of an item
-
-
Method Detail
-
getId
public Integer getId()
ID of the item- Returns:
- the id
-
getGlobalId
public String getGlobalId()
Global ID of the item- Returns:
- the global ID
-
getName
public String getName()
Name of the item- Returns:
- the name
-
getCreator
public User getCreator()
Creator of the item- Returns:
- the creator
-
getCdate
public int getCdate()
Creation date of the item- Returns:
- the cdate
-
getEditor
public User getEditor()
Last editor of the item- Returns:
- the editor
-
getEdate
public int getEdate()
Last Edit Date of the item- Returns:
- the edate
-
getType
public ContentNodeItem.ItemType getType()
Item type- Returns:
- item type
-
setId
public void setId(Integer id)
- Parameters:
id
- the id to set
-
setGlobalId
public void setGlobalId(String globalId)
Set the global ID- Parameters:
globalId
- global ID
-
setName
public void setName(String name)
- Parameters:
name
- the name to set
-
setCreator
public void setCreator(User creator)
- Parameters:
creator
- the creator to set
-
setCdate
public void setCdate(int cdate)
- Parameters:
cdate
- the cdate to set
-
setEditor
public void setEditor(User editor)
- Parameters:
editor
- the editor to set
-
setEdate
public void setEdate(int edate)
- Parameters:
edate
- the edate to set
-
setType
public void setType(ContentNodeItem.ItemType type)
Set the item type- Parameters:
type
- item type
-
getDeleted
public DeleteInfo getDeleted()
Deletion information, if object was deleted- Returns:
- deletion info
-
setDeleted
public void setDeleted(DeleteInfo deleted)
Set deletion info- Parameters:
deleted
- deletion info
-
getMasterDeleted
public DeleteInfo getMasterDeleted()
Deletion information about the master (if the object is not a master itself).- Returns:
- deletion info.
-
setMasterDeleted
public void setMasterDeleted(DeleteInfo masterDeleted)
Set master deletion info.- Parameters:
masterDeleted
- deletion info
-
getFolderDeleted
public DeleteInfo getFolderDeleted()
Deletion information about the containing folder.- Returns:
- deletion info.
-
setFolderDeleted
public void setFolderDeleted(DeleteInfo folderDeleted)
Set containing folder deletion info.- Parameters:
masterDeleted
- deletion info
-
-