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
Modifier and TypeFieldDescriptionprotected ContentHelper
The content helperprotected Context
The contextprotected ContentTypeExtensionPoint
The content type extension pointprotected I18nUtils
The i18n utilsprotected ServiceManager
The service managerprotected String
The plugin nameprotected AmetysObjectResolver
The Ametys Object resolverstatic final String
The avalon role. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
contextualize
(Context context) getDegrees
(boolean isUniversity) Get all degree contents of type university or notgetDegreeUniversityCriterionDefinition
(Searchable searcheable) Get the degree university search criterion definitionvoid
service
(ServiceManager manager) void
setPluginInfo
(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:
service
in interfaceServiceable
- Throws:
ServiceException
-
contextualize
- Specified by:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
setPluginInfo
Description copied from interface:PluginAware
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.- Specified by:
setPluginInfo
in 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
-true
to 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
-