public class SearchResult extends Object
| Constructor and Description |
|---|
SearchResult(String url,
String title,
String excerpt,
String detail,
String imageUrl,
long date,
long relevancy)
Constructor that helps to create search result by the unique way
|
SearchResult(String url,
String previewUrl,
String title,
String excerpt,
String detail,
String imageUrl,
long date,
long relevancy)
Constructor that helps to create search result by the unique way
(keeping the other constructor without previewUrl for backward compatibility reasons)
|
| Modifier and Type | Method and Description |
|---|---|
long |
getDate()
Get date of result
|
String |
getDetail()
Get detail of result
|
String |
getExcerpt()
Get excerpt of result
|
String |
getImageUrl()
Get image url of avatar
|
String |
getPreviewUrl()
Get preview url of result
|
long |
getRelevancy()
Get relevancy of result
|
String |
getTitle()
Get title of result
|
String |
getUrl()
Get url of result
|
void |
setDate(long date)
Set data for result
|
void |
setDetail(String detail)
Set detail for result
|
void |
setExcerpt(String excerpt)
Set excerpt for result
|
void |
setImageUrl(String imageUrl)
Set image url for avatar
|
void |
setPreviewUrl(String previewUrl)
Set preview url for result
|
void |
setRelevancy(long relevancy)
Set relevancy
|
void |
setTitle(String title)
Set title for result
|
void |
setUrl(String url)
Set url for result
|
String |
toString() |
public SearchResult(String url, String title, String excerpt, String detail, String imageUrl, long date, long relevancy)
url - Url of this resulttitle - Title to be displayed on UIexcerpt - The excerpt to be displayed on UIdetail - Details informationimageUrl - An image to be displayed on UIdate - Created or modified date, for sorting on UIrelevancy - The result's relevancy, for sorting on UIpublic SearchResult(String url, String previewUrl, String title, String excerpt, String detail, String imageUrl, long date, long relevancy)
url - Url of this resultpreviewUrl - Preview url of this resulttitle - Title to be displayed on UIexcerpt - The excerpt to be displayed on UIdetail - Details informationimageUrl - An image to be displayed on UIdate - Created or modified date, for sorting on UIrelevancy - The result's relevancy, for sorting on UIpublic String getUrl()
public void setUrl(String url)
url - public String getPreviewUrl()
public void setPreviewUrl(String previewUrl)
previewUrl - public String getTitle()
public void setTitle(String title)
title - public String getExcerpt()
public void setExcerpt(String excerpt)
excerpt - public String getDetail()
public void setDetail(String detail)
detail - public String getImageUrl()
public void setImageUrl(String imageUrl)
imageUrl - public long getDate()
public void setDate(long date)
date - public long getRelevancy()
public void setRelevancy(long relevancy)
relevancy - Copyright © 2003–2018 eXo Platform SAS. All rights reserved.