|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.core.bean.EntityObject com.atlassian.confluence.core.ConfluenceEntityObject com.atlassian.confluence.core.AbstractVersionedEntityObject com.atlassian.confluence.core.AbstractLabelableEntityObject com.atlassian.confluence.core.ContentEntityObject com.atlassian.confluence.user.PersonalInformation
public class PersonalInformation
Field Summary | |
---|---|
static java.lang.String |
CONTENT_TYPE
|
Fields inherited from class com.atlassian.confluence.core.ContentEntityObject |
---|
CREATED, CURRENT, DELETED, MODIFIED |
Fields inherited from class com.atlassian.confluence.core.AbstractVersionedEntityObject |
---|
INITIAL_VERSION |
Constructor Summary | |
---|---|
PersonalInformation()
|
|
PersonalInformation(ConfluenceUser user,
java.lang.String personalInformation)
|
|
PersonalInformation(com.atlassian.user.User user,
UserAccessor userAccessor)
Deprecated. since Confluence 5.2. |
Method Summary | |
---|---|
boolean |
belongsTo(com.atlassian.user.User user)
Returns true if this object belongs to the specified user. |
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getAttachmentUrlPath(Attachment attachment)
Gets the path relative to Confluence's base URL to view the given attachment in the context of this content (for example, highlighted in the content's list of attachments). |
java.util.List<BodyContent> |
getBodyContents()
|
ContentEntityObject |
getContentEntityObject()
|
BodyType |
getDefaultBodyType()
|
java.lang.String |
getDisplayTitle()
Returns the display title. |
java.lang.String |
getEmail()
|
java.lang.String |
getFullName()
|
java.lang.String |
getHasPersonalSpace()
|
java.lang.String |
getLinkWikiMarkup()
|
java.lang.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. |
java.lang.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. |
java.lang.String |
getUrlPath()
|
ConfluenceUser |
getUser()
|
java.lang.String |
getUsername()
|
int |
hashCode()
|
void |
setEmail(java.lang.String email)
Deprecated. since 5.2 |
void |
setFullName(java.lang.String fullName)
Deprecated. since 5.2. |
void |
setUser(ConfluenceUser user)
|
void |
setUsername(java.lang.String username)
Deprecated. Since 5.2. Use setUser(ConfluenceUser) instead. |
java.lang.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.AbstractLabelableEntityObject |
---|
addLabelling, getGlobalLabels, getLabelCount, getLabellings, getLabels, getLabelsForDisplay, getLabelUtil, getPersonalLabels, getTeamLabels, getVisibleLabels, isFavourite, isFavourite, removeLabelling, setLabellings |
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 |
---|
getCreator, getCreatorName, getLastModifier, getLastModifierName, getRealClass, isPersistent, setCreator, setCreatorName, setLastModifier, 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 |
Methods inherited from interface com.atlassian.confluence.labels.EditableLabelable |
---|
getId, isPersistent |
Field Detail |
---|
public static final java.lang.String CONTENT_TYPE
Constructor Detail |
---|
public PersonalInformation()
@Deprecated public PersonalInformation(com.atlassian.user.User user, UserAccessor userAccessor)
user
- userAccessor
- PersonalInformation(ConfluenceUser, String)
public PersonalInformation(ConfluenceUser user, java.lang.String personalInformation)
Method Detail |
---|
public ContentEntityObject getContentEntityObject()
public java.lang.String toString()
toString
in class ContentEntityObject
public java.lang.String getDisplayTitle()
ContentEntityObject
getDisplayTitle
in interface Addressable
getDisplayTitle
in class ContentEntityObject
public java.lang.String getUrlPath()
getUrlPath
in interface Addressable
getUrlPath
in class ContentEntityObject
public java.lang.String getAttachmentUrlPath(Attachment attachment)
ContentEntityObject
Attachment.getUrlPath()
instead of this method: if we ever implement
view pages for individual attachments, that's the method that will be changed to point to them.
The default implementation just returns the view page for this content.
getAttachmentUrlPath
in class ContentEntityObject
attachment
- one of this content's attachments
public java.lang.String getUsername()
public ConfluenceUser getUser()
public void setUser(ConfluenceUser user)
user
- this personal information applies to@Deprecated public void setUsername(java.lang.String username)
setUser(ConfluenceUser)
instead.
username
- the username for the user this personal information applies to
java.lang.IllegalArgumentException
- if the identified user cannot be found.public BodyType getDefaultBodyType()
getDefaultBodyType
in class ContentEntityObject
public java.util.List<BodyContent> getBodyContents()
getBodyContents
in class ContentEntityObject
public boolean belongsTo(com.atlassian.user.User user)
user
- the user to check
public java.lang.String getFullName()
@Deprecated public void setFullName(java.lang.String fullName)
fullName
- public java.lang.String getEmail()
@Deprecated public void setEmail(java.lang.String email)
email
- public java.lang.String getType()
ContentEntityObject
getType
in interface ContentTypeAware
getType
in class ContentEntityObject
public int hashCode()
hashCode
in class ContentEntityObject
public boolean equals(java.lang.Object o)
equals
in class ContentEntityObject
public java.lang.String getNameForComparison()
ContentEntityObject
getNameForComparison
in class ContentEntityObject
public java.lang.String getHasPersonalSpace()
public java.lang.String getLinkWikiMarkup()
getLinkWikiMarkup
in interface HasLinkWikiMarkup
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |