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
Fields Modifier and Type Field Description protected ContentHelper_contentHelperThe content helperprotected Context_contextThe contextprotected ContentTypeExtensionPoint_cTypeEPThe content type extension pointprotected I18nUtils_i18nUtilsThe i18n utilsprotected ServiceManager_managerThe service managerprotected String_pluginNameThe plugin nameprotected AmetysObjectResolver_resolverThe Ametys Object resolverstatic StringROLEThe avalon role.
-
Constructor Summary
Constructors Constructor Description DegreeUniversityHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcontextualize(Context context)List<Content>getDegrees(boolean isUniversity)Get all degree contents of type university or notDegreeUniversityAttributeContentSearchCriterionDefinitiongetDegreeUniversityCriterionDefinition(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 Detail
-
_resolver
protected AmetysObjectResolver _resolver
The Ametys Object resolver
-
_i18nUtils
protected I18nUtils _i18nUtils
The i18n utils
-
_cTypeEP
protected ContentTypeExtensionPoint _cTypeEP
The content type extension point
-
_contentHelper
protected ContentHelper _contentHelper
The content helper
-
_manager
protected ServiceManager _manager
The service manager
-
_pluginName
protected String _pluginName
The plugin name
-
-
Constructor Detail
-
DegreeUniversityHelper
public DegreeUniversityHelper()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
contextualize
public void contextualize(Context context) throws ContextException
- Specified by:
contextualizein interfaceContextualizable- Throws:
ContextException
-
setPluginInfo
public void setPluginInfo(String pluginName, String featureName, String id)
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
public List<Content> getDegrees(boolean isUniversity)
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
-
-