public class ResourceReturnable extends Object implements Returnable, Serviceable, Configurable
Returnable
for Resource
sModifier and Type | Field and Description |
---|---|
protected I18nizableText |
_label
The label
|
protected ReturnableSaxer |
_saxer
The saxer
|
protected TikaProvider |
_tikaProvider
The tika provider
|
static String |
ROLE
Avalon Role
|
Constructor and Description |
---|
ResourceReturnable() |
Modifier and Type | Method and Description |
---|---|
private Query |
_filterVisibleContentAttachmentQuery(Collection<ContextQueriesWrapper> contextQueriesWrappers) |
private Query |
_filterVisiblePageAttachmentQuery(Collection<ContextQueriesWrapper> contextQueriesWrappers) |
private Query |
_queryOnContentAttachmentFromQueryOnContent(Query queryOnContent) |
private Query |
_queryOnContentAttachmentFromQueryOnPage(Query queryOnPage) |
private Query |
_queryOnPageAttachment(Query queryOnPage) |
void |
configure(Configuration configuration) |
Query |
filterReturnedDocumentQuery(Collection<ContextQueriesWrapper> contextQueriesWrappers,
AdditionalParameterValueMap additionalParameterValues)
Returns the query to execute in order to filter returned objects (according to their type) during the search.
|
Collection<FacetDefinition> |
getFacets(AdditionalParameterValueMap additionalParameterValues)
Gets the facets
|
String |
getId()
Gets the id of the extension
|
I18nizableText |
getLabel()
Gets the label of the type of result
|
ReturnableSaxer |
getSaxer(Collection<Returnable> allReturnables,
AdditionalParameterValueMap additionalParameterValues)
Returns the
saxer responsible to SAX hits of this Returnable. |
Collection<SortDefinition> |
getSorts(AdditionalParameterValueMap additionalParameterValues)
Gets the sorts
|
boolean |
selectedByDefault()
Returns
true if the type must be selected by default |
void |
service(ServiceManager manager) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
additionalServiceParameters, relationsWith
protected TikaProvider _tikaProvider
protected I18nizableText _label
protected ReturnableSaxer _saxer
public ResourceReturnable()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public void configure(Configuration configuration) throws ConfigurationException
configure
in interface Configurable
ConfigurationException
public String getId()
Returnable
getId
in interface Returnable
public I18nizableText getLabel()
Returnable
getLabel
in interface Returnable
public boolean selectedByDefault()
Returnable
true
if the type must be selected by defaultselectedByDefault
in interface Returnable
true
if the type must be selected by defaultpublic Query filterReturnedDocumentQuery(Collection<ContextQueriesWrapper> contextQueriesWrappers, AdditionalParameterValueMap additionalParameterValues)
Returnable
ContextQueriesWrapper#getQuery
in order to make a JoinQuery
on interesting parts of ContextQueriesWrapper
s
and then constructs an AndQuery
composed of a DocumentTypeQuery
and the result of the call.filterReturnedDocumentQuery
in interface Returnable
contextQueriesWrappers
- The context queries
additionalParameterValues
- The additional parameter valuesprivate Query _filterVisibleContentAttachmentQuery(Collection<ContextQueriesWrapper> contextQueriesWrappers)
private Query _queryOnContentAttachmentFromQueryOnContent(Query queryOnContent)
private Query _queryOnContentAttachmentFromQueryOnPage(Query queryOnPage)
private Query _filterVisiblePageAttachmentQuery(Collection<ContextQueriesWrapper> contextQueriesWrappers)
private Query _queryOnPageAttachment(Query queryOnPage)
public ReturnableSaxer getSaxer(Collection<Returnable> allReturnables, AdditionalParameterValueMap additionalParameterValues)
Returnable
saxer
responsible to SAX hits of this Returnable.getSaxer
in interface Returnable
allReturnables
- All Returnable
s (including this)additionalParameterValues
- The additional parameter valuessaxer
responsible to SAX hits of this Returnable.public Collection<FacetDefinition> getFacets(AdditionalParameterValueMap additionalParameterValues)
Returnable
getFacets
in interface Returnable
additionalParameterValues
- The additional parameter valuespublic Collection<SortDefinition> getSorts(AdditionalParameterValueMap additionalParameterValues)
Returnable
getSorts
in interface Returnable
additionalParameterValues
- The additional parameter values