Class ConfluenceEntityObject

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

public class ConfluenceEntityObject extends AnnotatedEntityObject 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:
  • Constructor Details

    • ConfluenceEntityObject

      public ConfluenceEntityObject()
  • Method Details

    • getCreatorName

      public String getCreatorName()
      Deprecated.
      Since 5.2. See instead. If you need a username you would retrieve it by id from the UserAccessor.
      Returns:
      username of the creator, or null if created anonymously
    • getCreator

      public ConfluenceUser getCreator()
      Since:
      5.2
    • getLastModifierName

      public String getLastModifierName()
      Deprecated.
      Since 5.2. See instead. If you need a username you would retrieve it by id from the UserAccessor.
      Returns:
      username of the last modifier, or null if none.
    • getLastModifier

      public ConfluenceUser getLastModifier()
      Since:
      5.2
    • setCreator

      public void setCreator(ConfluenceUser creator)
      Since:
      5.2
    • setLastModifier

      public void setLastModifier(ConfluenceUser lastModifier)
      Since:
      5.2
    • 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