public class ProgramSearchable extends AbstractContentBasedSearchable
Searchable
for Program
sModifier and Type | Class and Description |
---|---|
protected static class |
ProgramSearchable.ProgramThroughProgramPartsQuery
A
Query that returns Programs, by querying their child ProgramParts |
Modifier and Type | Field and Description |
---|---|
private static String |
__CRITERION_DEFINITIONS_PREFIX_ID |
static String |
PARAMETER_SEARCH_ON_SUBPROGRAMS
The additional parameter for indicating if search has to be made also on subprograms
|
static String |
ROLE
Avalon Role
|
_associatedContentReturnable, _criteriaPosition, _label, _pageReturnable
_manager, _pluginName
Constructor and Description |
---|
ProgramSearchable() |
Modifier and Type | Method and Description |
---|---|
private boolean |
_searchOnSubprograms(AdditionalParameterValueMap additionalParameters) |
protected boolean |
appliesToSubprogram(Query queryOnCriterion)
Determines if the given
Query applies to Subprograms |
protected String |
associatedContentReturnableRole()
The Avalon Role for the associated Content Returnable
|
protected Collection<String> |
getContentTypes(AdditionalParameterValueMap additionalParameterValues)
Gets the content types which will be used to retrieve the criteria relative to the Indexing Model
|
protected String |
getCriterionDefinitionPrefix()
Gets the prefix for criterion definitions
|
protected Query |
getProgramThroughSubprogramsQuery(Query queryOnCriterion)
Gets the
Query that returns Programs by querying their SubPrograms |
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
Returnable s. |
configure, contextualize, criteriaPosition, dispose, getCriteria, getIndexingFieldCriterionDefinitionPrefix, getLabel, getSystemPropertyCriterionDefinitionPrefix, initialize, service
additionalServiceParameters, setPluginInfo
getLogger, setLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
additionalServiceParameters
public static final String PARAMETER_SEARCH_ON_SUBPROGRAMS
private static final String __CRITERION_DEFINITIONS_PREFIX_ID
public ProgramSearchable()
protected String associatedContentReturnableRole()
AbstractContentBasedSearchable
associatedContentReturnableRole
in class AbstractContentBasedSearchable
protected String getCriterionDefinitionPrefix()
AbstractContentBasedSearchable
getCriterionDefinitionPrefix
in class AbstractContentBasedSearchable
public Collection<Returnable> relationsWith()
Searchable
Returnable
s.
Returnable.relationsWith()
declares the relation, it is useless to declare it twice)relationsWith
in interface Searchable
relationsWith
in class AbstractContentBasedSearchable
Returnable
sprotected Collection<String> getContentTypes(AdditionalParameterValueMap additionalParameterValues)
AbstractContentBasedSearchable
getContentTypes
in class AbstractContentBasedSearchable
additionalParameterValues
- The additional parameter valuespublic Optional<Query> joinQuery(Query queryOnCriterion, Collection<Returnable> returnables, AdditionalParameterValueMap additionalParameters)
Searchable
queryOnCriterion
- The query on the criterion to join fromreturnables
- The returnables to join toadditionalParameters
- The additional parametersprivate boolean _searchOnSubprograms(AdditionalParameterValueMap additionalParameters)
protected boolean appliesToSubprogram(Query queryOnCriterion)
Query
applies to SubprogramsqueryOnCriterion
- The querytrue
if the given Query
applies to Subprogramsprotected Query getProgramThroughSubprogramsQuery(Query queryOnCriterion)
Query
that returns Programs by querying their SubProgramsqueryOnCriterion
- The query on SubProgramsQuery
that returns Programs