Package org.ametys.core.user.population
Class MisconfiguredPopulationAdministratorNotificator
- java.lang.Object
-
- org.ametys.runtime.plugins.admin.notificator.AbstractConfigurableAdministratorNotificator
-
- org.ametys.core.user.population.MisconfiguredPopulationAdministratorNotificator
-
- All Implemented Interfaces:
PluginAware
,AdministratorNotificator
,Configurable
,Serviceable
public class MisconfiguredPopulationAdministratorNotificator extends AbstractConfigurableAdministratorNotificator implements Serviceable
Notificator forUserPopulation
s in warning because of a invalid configuration (not fatal)
-
-
Field Summary
Fields Modifier and Type Field Description private I18nUtils
_i18nUtils
private UserPopulationDAO
_userPopulationDAO
-
Fields inherited from class org.ametys.runtime.plugins.admin.notificator.AbstractConfigurableAdministratorNotificator
_action, _iconGlyph, _message, _pluginName, _title, _type
-
-
Constructor Summary
Constructors Constructor Description MisconfiguredPopulationAdministratorNotificator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private I18nizableText
_getMessage(Set<String> upIds)
private Notification.NotificationType
_getType(Set<String> upIds)
List<Notification>
getNotifications()
Gets the notifications to send to the admin.void
service(ServiceManager manager)
-
Methods inherited from class org.ametys.runtime.plugins.admin.notificator.AbstractConfigurableAdministratorNotificator
configure, setPluginInfo
-
-
-
-
Field Detail
-
_userPopulationDAO
private UserPopulationDAO _userPopulationDAO
-
_i18nUtils
private I18nUtils _i18nUtils
-
-
Constructor Detail
-
MisconfiguredPopulationAdministratorNotificator
public MisconfiguredPopulationAdministratorNotificator()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
getNotifications
public List<Notification> getNotifications()
Description copied from interface:AdministratorNotificator
Gets the notifications to send to the admin.- Specified by:
getNotifications
in interfaceAdministratorNotificator
- Returns:
- The potential notifications to send.
-
_getType
private Notification.NotificationType _getType(Set<String> upIds)
-
_getMessage
private I18nizableText _getMessage(Set<String> upIds)
-
-