Class ContentNodeItem

java.lang.Object
com.gentics.contentnode.rest.model.ContentNodeItem
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
File, Folder, Node, Page

public abstract class ContentNodeItem extends Object implements Serializable
ContentNodeItem which can be a Page, File, Image or Folder
See Also:
  • Constructor Details

    • ContentNodeItem

      public ContentNodeItem()
      Default constructor needed by JAXB
    • ContentNodeItem

      public ContentNodeItem(ContentNodeItem.ItemType type)
      Create an empty instance of an item
  • Method Details

    • 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