Class ProgramSearchable
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.web.frontoffice.search.metamodel.impl.AbstractParameterAdder
org.ametys.web.frontoffice.search.metamodel.impl.AbstractParameterAdderSearchable
org.ametys.web.frontoffice.search.metamodel.impl.AbstractContentBasedSearchable
org.ametys.plugins.odfweb.service.search.ProgramSearchable
- All Implemented Interfaces:
Cacheable
,LogEnabled
,PluginAware
,Searchable
,Disposable
,Initializable
,Configurable
,Contextualizable
,Serviceable
Searchable
for Program
s-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
AQuery
that returns Programs, by querying their child ProgramPartsNested classes/interfaces inherited from interface org.ametys.core.util.Cacheable
Cacheable.SingleCacheConfiguration
-
Field Summary
Modifier and TypeFieldDescriptionprotected DegreeUniversityHelper
The degree university helperstatic final String
The prefix for program searchablestatic final String
The additional parameter for indicating if search has to be made also on subprogramsstatic final String
The prefix for indexing field in program searcheablestatic final String
Avalon RoleFields inherited from class org.ametys.web.frontoffice.search.metamodel.impl.AbstractContentBasedSearchable
_associatedContentReturnable, _contentHelper, _criteriaPosition, _cTypeEP, _id, _label, _pageReturnable, _searchComponentHelper
Fields inherited from class org.ametys.web.frontoffice.search.metamodel.impl.AbstractParameterAdder
_manager, _pluginName
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
The Avalon Role for the associated Content ReturnablebuildQuery
(AbstractTreeNode<FOSearchCriterion> criterionTree, Map<String, Object> userCriteria, Collection<Returnable> returnables, Collection<Searchable> searchables, AdditionalParameterValueMap additionalParameters, String currentLang, Map<String, Object> contextualParameters) Builds the query of the criterion treeprotected Collection<String>
getContentTypes
(AdditionalParameterValueMap additionalParameterValues) Gets the content types which will be used to retrieve the criteria relative to the Indexing ModelgetCriteria
(AdditionalParameterValueMap additionalParameterValues) Gets the criteriaprotected String
Gets the prefix for criterion definitionsprotected Query
getProgramThroughSubprogramsQuery
(Query queryOnCriterion) Gets theQuery
that returns Programs by querying their SubProgramsjoinQuery
(Query queryOnCriterion, SearchCriterionDefinition criterion, Collection<Returnable> returnables, AdditionalParameterValueMap additionalParameters) Returns the query which joins the given one (on a criterion) with the given result typesRetrieves the relations the type must have with someReturnable
s.void
service
(ServiceManager manager) Methods inherited from class org.ametys.web.frontoffice.search.metamodel.impl.AbstractContentBasedSearchable
_setAssociatedContentReturnable, configure, contextualize, criteriaPosition, dispose, getCacheManager, getIndexingFieldCriterionDefinitionPrefix, getLabel, getManagedCaches, getSystemPropertyCriterionDefinitionPrefix, hasComputableSize, initialize
Methods inherited from class org.ametys.web.frontoffice.search.metamodel.impl.AbstractParameterAdder
additionalServiceParameters, setPluginInfo
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ametys.core.util.Cacheable
createCaches, getCache, isCachingEnabled, removeCaches
Methods inherited from interface org.ametys.web.frontoffice.search.metamodel.Searchable
additionalServiceParameters
-
Field Details
-
ROLE
Avalon Role -
PARAMETER_SEARCH_ON_SUBPROGRAMS
The additional parameter for indicating if search has to be made also on subprograms- See Also:
-
CRITERION_DEFINITIONS_PREFIX_ID
The prefix for program searchable- See Also:
-
PROGRAM_SEARCHEABLE_INDEXING_FIELD_PREFIX
The prefix for indexing field in program searcheable- See Also:
-
_degreeUniversityHelper
The degree university helper
-
-
Constructor Details
-
ProgramSearchable
public ProgramSearchable()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classAbstractContentBasedSearchable
- Throws:
ServiceException
-
associatedContentReturnableRole
Description copied from class:AbstractContentBasedSearchable
The Avalon Role for the associated Content Returnable- Specified by:
associatedContentReturnableRole
in classAbstractContentBasedSearchable
- Returns:
- The Avalon Role for the associated Content Returnable
-
getCriterionDefinitionPrefix
Description copied from class:AbstractContentBasedSearchable
Gets the prefix for criterion definitions- Specified by:
getCriterionDefinitionPrefix
in classAbstractContentBasedSearchable
- Returns:
- the prefix for criterion definitions
-
relationsWith
Description copied from interface:Searchable
Retrieves the relations the type must have with someReturnable
s.
It does not have to be exhaustive (for instance ifReturnable.relationsWith()
declares the relation, it is useless to declare it twice)- Specified by:
relationsWith
in interfaceSearchable
- Overrides:
relationsWith
in classAbstractContentBasedSearchable
- Returns:
- some relations the type must have with some
Returnable
s
-
getContentTypes
Description copied from class:AbstractContentBasedSearchable
Gets the content types which will be used to retrieve the criteria relative to the Indexing Model- Specified by:
getContentTypes
in classAbstractContentBasedSearchable
- Parameters:
additionalParameterValues
- The additional parameter values- Returns:
- the content types which will be used to retrieve the criteria relative to the Indexing Model
-
joinQuery
public Optional<Query> joinQuery(Query queryOnCriterion, SearchCriterionDefinition criterion, Collection<Returnable> returnables, AdditionalParameterValueMap additionalParameters) Description copied from interface:Searchable
Returns the query which joins the given one (on a criterion) with the given result types- Parameters:
queryOnCriterion
- The query on the criterion to join fromcriterion
- the criterionreturnables
- The returnables to join toadditionalParameters
- The additional parameters- Returns:
- the joined query
-
buildQuery
public Query buildQuery(AbstractTreeNode<FOSearchCriterion> criterionTree, Map<String, Object> userCriteria, Collection<Returnable> returnables, Collection<Searchable> searchables, AdditionalParameterValueMap additionalParameters, String currentLang, Map<String, Object> contextualParameters) Description copied from interface:Searchable
Builds the query of the criterion tree- Specified by:
buildQuery
in interfaceSearchable
- Overrides:
buildQuery
in classAbstractContentBasedSearchable
- Parameters:
criterionTree
- The criterion tree of the service instanceuserCriteria
- The user input criteriareturnables
- The returnables of the service instancesearchables
- The searchables of the service instanceadditionalParameters
- The values of additional parameters of the service instancecurrentLang
- The current langcontextualParameters
- the search contextual parameters.- Returns:
- The query of the criterion tree
-
getProgramThroughSubprogramsQuery
Gets theQuery
that returns Programs by querying their SubPrograms- Parameters:
queryOnCriterion
- The query on SubPrograms- Returns:
- The
Query
that returns Programs
-
getCriteria
public Collection<SearchCriterionDefinition> getCriteria(AdditionalParameterValueMap additionalParameterValues) Description copied from interface:Searchable
Gets the criteria- Specified by:
getCriteria
in interfaceSearchable
- Overrides:
getCriteria
in classAbstractContentBasedSearchable
- Parameters:
additionalParameterValues
- The additional parameter values- Returns:
- the criteria
-