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,Serviceable
Searchable for Programs-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classAQuerythat returns Programs, by querying their child ProgramPartsNested classes/interfaces inherited from interface org.ametys.core.util.Cacheable
Cacheable.SingleCacheConfiguration -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DegreeUniversityHelperThe degree university helperstatic final StringThe prefix for program searchablestatic final StringThe additional parameter for indicating if search has to be made also on subprogramsstatic final StringThe prefix for criterion definition in program searcheablestatic final StringAvalon RoleFields inherited from class org.ametys.web.frontoffice.search.metamodel.impl.AbstractContentBasedSearchable
_associatedContentReturnable, _contentHelper, _contentTypeExtensionPoint, _contentTypesHelper, _criteriaPosition, _id, _label, _pageReturnable, _searchComponentHelperFields inherited from class org.ametys.web.frontoffice.search.metamodel.impl.AbstractParameterAdder
_manager, _pluginName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringThe Avalon Role for the associated Content ReturnablebuildQuery(AbstractTreeNode<SearchServiceCriterion<?>> 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 treegetContentTypeIds(AdditionalParameterValueMap additionalParameterValues) Gets the content type identifiers which will be used to retrieve the criteriagetCriteria(AdditionalParameterValueMap additionalParameterValues) Gets the criteriaprotected StringGets the prefix for criterion definitionsprotected QuerygetProgramThroughSubprogramsQuery(Query queryOnCriterion) Gets theQuerythat returns Programs by querying their SubProgramsjoinQuery(Query queryOnCriterion, SearchServiceCriterionDefinition 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 someReturnables.voidservice(ServiceManager manager) Methods inherited from class org.ametys.web.frontoffice.search.metamodel.impl.AbstractContentBasedSearchable
_setAssociatedContentReturnable, configure, criteriaPosition, dispose, getCacheManager, getLabel, getManagedCaches, getTitleCriterionDefinitionName, hasComputableSize, initializeMethods inherited from class org.ametys.web.frontoffice.search.metamodel.impl.AbstractParameterAdder
additionalServiceParameters, setPluginInfoMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLoggerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ametys.core.util.Cacheable
createCaches, getCache, isCachingEnabled, removeCachesMethods 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_CRITERION_DEFINITION_PREFIX
The prefix for criterion definition in program searcheable- See Also:
-
_degreeUniversityHelper
The degree university helper
-
-
Constructor Details
-
ProgramSearchable
public ProgramSearchable()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classAbstractContentBasedSearchable- Throws:
ServiceException
-
associatedContentReturnableRole
Description copied from class:AbstractContentBasedSearchableThe Avalon Role for the associated Content Returnable- Specified by:
associatedContentReturnableRolein classAbstractContentBasedSearchable- Returns:
- The Avalon Role for the associated Content Returnable
-
getCriterionDefinitionPrefix
Description copied from class:AbstractContentBasedSearchableGets the prefix for criterion definitions- Specified by:
getCriterionDefinitionPrefixin classAbstractContentBasedSearchable- Returns:
- the prefix for criterion definitions
-
relationsWith
Description copied from interface:SearchableRetrieves the relations the type must have with someReturnables.
It does not have to be exhaustive (for instance ifReturnable.relationsWith()declares the relation, it is useless to declare it twice)- Specified by:
relationsWithin interfaceSearchable- Overrides:
relationsWithin classAbstractContentBasedSearchable- Returns:
- some relations the type must have with some
Returnables
-
getContentTypeIds
Description copied from class:AbstractContentBasedSearchableGets the content type identifiers which will be used to retrieve the criteria- Specified by:
getContentTypeIdsin classAbstractContentBasedSearchable- Parameters:
additionalParameterValues- The additional parameter values- Returns:
- the content type identifiers which will be used to retrieve the criteria
-
joinQuery
public Optional<Query> joinQuery(Query queryOnCriterion, SearchServiceCriterionDefinition criterion, Collection<Returnable> returnables, AdditionalParameterValueMap additionalParameters) Description copied from interface:SearchableReturns 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<SearchServiceCriterion<?>> criterionTree, Map<String, Object> userCriteria, Collection<Returnable> returnables, Collection<Searchable> searchables, AdditionalParameterValueMap additionalParameters, String currentLang, Map<String, Object> contextualParameters) Description copied from interface:SearchableBuilds the query of the criterion tree- Specified by:
buildQueryin interfaceSearchable- Overrides:
buildQueryin 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 theQuerythat returns Programs by querying their SubPrograms- Parameters:
queryOnCriterion- The query on SubPrograms- Returns:
- The
Querythat returns Programs
-
getCriteria
public Collection<SearchServiceCriterionDefinition> getCriteria(AdditionalParameterValueMap additionalParameterValues) Description copied from interface:SearchableGets the criteria- Specified by:
getCriteriain interfaceSearchable- Overrides:
getCriteriain classAbstractContentBasedSearchable- Parameters:
additionalParameterValues- The additional parameter values- Returns:
- the criteria
-