public class SearchContent extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
id |
protected String |
prefix |
protected Map<String,String> |
properties |
protected String |
reference |
protected String |
summary |
protected Reader |
summaryReader |
protected String |
title |
protected String |
url |
| Modifier | Constructor and Description |
|---|---|
protected |
SearchContent() |
|
SearchContent(String id,
String prefix,
String reference,
String title,
String url)
Create a set of content for indexing,
NOTE: make sure you also set the summary using
setSummary(String) or setSummaryReader(Reader) |
| Modifier and Type | Method and Description |
|---|---|
String |
getId() |
String |
getPrefix() |
Map<String,String> |
getProperties() |
String |
getProperty(String name)
Get any property from this search content
|
String |
getReference() |
Reader |
getSummaryReader() |
String |
getTitle() |
String |
getUrl() |
void |
setId(String id) |
void |
setPrefix(String prefix) |
void |
setProperty(String name,
String value)
Set any property on this search content
|
void |
setReference(String reference) |
void |
setSummary(String summary) |
void |
setSummaryReader(Reader summaryReader) |
void |
setTitle(String title) |
void |
setUrl(String url) |
protected String id
protected String prefix
protected String reference
protected String title
protected String url
protected transient String summary
protected transient Reader summaryReader
protected SearchContent()
public SearchContent(String id, String prefix, String reference, String title, String url)
setSummary(String) or setSummaryReader(Reader)id - the entity id (e.g. "1234")prefix - the entity prefix (e.g. "user")reference - the entity reference (e.g. /prefix/id)title - the display title for this contenturl - the URL to this contentpublic void setProperty(String name, String value)
name - the key for the propertyvalue - the valuepublic String getProperty(String name)
name - the name of the propertypublic void setSummary(String summary)
public Reader getSummaryReader()
public void setSummaryReader(Reader summaryReader)
public String getId()
public void setId(String id)
public String getPrefix()
public void setPrefix(String prefix)
public String getReference()
public void setReference(String reference)
public String getTitle()
public void setTitle(String title)
public String getUrl()
public void setUrl(String url)
Copyright © 2007–2019 Sakai Project. All rights reserved.