T
- entityRef type - the type of the wrapped result@ExperimentalApi public abstract class SearchResult<T> extends Object implements com.atlassian.sal.api.search.SearchMatch
Modifier and Type | Class and Description |
---|---|
static class |
SearchResult.Builder<T> |
Modifier and Type | Method and Description |
---|---|
static <T> SearchResult.Builder<T> |
builder(T entity) |
T |
getEntity() |
abstract Reference<T> |
getEntityRef() |
String |
getEntityType() |
String |
getExcerpt() |
String |
getFriendlyLastModified() |
String |
getIconCssClass() |
org.joda.time.DateTime |
getLastModified() |
com.atlassian.sal.api.search.ResourceType |
getResourceType() |
ContainerSummary |
getResultGlobalContainer()
The top level container of the result that is not contained in another container.
|
Reference<ContainerSummary> |
getResultGlobalContainerRef() |
ContainerSummary |
getResultParent()
Deprecated.
since 5.9 Use
getResultParentContainer() instead. |
ContainerSummary |
getResultParentContainer() |
Reference<ContainerSummary> |
getResultParentRef() |
String |
getTitle() |
String |
getUrl() |
public T getEntity()
public abstract Reference<T> getEntityRef()
public final String getEntityType()
public String getTitle()
getTitle
in interface com.atlassian.sal.api.search.SearchMatch
public String getExcerpt()
getExcerpt
in interface com.atlassian.sal.api.search.SearchMatch
public String getUrl()
getUrl
in interface com.atlassian.sal.api.search.SearchMatch
public String getIconCssClass()
public org.joda.time.DateTime getLastModified()
public String getFriendlyLastModified()
public Reference<ContainerSummary> getResultParentRef()
@Deprecated public ContainerSummary getResultParent()
getResultParentContainer()
instead.public ContainerSummary getResultParentContainer()
public Reference<ContainerSummary> getResultGlobalContainerRef()
public ContainerSummary getResultGlobalContainer()
For example, if this result referenced a comment, a comment is contained in a page, and a page is contained in a space, but a space is not contained in another entity. This method would return a summary of the space.
public com.atlassian.sal.api.search.ResourceType getResourceType()
getResourceType
in interface com.atlassian.sal.api.search.SearchMatch
public static <T> SearchResult.Builder<T> builder(T entity)
Copyright © 2003–2021 Atlassian. All rights reserved.