public interface EntityContentProducer
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRead(String reference)
returns true if the current user can view the search result
|
Integer |
getAction(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(Event event)
Is the event owned by this EntityContentProducer
|
boolean |
matches(String reference)
If the reference matches this EntityContentProducer return true
|
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(Event event)
event - SearchBuilderItem constants.SearchBuilderItemboolean matches(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)
Copyright © 2003–2016 Sakai Project. All rights reserved.