Package io.jmix.notifications.impl
Class NotificationTypesRepositoryImpl
java.lang.Object
io.jmix.notifications.impl.NotificationTypesRepositoryImpl
- All Implemented Interfaces:
- NotificationTypesRepository
@Component
public class NotificationTypesRepositoryImpl
extends Object
implements NotificationTypesRepository
- 
Nested Class SummaryNested classes/interfaces inherited from interface io.jmix.notifications.NotificationTypesRepositoryNotificationTypesRepository.NotificationTypeRegistrationMode
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidclear()Unregisters all notification types.Gets all available notification typesgetTypeByNameOpt(String name) Tries to get notification type by provided name.voidregisterTypes(NotificationType... notificationTypes) Registers provided notification types withNotificationTypesRepository.NotificationTypeRegistrationMode.STRICTmode.voidregisterTypes(NotificationTypesRepository.NotificationTypeRegistrationMode mode, NotificationType... notificationTypes) Registers provided notification types with provided mode
- 
Field Details- 
registry
 
- 
- 
Constructor Details- 
NotificationTypesRepositoryImplpublic NotificationTypesRepositoryImpl()
 
- 
- 
Method Details- 
getAllTypesDescription copied from interface:NotificationTypesRepositoryGets all available notification types- Specified by:
- getAllTypesin interface- NotificationTypesRepository
- Returns:
- collection of notification types
 
- 
getTypeByNameOptDescription copied from interface:NotificationTypesRepositoryTries to get notification type by provided name.- Specified by:
- getTypeByNameOptin interface- NotificationTypesRepository
- Parameters:
- name- type name
- Returns:
- Optional with found notification type or empty Optional if type with provided name not found
 
- 
clearpublic void clear()Description copied from interface:NotificationTypesRepositoryUnregisters all notification types.- Specified by:
- clearin interface- NotificationTypesRepository
 
- 
registerTypesDescription copied from interface:NotificationTypesRepositoryRegisters provided notification types withNotificationTypesRepository.NotificationTypeRegistrationMode.STRICTmode.- Specified by:
- registerTypesin interface- NotificationTypesRepository
- Parameters:
- notificationTypes- notification types
 
- 
registerTypespublic void registerTypes(NotificationTypesRepository.NotificationTypeRegistrationMode mode, NotificationType... notificationTypes) Description copied from interface:NotificationTypesRepositoryRegisters provided notification types with provided mode- Specified by:
- registerTypesin interface- NotificationTypesRepository
- Parameters:
- mode- registration mode
- notificationTypes- notification types
 
 
-