Class AbstractEntitiesValidator

java.lang.Object
ch.tocco.nice2.persist.core.api.validation.AbstractEntitiesValidator
All Implemented Interfaces:
EntitiesValidator
Direct Known Subclasses:
AcceptorValidator, AddressUpdateWidgetConfigValidator, BatchjobStartTimeValidator, BrevoAttributePathValidator, BrevoAttributeValueValidator, BusinessUnitDefaultFromValidator, ContentReferenceSourceFkValidator, DebitorInformationValidator, DonationVoucherAccountValidator, DuplicateFieldValidator, EvaluationNodeInputNodeCombinationValidator, EvaluationNodeLoopValidator, EventModuleCountValidator, EventQuestionAnswerValidator, ExternalCmsRoleValidator, FreemarkerCodeWidgetValidator, GenericConditionValidator, GradeScaleValidator, InputDataLogicValidator, InputEvaluationRequiredValidator, ManualSetBusinessUnitValidator, MatchCodeValidator, OrderDebitorValidator, OverlappingWidgetDomainValidator, PageLimitValidator, PaymentMethodValidator, PromotionRuleValidator, SalutationTextsValidator, ScriptScheduleValidator, SeminarEventTemplateValidator, SpecificWidgetConfigRelationValidator, TermsConditionLinkValidator, WageViewWidgetConfigValidator, WidgetBusinessUnitValidator, WidgetDeactivatedValidator, WidgetDeactivationValidator

public abstract class AbstractEntitiesValidator extends Object implements EntitiesValidator
Default implementation for EntitiesValidator
  • Constructor Details

    • AbstractEntitiesValidator

      public AbstractEntitiesValidator()
  • Method Details

    • addMyself

      public boolean addMyself(EntityModel model)
      Description copied from interface: EntitiesValidator
      Implement this method to return true if the Validator should add itself to the EntityModel at hand. This method can be useful, if a validator is being used for all models meeting a certain requirement (e.g. model has a field of type X, entity is a lookup entity, etc.). The method is called for each entity model at application startup when building the entity model.
      Specified by:
      addMyself in interface EntitiesValidator
      Parameters:
      model - the EntityModel
      Returns:
      true to add the Validator to the EntityModel at hand
    • getName

      public final String getName()
      Specified by:
      getName in interface EntitiesValidator