com.gentics.contentnode.rest.model
Class ContentNodeItem

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

public abstract class ContentNodeItem
extends java.lang.Object
implements java.io.Serializable

ContentNodeItem which can be a Page, File, Image or Folder

See Also:
Serialized Form

Nested Class Summary
static class ContentNodeItem.ItemType
          Types of items to be fetched with method
 
Constructor Summary
ContentNodeItem()
          Default constructor needed by JAXB
ContentNodeItem(ContentNodeItem.ItemType type)
          Create an empty instance of an item
 
Method Summary
 int getCdate()
          Creation date of the item
 User getCreator()
          Creator of the item
 int getEdate()
          Last Edit Date of the item
 User getEditor()
          Last editor of the item
 java.lang.Integer getId()
          ID of the item
 java.lang.String getName()
          Name of the item
 ContentNodeItem.ItemType getType()
          Item type
 void setCdate(int cdate)
           
 void setCreator(User creator)
           
 void setEdate(int edate)
           
 void setEditor(User editor)
           
 void setId(java.lang.Integer id)
           
 void setName(java.lang.String name)
           
 void setType(ContentNodeItem.ItemType type)
          Set the item type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 java.lang.Integer getId()
ID of the item

Returns:
the id

getName

public java.lang.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(java.lang.Integer id)
Parameters:
id - the id to set

setName

public void setName(java.lang.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


Copyright © 2015 Gentics Software GmbH. All Rights Reserved.