public class SearchResult extends Object
Constructor and Description |
---|
SearchResult(Long id,
String name,
String url,
String contentType) |
Modifier and Type | Method and Description |
---|---|
Category |
getCategory() |
String |
getContentPluginKey() |
String |
getContentType() |
Date |
getCreatedDate() |
String |
getCreator()
Deprecated.
since 5.2. Usernames should not be used as keys. Please use
getCreator() instead. |
ConfluenceUser |
getCreatorUser()
Returns the creator of this result.
|
Long |
getId() |
Date |
getLastModifiedDate() |
String |
getLastModifier()
Deprecated.
since 5.2. Usernames should not be used as keys. Please use
getLastModifier() instead. |
ConfluenceUser |
getLastModifierUser()
Returns the last modifier of this result.
|
String |
getName() |
String |
getOwnerType() |
String |
getParentTitle() |
String |
getPreviewKey()
The
previewKey property provides information a client can use to show a relevant preview/icon for
this result. |
String |
getSpaceKey() |
String |
getSpaceName() |
String |
getUrl() |
String |
getUsername() |
void |
setCategory(Category category) |
void |
setContentPluginKey(String contentPluginKey) |
void |
setContentType(String contentType) |
void |
setCreatedDate(Date createdDate) |
void |
setCreatorKey(com.atlassian.sal.api.user.UserKey creatorKey) |
void |
setLastModifiedDate(Date lastModifiedDate) |
void |
setLastModifierKey(com.atlassian.sal.api.user.UserKey lastModifierKey) |
void |
setName(String name) |
void |
setOwnerType(String ownerType) |
void |
setParentTitle(String parentTitle) |
void |
setPreviewKey(String previewKey) |
void |
setSpaceKey(String spaceKey) |
void |
setSpaceName(String spaceName) |
void |
setUrl(String url) |
void |
setUsername(String username) |
String |
toString() |
public Long getId()
public String getName()
public String getUrl()
public String getContentType()
public String getPreviewKey()
previewKey
property provides information a client can use to show a relevant preview/icon for
this result. For example, when the result represents an Attachment the previewKey will contain it's mime type (if
it has one). If the result represents a PersonalInformation then the previewKey will contain the username.public Category getCategory()
public String getSpaceName()
public String getSpaceKey()
public String getOwnerType()
public Date getCreatedDate()
public Date getLastModifiedDate()
public String getParentTitle()
public void setName(String name)
public void setUrl(String url)
public void setContentType(String contentType)
public void setPreviewKey(String previewKey)
public void setCategory(Category category)
public void setSpaceName(String spaceName)
public void setSpaceKey(String spaceKey)
public void setOwnerType(String ownerType)
public void setCreatedDate(Date createdDate)
public void setLastModifiedDate(Date lastModifiedDate)
public void setParentTitle(String parentTitle)
public void setContentPluginKey(String contentPluginKey)
public String getContentPluginKey()
@Deprecated public String getCreator()
getCreator()
instead.public ConfluenceUser getCreatorUser()
public void setCreatorKey(com.atlassian.sal.api.user.UserKey creatorKey)
@Deprecated public String getLastModifier()
getLastModifier()
instead.public ConfluenceUser getLastModifierUser()
public void setLastModifierKey(com.atlassian.sal.api.user.UserKey lastModifierKey)
public String getUsername()
public void setUsername(String username)
Copyright © 2003–2016 Atlassian. All rights reserved.