public class PersonalInformation extends ContentEntityObject implements HasLinkWikiMarkup
Modifier and Type | Field and Description |
---|---|
static String |
CONTENT_TYPE |
COLLABORATIVE_EDITING_UUID, CONFLUENCE_RECOVERY, CONFLUENCE_RECOVERY_WITH_EXTERNAL_CHANGE, CONTENT_RESTORED_SYNC_REV_SOURCE, CREATED, CURRENT, DELETED, DRAFT, DUMMY_SYNC_REV, LIMITED_MODE_SYNC_REV_SOURCE, MODIFIED, SHARE_ID, SYNC_REV, SYNC_REV_SOURCE, SYNCHRONY_RECOVERY, SYNCHRONY_RECOVERY_WITH_EXTERNAL_CHANGE, SYNCHRONY_SYNC_REV_SOURCE
INITIAL_VERSION
Constructor and Description |
---|
PersonalInformation() |
PersonalInformation(ConfluenceUser user,
String personalInformation) |
PersonalInformation(com.atlassian.user.User user,
UserAccessor userAccessor)
Deprecated.
since Confluence 5.2.
|
Modifier and Type | Method and Description |
---|---|
boolean |
belongsTo(com.atlassian.user.User user)
Returns true if this object belongs to the specified user.
|
boolean |
equals(Object o) |
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).
|
List<BodyContent> |
getBodyContents() |
BodyType |
getDefaultBodyType() |
String |
getDisplayTitle()
Returns the display title.
|
String |
getEmail()
Deprecated.
Since 5.5. Use
getUser() |
String |
getFullName()
Deprecated.
Since 5.5. Use
getUser() |
String |
getHasPersonalSpace() |
String |
getLinkWikiMarkup() |
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 |
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() |
ConfluenceUser |
getUser() |
String |
getUsername()
Deprecated.
Since 5.5. Use
getUser() |
int |
hashCode() |
void |
setEmail(String email)
Deprecated.
since 5.2
|
void |
setFullName(String fullName)
Deprecated.
since 5.2.
|
void |
setUser(ConfluenceUser user) |
void |
setUsername(String username)
Deprecated.
Since 5.2. Use
setUser(ConfluenceUser) instead. |
String |
toString()
Override this method so we don't call getFullName() everytime toString is called on the object!
|
addAttachment, addComment, addCustomContent, addOutgoingLink, addPermission, addReferralLink, addTrackbackLink, applyChildVersioningPolicy, clone, compareTo, convertToHistoricalVersion, ensureAttachmentBelongsToContent, getAttachmentNamed, getAttachments, getAttachmentsUrlPath, getBodyAsString, getBodyAsStringWithoutMarkup, getBodyContent, getBodyContent, getCollaborativeEditingUuid, getComments, getContainerContent, getContentEntityObject, getContentId, getContentPermission, getContentPermissionSet, getContentStatus, getContentStatusObject, getEntity, getExcerpt, getIdAsString, getLatestVersionId, getLatestVersionsOfAttachments, getLowerTitle, getOriginalVersionId, getOutgoingLinks, getPermissions, getProperties, getReferralLinks, getRenderedVersionComment, getSearchableDependants, getSelector, getShareId, getSynchronyRevision, getSynchronyRevisionSource, getTitle, getTrackbackLinks, getTypeEnum, getUserAccessor, getVersionComment, hasContentPermissions, hasPermissions, isCurrent, isDeleted, isDraft, isIndexable, isRecentlyUpdatedFor, isUnpublished, isVersionCommentAvailable, removeAttachment, removeComment, removeContentPermissionSet, removeCustomContent, removeOutgoingLink, removeReferralLink, removeTrackbackLink, replaceContentProperties, restore, restoreDependents, setAttachments, setBodyAsString, setBodyContent, setBodyContents, setCollaborativeEditingUuid, setComments, setContainerContent, setContentPropertiesFrom, setContentStatus, setOriginalVersion, setOriginalVersionId, setOutgoingLinks, setReferralLinks, setShareId, setSynchronyRevision, setSynchronyRevisionSource, setTitle, setTrackbackLinks, setUserAccessor, setVersionComment, sharedAccessAllowed, sharedAccessAllowed, toPageContext, trash, trashDependents, wasCreatedBy
addLabelling, getGlobalLabels, getLabelCount, getLabellings, getLabels, getLabelsForDisplay, getLabelUtil, getPersonalLabels, getTeamLabels, getVisibleLabels, isFavourite, isFavourite, removeLabelling, setLabellings
getConfluenceRevision, getLatestVersion, getOriginalVersion, getVersion, getVersionChildPolicy, isLatestVersion, isNew, setVersion
getCreator, getCreatorName, getLastModifier, getLastModifierName, getRealClass, isPersistent, setCreator, setCreatorName, setLastModifier, setLastModifierName
getCreationDate, getCurrentDate, getId, getLastModificationDate, setClock, setCreationDate, setId, setLastModificationDate
finalize, getClass, notify, notifyAll, wait, wait, wait
getId
getId, isPersistent
public static final String CONTENT_TYPE
public PersonalInformation()
@Deprecated public PersonalInformation(com.atlassian.user.User user, UserAccessor userAccessor)
user
- userAccessor
- PersonalInformation(ConfluenceUser, String)
public PersonalInformation(ConfluenceUser user, String personalInformation)
public String toString()
toString
in class ContentEntityObject
public String getDisplayTitle()
ContentEntityObject
getDisplayTitle
in interface Addressable
getDisplayTitle
in class ContentEntityObject
public String getUrlPath()
getUrlPath
in interface Addressable
getUrlPath
in class ContentEntityObject
public 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@Deprecated public String getUsername()
getUser()
public ConfluenceUser getUser()
public void setUser(ConfluenceUser user)
user
- this personal information applies to@Deprecated public void setUsername(String username)
setUser(ConfluenceUser)
instead.username
- the username for the user this personal information applies toIllegalArgumentException
- if the identified user cannot be found.public BodyType getDefaultBodyType()
getDefaultBodyType
in class ContentEntityObject
public List<BodyContent> getBodyContents()
getBodyContents
in class ContentEntityObject
public boolean belongsTo(com.atlassian.user.User user)
user
- the user to check@Deprecated public String getFullName()
getUser()
@Deprecated public void setFullName(String fullName)
fullName
- @Deprecated public String getEmail()
getUser()
@Deprecated public void setEmail(String email)
email
- public String getType()
ContentEntityObject
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.
getType
in interface ContentTypeAware
getType
in class ContentEntityObject
public int hashCode()
hashCode
in class ContentEntityObject
public boolean equals(Object o)
equals
in class ContentEntityObject
public String getNameForComparison()
ContentEntityObject
getNameForComparison
in class ContentEntityObject
public String getHasPersonalSpace()
public String getLinkWikiMarkup()
getLinkWikiMarkup
in interface HasLinkWikiMarkup
Copyright © 2003–2016 Atlassian. All rights reserved.