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:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description ConfluenceEntityObject()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ConfluenceUsergetCreator()StringgetCreatorName()Deprecated.Since 5.2.ConfluenceUsergetLastModifier()StringgetLastModifierName()Deprecated.Since 5.2.static ClassgetRealClass(Object ceo)Get the real class of a content entity object.booleanisPersistent()This object is persistent if the id is not 0.voidsetCreator(ConfluenceUser creator)voidsetCreatorName(String creatorName)Deprecated.since 5.2.voidsetLastModifier(ConfluenceUser lastModifier)voidsetLastModifierName(String lastModifierName)Deprecated.since 5.2.
 
- 
- 
- 
Method Detail- 
getCreatorNamepublic String 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
 
 - 
getCreatorpublic ConfluenceUser getCreator() - Since:
- 5.2
 
 - 
setCreatorName@Deprecated public void setCreatorName(String creatorName) 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.
 
 - 
getLastModifierNamepublic String 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.
 
 - 
getLastModifierpublic ConfluenceUser getLastModifier() - Since:
- 5.2
 
 - 
setLastModifierName@Deprecated public void setLastModifierName(String lastModifierName) Deprecated.since 5.2. CallsetLastModifier(ConfluenceUser)instead- Parameters:
- lastModifierName-
- Throws:
- IllegalArgumentException- if the username supplied does not identify a known user in the system.
 
 - 
setCreatorpublic void setCreator(ConfluenceUser creator) - Since:
- 5.2
 
 - 
setLastModifierpublic void setLastModifier(ConfluenceUser lastModifier) - Since:
- 5.2
 
 - 
isPersistentpublic boolean isPersistent() This object is persistent if the id is not 0.- Returns:
- true if this instance is a persisted label.
 
 
- 
 
-