com.atlassian.confluence.core
Class ConfluenceEntityObject

java.lang.Object
  extended by com.atlassian.core.bean.EntityObject
      extended by com.atlassian.confluence.core.ConfluenceEntityObject
All Implemented Interfaces:
Serializable, Cloneable
Direct Known Subclasses:
AbstractLink, AbstractVersionedEntityObject, ContentPermission, Notification, Space, SpaceGroup, SpacePermission

public class ConfluenceEntityObject
extends com.atlassian.core.bean.EntityObject
implements Serializable

The superclass of all entity objects within Confluence.

It provides an ID as well as creator/modifier username and date fields.

See Also:
Serialized Form

Constructor Summary
ConfluenceEntityObject()
           
 
Method Summary
 String getCreatorName()
           
 String getLastModifierName()
           
static Class getRealClass(Object ceo)
          Get the real class of a content entity object.
 boolean isPersistent()
          This object is persistent if the id is not 0.
 void setCreatorName(String creatorName)
           
 void setLastModifierName(String lastModifierName)
           
 
Methods inherited from class com.atlassian.core.bean.EntityObject
clone, equals, getCreationDate, getCurrentDate, getId, getLastModificationDate, hashCode, setClock, setCreationDate, setId, setLastModificationDate
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfluenceEntityObject

public ConfluenceEntityObject()
Method Detail

getCreatorName

public String getCreatorName()
Returns:
username of the creator, or null if created anonymously

setCreatorName

public void setCreatorName(String creatorName)

getLastModifierName

public String getLastModifierName()

setLastModifierName

public void setLastModifierName(String lastModifierName)

isPersistent

public boolean isPersistent()
This object is persistent if the id is not 0.

Returns:
true if this instance is a persisted label.

getRealClass

public static Class getRealClass(Object ceo)
Get the real class of a content entity object. This is necessary as the object may be wrapped by a hibernate proxy.

Parameters:
ceo - Content entity object
Returns:
Underlying class of the ceo


Copyright © 2003-2012 Atlassian. All Rights Reserved.