|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EntityContentProducer
This is a special class than handles ContentResources for the purposes of search. This must be implemented in a thread safe way. The aim is to map the content handler to the mime type
| Method Summary | |
|---|---|
boolean |
canRead(String reference)
returns true if the current user can view the search result |
Integer |
getAction(org.sakaiproject.event.api.Event event)
Get the search builder action associated with the event. |
String |
getContainer(String ref)
|
String |
getContent(String reference)
Get the content as a string |
Reader |
getContentReader(String reference)
Get a reader for the supplied content resource |
Map<String,?> |
getCustomProperties(String ref)
Gets a map of custom document properties. |
String |
getCustomRDF(String ref)
At the moment this is a placeholder, but eventually It will return a block of Custom RDF, that the EntityContentProducer wants the search index to index. |
String |
getId(String ref)
|
Iterator<String> |
getSiteContentIterator(String context)
Get the site content as an iterator |
String |
getSiteId(String reference)
get the site ID from the resource Name |
String |
getSubType(String ref)
|
String |
getTitle(String reference)
get the title for the content |
String |
getTool()
What is the name of the tool, |
String |
getType(String ref)
|
String |
getUrl(String reference)
Gets the url that displays the entity |
boolean |
isContentFromReader(String reference)
Should the consumer use the reader or is it OK to use a memory copy of the content |
boolean |
isForIndex(String reference)
If the reference should be indexed, return true |
boolean |
matches(org.sakaiproject.event.api.Event event)
Is the event owned by this EntityContentProducer |
boolean |
matches(String reference)
If the reference matches this EntityContentProducer return true |
| Method Detail |
|---|
boolean isContentFromReader(String reference)
reference -
Reader getContentReader(String reference)
reference -
String getContent(String reference)
reference -
SearchUtils.appendCleanString(String, StringBuilder)String getTitle(String reference)
reference -
String getUrl(String reference)
reference -
boolean matches(String reference)
reference -
Integer getAction(org.sakaiproject.event.api.Event event)
event -
SearchBuilderItem constants.SearchBuilderItemboolean matches(org.sakaiproject.event.api.Event event)
event -
String getTool()
String getSiteId(String reference)
reference -
Iterator<String> getSiteContentIterator(String context)
context -
boolean isForIndex(String reference)
reference -
boolean canRead(String reference)
reference -
Map<String,?> getCustomProperties(String ref)
String getCustomRDF(String ref)
String getId(String ref)
ref -
String getType(String ref)
ref -
String getSubType(String ref)
ref -
String getContainer(String ref)
ref -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||