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,Contextualizable,Serviceable
public class DegreeUniversityHelper
extends AbstractLogEnabled
implements Component, Serviceable, Contextualizable, PluginAware
The helper for degree university
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ContentHelperThe content helperprotected ContextThe contextprotected ContentTypeExtensionPointThe content type extension pointprotected I18nUtilsThe i18n utilsprotected ServiceManagerThe service managerprotected StringThe plugin nameprotected AmetysObjectResolverThe Ametys Object resolverstatic final StringThe avalon role. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcontextualize(Context context) getDegrees(boolean isUniversity) Get all degree contents of type university or notgetDegreeUniversityCriterionDefinition(Searchable searcheable) Get the degree university search 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 -
_i18nUtils
The i18n utils -
_cTypeEP
The content type extension point -
_contentHelper
The content helper -
_manager
The service manager -
_context
The context -
_pluginName
The plugin name
-
-
Constructor Details
-
DegreeUniversityHelper
public DegreeUniversityHelper()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
contextualize
- Specified by:
contextualizein interfaceContextualizable- Throws:
ContextException
-
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 DegreeUniversityAttributeContentSearchCriterionDefinition getDegreeUniversityCriterionDefinition(Searchable searcheable) Get the degree university search criterion definition- Parameters:
searcheable- the searcheable link to the criterion definition- Returns:
- the search criterion definition
-