com.atlassian.confluence.user
Class PersonalInformation

java.lang.Object
  extended bycom.atlassian.core.bean.EntityObject
      extended bycom.atlassian.confluence.core.ConfluenceEntityObject
          extended bycom.atlassian.confluence.core.AbstractVersionedEntityObject
              extended bycom.atlassian.confluence.core.ContentEntityObject
                  extended bycom.atlassian.confluence.user.PersonalInformation
All Implemented Interfaces:
Addressable, Cloneable, Comparable, Labelable, Searchable, Serializable, Versioned

public class PersonalInformation
extends ContentEntityObject

See Also:
Serialized Form

Field Summary
static String CONTENT_TYPE
           
protected static org.apache.log4j.Category log
           
 
Fields inherited from class com.atlassian.confluence.core.ContentEntityObject
CREATED, CURRENT, DELETED, MODIFIED
 
Constructor Summary
PersonalInformation()
           
PersonalInformation(User user, UserAccessor userAccessor)
           
 
Method Summary
 boolean equals(Object o)
           
 String getAttachmentsUrlPath()
           
 List getBodyContents()
           
 String getEmail()
           
 String getFullName()
           
 String getHasPersonalSpace()
           
protected  org.apache.log4j.Category getLog()
           
 String getNameForComparison()
          Subclasses should implement this method, giving a String back so that the content can be alphabetically sorted in a mixed-type list of content-entities.
 String getRealTitle()
           
 String getType()
          An easy name for the type of this content: makes it easy for things like the #contentLink macro to work out what to draw.
 String getUrlPath()
           
 String getUsername()
           
 int hashCode()
           
 boolean isIndexable()
          Content entity objects that are historical versions should not be indexed.
 void setEmail(String email)
           
 void setFullName(String fullName)
           
 void setUsername(String username)
           
 String toString()
          Override this method so we don't call getFullName() everytime toString is called on the object!
 
Methods inherited from class com.atlassian.confluence.core.ContentEntityObject
addAttachment, addLabelling, addOutgoingLink, addPermission, addReferralLink, addTrackbackLink, clone, compareTo, convertToHistoricalVersion, getAttachmentNamed, getAttachments, getContent, getContentPermission, getContentPermissionSet, getContentStatus, getExcerpt, getGlobalLabels, getIdAsString, getLabelCount, getLabellings, getLabels, getLabelsForDisplay, getLabelUtil, getLatestVersionsOfAttachments, getOutgoingLinks, getPermissions, getPersonalLabels, getReferralLinks, getRenderedVersionComment, getSearchableDependants, getTitle, getTrackbackLinks, getUserAccessor, getVersionComment, getVisibleLabels, hasPermissions, isCurrent, isDeleted, isFavourite, isRecentlyUpdatedFor, isVersionCommentAvailable, removeAttachment, removeContentPermissionSet, removeLabelling, removeOutgoingLink, removeReferralLink, removeTrackbackLink, setAttachments, setBodyContents, setContent, setContentStatus, setOutgoingLinks, setReferralLinks, setTitle, setTrackbackLinks, setUserAccessor, setVersionComment, toPageContext, trash
 
Methods inherited from class com.atlassian.confluence.core.AbstractVersionedEntityObject
getLatestVersion, getOriginalVersion, getVersion, isLatestVersion, isNew, setOriginalVersion, setVersion
 
Methods inherited from class com.atlassian.confluence.core.ConfluenceEntityObject
getCreatorName, getLastModifierName, isPersistent, setCreatorName, setLastModifierName
 
Methods inherited from class com.atlassian.core.bean.EntityObject
getCreationDate, getCurrentDate, getId, getLastModificationDate, setClock, setCreationDate, setId, setLastModificationDate
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.atlassian.bonnie.Searchable
getId
 
Methods inherited from interface com.atlassian.confluence.core.Addressable
getId
 

Field Detail

log

protected static org.apache.log4j.Category log

CONTENT_TYPE

public static final String CONTENT_TYPE
See Also:
Constant Field Values
Constructor Detail

PersonalInformation

public PersonalInformation()

PersonalInformation

public PersonalInformation(User user,
                           UserAccessor userAccessor)
Method Detail

toString

public String toString()
Override this method so we don't call getFullName() everytime toString is called on the object!

Overrides:
toString in class ContentEntityObject
Returns:

getRealTitle

public String getRealTitle()
Specified by:
getRealTitle in interface Addressable
Overrides:
getRealTitle in class ContentEntityObject

getUrlPath

public String getUrlPath()
Specified by:
getUrlPath in interface Addressable
Specified by:
getUrlPath in class ContentEntityObject

getUsername

public String getUsername()

setUsername

public void setUsername(String username)

getBodyContents

public List getBodyContents()
Overrides:
getBodyContents in class ContentEntityObject

getFullName

public String getFullName()

setFullName

public void setFullName(String fullName)

getEmail

public String getEmail()

setEmail

public void setEmail(String email)

getType

public String getType()
Description copied from class: ContentEntityObject
An easy name for the type of this content: makes it easy for things like the #contentLink macro to work out what to draw.

This is a bit of a hack, but it saves heaps of code elsewhere, especially since we tend to get back these objects wrapped in all sorts of Hibernate CGLIB stuff.

Specified by:
getType in interface Addressable
Specified by:
getType in class ContentEntityObject

hashCode

public int hashCode()
Overrides:
hashCode in class ContentEntityObject

equals

public boolean equals(Object o)
Overrides:
equals in class ContentEntityObject

getNameForComparison

public String getNameForComparison()
Description copied from class: ContentEntityObject
Subclasses should implement this method, giving a String back so that the content can be alphabetically sorted in a mixed-type list of content-entities.

Specified by:
getNameForComparison in class ContentEntityObject

isIndexable

public boolean isIndexable()
Description copied from class: ContentEntityObject
Content entity objects that are historical versions should not be indexed.

Specified by:
isIndexable in interface Searchable
Overrides:
isIndexable in class ContentEntityObject

getAttachmentsUrlPath

public String getAttachmentsUrlPath()
Overrides:
getAttachmentsUrlPath in class ContentEntityObject

getLog

protected org.apache.log4j.Category getLog()
Specified by:
getLog in class ContentEntityObject
Returns:
The category to log for this class

getHasPersonalSpace

public String getHasPersonalSpace()


Confluence is developed by Atlassian.