Package 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
,RelationEntity
,SchedulerClusteredJob
,SchedulerRunDetails
,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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Since 5.2.Deprecated.Since 5.2.static Class
getRealClass
(Object ceo) Get the real class of a content entity object.boolean
This object is persistent if the id is not 0.void
setCreator
(ConfluenceUser creator) void
setCreatorName
(String creatorName) Deprecated.since 5.2.void
setLastModifier
(ConfluenceUser lastModifier) void
setLastModifierName
(String lastModifierName) Deprecated.since 5.2.Methods inherited from class com.atlassian.core.bean.EntityObject
clone, equals, getCreationDate, getCurrentDate, getId, getLastModificationDate, hashCode, setClock, setCreationDate, setId, setLastModificationDate
-
Constructor Details
-
ConfluenceEntityObject
public ConfluenceEntityObject()
-
-
Method Details
-
getCreatorName
Deprecated.Since 5.2. Seeinstead
. 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
- Since:
- 5.2
-
setCreatorName
Deprecated.since 5.2. UsesetCreator(ConfluenceUser)
instead.Set the username of the creator- Parameters:
creatorName
-- Throws:
IllegalArgumentException
- if the username supplied does not identify a known user in the system.
-
getLastModifierName
Deprecated.Since 5.2. Seeinstead
. 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
- Since:
- 5.2
-
setLastModifierName
Deprecated.since 5.2. CallsetLastModifier(ConfluenceUser)
instead- Parameters:
lastModifierName
-- Throws:
IllegalArgumentException
- if the username supplied does not identify a known user in the system.
-
setCreator
- Since:
- 5.2
-
setLastModifier
- 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
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
-