|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.confluence.search.v2.lucene.AbstractLuceneSearchResult
public abstract class AbstractLuceneSearchResult
| Constructor Summary | |
|---|---|
AbstractLuceneSearchResult()
|
|
| Method Summary | |
|---|---|
String |
getContent()
Gets the text content of the search result. |
Integer |
getContentVersion()
Returns the version of the content if available, or null if there's no version for this result. |
Date |
getCreationDate()
|
String |
getCreator()
|
protected Date |
getDateResult(String key)
|
String |
getDisplayTitle()
Gets the title of the search result appropriate for displaying to a user. |
protected Integer |
getIntegerResult(String fieldName)
|
Set<String> |
getLabels(com.atlassian.user.User user)
Gets the labels on the current search result that are visible to the specified user. |
Date |
getLastModificationDate()
Gets the last modification date of the entity represented by the search result. |
String |
getLastModifier()
Gets the username of the last person to modify the entity represented by the search result. |
String |
getLastUpdateDescription()
Gets some string describing the last modification to this content. |
String |
getOwnerTitle()
If this result represents an attachment then this field will return the title of the page or blog post the attachment is attached to. |
String |
getOwnerType()
If this result represents an attachment then this field will return the type of the container, a page or blogpost. |
Set<String> |
getPersonalLabels()
Gets all the personal labels on the current search result. |
String |
getSpaceKey()
|
String |
getSpaceName()
|
protected String |
getStringResult(String... fieldNames)
Retrieves the value for the specified field name. |
String |
getType()
Gets a string representation of the type of the entity represented by the search result. |
String |
getUrlPath()
Gets the URL path to the search result, relative to the site's context root. |
protected boolean |
hasLabels(Map<String,?> results)
|
boolean |
isHomePage()
Checks if the search result represents the homepage of a space. |
protected Map<String,String> |
mapExtraFields()
|
protected void |
populatePersonalLabels(org.apache.lucene.document.Document document)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.atlassian.confluence.search.v2.SearchResult |
|---|
getExtraFields, hasLabels |
| Methods inherited from interface com.atlassian.confluence.search.v2.BaseSearchResult |
|---|
getField, getHandle, isFieldRequested |
| Constructor Detail |
|---|
public AbstractLuceneSearchResult()
| Method Detail |
|---|
protected void populatePersonalLabels(org.apache.lucene.document.Document document)
protected boolean hasLabels(Map<String,?> results)
public Set<String> getLabels(com.atlassian.user.User user)
SearchResult
getLabels in interface SearchResultuser - filter labels by this user
public Set<String> getPersonalLabels()
SearchResult
getPersonalLabels in interface SearchResultpublic String getContent()
SearchResult
getContent in interface SearchResultpublic String getType()
SearchResultContentEntityObject.getType()
getType in interface SearchResultContentTypeAware.getType()public boolean isHomePage()
SearchResult
isHomePage in interface SearchResultpublic Date getCreationDate()
getCreationDate in interface SearchResultpublic String getCreator()
getCreator in interface SearchResultpublic String getOwnerType()
SearchResult
getOwnerType in interface SearchResultpublic String getOwnerTitle()
SearchResult
getOwnerTitle in interface SearchResultpublic Integer getContentVersion()
SearchResultnull if there's no version for this result.
getContentVersion in interface SearchResultpublic Date getLastModificationDate()
SearchResult
getLastModificationDate in interface SearchResultpublic String getLastModifier()
SearchResult
getLastModifier in interface SearchResultpublic String getDisplayTitle()
SearchResult
getDisplayTitle in interface SearchResultAddressable.getDisplayTitle()public String getUrlPath()
SearchResult
getUrlPath in interface SearchResultAddressable.getUrlPath()public String getLastUpdateDescription()
SearchResultThis string is user-supplied, and therefore not internationalised
getLastUpdateDescription in interface SearchResultContentEntityObject.getVersionComment()public String getSpaceName()
getSpaceName in interface SearchResultpublic String getSpaceKey()
getSpaceKey in interface SearchResultprotected String getStringResult(String... fieldNames)
fieldNames - field name(s) to retrieve a value for
protected Date getDateResult(String key)
protected Integer getIntegerResult(String fieldName)
protected Map<String,String> mapExtraFields()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||