com.atlassian.confluence.core
Class ConfluenceEntityObject
java.lang.Object
com.atlassian.core.bean.EntityObject
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
Methods inherited from class com.atlassian.core.bean.EntityObject |
clone, equals, getCreationDate, getCurrentDate, getId, getLastModificationDate, hashCode, setClock, setCreationDate, setId, setLastModificationDate |
ConfluenceEntityObject
public ConfluenceEntityObject()
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-2013 Atlassian. All Rights Reserved.