Class NotificationTypeValidator

  • All Implemented Interfaces:
    org.springframework.validation.Validator

    public class NotificationTypeValidator
    extends java.lang.Object
    implements org.springframework.validation.Validator
    Validate the notification type by the extension which inject the specific notification type list.
    • Constructor Detail

      • NotificationTypeValidator

        public NotificationTypeValidator()
    • Method Detail

      • supports

        public boolean supports​(java.lang.Class<?> arg0)
        Specified by:
        supports in interface org.springframework.validation.Validator
      • validate

        public void validate​(java.lang.Object obj,
                             org.springframework.validation.Errors errors)
        Specified by:
        validate in interface org.springframework.validation.Validator
      • getNotificationTypes

        protected java.util.List<NotificationType> getNotificationTypes()
      • setNotificationTypes

        public void setNotificationTypes​(java.util.List<NotificationType> notificationTypes)