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
_contentHelper
The content helperprotected Context
_context
The contextprotected ContentTypeExtensionPoint
_cTypeEP
The content type extension pointprotected I18nUtils
_i18nUtils
The i18n utilsprotected ServiceManager
_manager
The service managerprotected String
_pluginName
The plugin nameprotected AmetysObjectResolver
_resolver
The Ametys Object resolverstatic String
ROLE
The avalon role.
-
Constructor Summary
Constructors Constructor Description DegreeUniversityHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
contextualize(Context context)
List<Content>
getDegrees(boolean isUniversity)
Get all degree contents of type university or notDegreeUniversityAttributeContentSearchCriterionDefinition
getDegreeUniversityCriterionDefinition(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 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:
service
in interfaceServiceable
- Throws:
ServiceException
-
contextualize
public void contextualize(Context context) throws ContextException
- Specified by:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
setPluginInfo
public void setPluginInfo(String pluginName, String featureName, String id)
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
public List<Content> getDegrees(boolean isUniversity)
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
-
-