Class SearchResult
java.lang.Object
com.atlassian.confluence.search.contentnames.SearchResult
Represents a search result from a content name search.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the creator of this result.getId()
Returns the last modifier of this result.getName()
ThepreviewKey
property provides information a client can use to show a relevant preview/icon for this result.getUrl()
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
void
setOwnerType
(String ownerType) void
setParentTitle
(String parentTitle) void
setPreviewKey
(String previewKey) void
setSpaceKey
(String spaceKey) void
setSpaceName
(String spaceName) void
void
setUsername
(String username) toString()
-
Constructor Details
-
SearchResult
-
-
Method Details
-
getId
-
getName
-
getUrl
-
getContentType
-
getPreviewKey
ThepreviewKey
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.- Returns:
- information about this result that can be used to find the preview information that may be shown for this result.
-
getCategory
-
getSpaceName
-
getSpaceKey
-
getOwnerType
-
getCreatedDate
-
getLastModifiedDate
-
getParentTitle
-
setName
-
setUrl
-
setContentType
-
setPreviewKey
-
setCategory
-
setSpaceName
-
setSpaceKey
-
setOwnerType
-
setCreatedDate
-
setLastModifiedDate
-
setParentTitle
-
setContentPluginKey
-
getContentPluginKey
-
getCreatorUser
Returns the creator of this result.- Returns:
- creator of this result
- Since:
- 5.2
-
setCreatorKey
public void setCreatorKey(com.atlassian.sal.api.user.UserKey creatorKey) - Since:
- 5.2
-
getLastModifierUser
Returns the last modifier of this result.- Returns:
- last modifier of this result
- Since:
- 5.2
-
setLastModifierKey
public void setLastModifierKey(com.atlassian.sal.api.user.UserKey lastModifierKey) -
getUsername
-
setUsername
-
toString
-