Class DegreeUniversityHelper
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.odfweb.service.search.helper.DegreeUniversityHelper
- All Implemented Interfaces:
LogEnabled,PluginAware,Component,Serviceable
public class DegreeUniversityHelper
extends AbstractLogEnabled
implements Component, Serviceable, PluginAware
The helper for degree university
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ContentTypeExtensionPointThe content type extension pointprotected StringThe plugin nameprotected AmetysObjectResolverThe Ametys Object resolverstatic final StringThe avalon role. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDegrees(boolean isUniversity) Get all degree contents of type university or notgetDegreeUniversityCriterionDefinition(Searchable searcheable) Get the degree university criterion definitionvoidservice(ServiceManager manager) voidsetPluginInfo(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.Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
ROLE
The avalon role. -
_resolver
The Ametys Object resolver -
_contentTypeExtensionPoint
The content type extension point -
_pluginName
The plugin name
-
-
Constructor Details
-
DegreeUniversityHelper
public DegreeUniversityHelper()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
setPluginInfo
Description copied from interface:PluginAwareSets the plugin info relative to the current component.
Note : The feature name may be null if the targeted component in declared at plugin level.- Specified by:
setPluginInfoin interfacePluginAware- Parameters:
pluginName- Unique identifier for the plugin hosting the extensionfeatureName- Unique feature identifier (unique for a given pluginName)id- Unique identifier of this component
-
getDegrees
Get all degree contents of type university or not- Parameters:
isUniversity-trueto return all degree contents of type university- Returns:
- the list of degree contents
-
getDegreeUniversityCriterionDefinition
public SearchServiceCriterionDefinition getDegreeUniversityCriterionDefinition(Searchable searcheable) Get the degree university criterion definition- Parameters:
searcheable- the searcheable link to the criterion definition- Returns:
- the criterion definition
-