public class ResourceSearchable extends AbstractLogEnabled implements Searchable, Serviceable, PluginAware, Contextualizable, Initializable, Disposable, Configurable
Searchable for Resources| Modifier and Type | Field and Description |
|---|---|
protected static String |
__CRITERION_DEFINITIONS_PREFIX_ID
The prefix for the ids of criterion definitions
|
private Returnable |
_contentReturnable |
private Context |
_context |
protected int |
_criteriaPosition
The criteria position
|
private DublinCoreMetadataProvider |
_dcProvider |
private ThreadSafeComponentManager<Enumerator> |
_enumeratorManager |
protected I18nizableText |
_label
The label
|
private ServiceManager |
_manager |
private Returnable |
_pageReturnable |
private String |
_pluginName |
private Returnable |
_resourceReturnable |
private LanguageEnumerator |
_sitemapEnumerator |
| Constructor and Description |
|---|
ResourceSearchable() |
| Modifier and Type | Method and Description |
|---|---|
private boolean |
_isSubQueryNonEmpty(Query queryOnCriterion) |
private Query |
_queryOnContent(Query queryOnVisibleContentAttachments) |
private Query |
_queryOnPage(Query queryOnVisiblePageAttachments) |
private Query |
_queryOnPageThroughContents(Query queryOnVisibleContentAttachments) |
void |
configure(Configuration configuration) |
void |
contextualize(Context context) |
int |
criteriaPosition()
The position of the criteria provided by this
Searchable among criteria provided by other Searchables. |
void |
dispose() |
Collection<SearchCriterionDefinition> |
getCriteria(AdditionalParameterValueMap additionalParameterValues)
Gets the criteria
|
I18nizableText |
getLabel()
Gets the label of the searchable
|
void |
initialize() |
Optional<Query> |
joinQuery(Query queryOnCriterion,
Collection<Returnable> returnables,
AdditionalParameterValueMap additionalParameters)
Returns the query which joins the given one (on a criterion) with the given result types
|
Collection<Returnable> |
relationsWith()
Retrieves the relations the type must have with some
Returnables. |
void |
service(ServiceManager manager) |
void |
setPluginInfo(String pluginName,
String featureName,
String id)
Sets the plugin info relative to the current component.
Note : The feature name may be null if the targeted component in declared at plugin level. |
getLogger, setLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadditionalServiceParametersprotected static final String __CRITERION_DEFINITIONS_PREFIX_ID
protected I18nizableText _label
protected int _criteriaPosition
private ServiceManager _manager
private Returnable _resourceReturnable
private Returnable _pageReturnable
private Returnable _contentReturnable
private String _pluginName
private DublinCoreMetadataProvider _dcProvider
private ThreadSafeComponentManager<Enumerator> _enumeratorManager
private LanguageEnumerator _sitemapEnumerator
public ResourceSearchable()
public void service(ServiceManager manager) throws ServiceException
service in interface ServiceableServiceExceptionpublic void configure(Configuration configuration) throws ConfigurationException
configure in interface ConfigurableConfigurationExceptionpublic void setPluginInfo(String pluginName, String featureName, String id)
PluginAwaresetPluginInfo in interface PluginAwarepluginName - Unique identifier for the plugin hosting the extensionfeatureName - Unique feature identifier (unique for a given pluginName)id - Unique identifier of this componentpublic void contextualize(Context context) throws ContextException
contextualize in interface ContextualizableContextExceptionpublic void initialize() throws Exception
initialize in interface InitializableExceptionpublic void dispose()
dispose in interface Disposablepublic I18nizableText getLabel()
SearchablegetLabel in interface Searchablepublic Collection<SearchCriterionDefinition> getCriteria(AdditionalParameterValueMap additionalParameterValues)
SearchablegetCriteria in interface SearchableadditionalParameterValues - The additional parameter valuespublic int criteriaPosition()
SearchableSearchable among criteria provided by other Searchables.
Searchable are always packed together, this integer just affects the relative position compared to other Searchable criteria.
criteriaPosition in interface SearchableSearchablepublic Optional<Query> joinQuery(Query queryOnCriterion, Collection<Returnable> returnables, AdditionalParameterValueMap additionalParameters)
SearchablejoinQuery in interface SearchablequeryOnCriterion - The query on the criterion to join fromreturnables - The returnables to join toadditionalParameters - The additional parametersprivate boolean _isSubQueryNonEmpty(Query queryOnCriterion)
private Query _queryOnContent(Query queryOnVisibleContentAttachments)
private Query _queryOnPage(Query queryOnVisiblePageAttachments)
private Query _queryOnPageThroughContents(Query queryOnVisibleContentAttachments)
public Collection<Returnable> relationsWith()
SearchableReturnables.
Returnable.relationsWith() declares the relation, it is useless to declare it twice)relationsWith in interface SearchableReturnables