Interface EntitiesValidator
- All Known Subinterfaces:
EntityValidator
- All Known Implementing Classes:
AbsenceReportContractValidator
,AbstractEntitiesValidator
,AbstractEntityValidator
,AbstractInactiveAccountValidator
,AbstractInactiveCostCenterValidator
,AbstractOrderAccountValidator
,AcceptorValidator
,AccountTypeValidator
,AccountUniqueNumberValidator
,AccountVatSettingsValidator
,AddressUpdateWidgetConfigValidator
,AffiliationQueryValidator
,AnswerOptionIdUniqueValidator
,ArticleStatusValidator
,AutoIntrusionMandatoryRelationValidator
,BalancedWageValidator
,BatchjobStartTimeValidator
,BrevoAttributePathValidator
,BrevoAttributeValueValidator
,BusinessAddressValidator
,BusinessUnitCostAccountingValidator
,BusinessUnitDefaultFromValidator
,BusinessUnitDependentDefaultFlagValidator
,BusinessUnitFinanceFlagValidator
,BusinessUnitHierarchyValidator
,CaseRegistrationValidator
,CheckEventOnModuleGroupValidator
,ContentReferenceSourceFkValidator
,ContingentEstimationValidator
,ContingentValidator
,CostAccountingValidator
,CostCenterUniqueNumberValidator
,DeactivationValidator
,DebitAccountDebitorValidator
,DebitorInformationValidator
,DefaultSearchFilterValidator
,DiscountValidator
,DonationStatusValidator
,DonationUserOrganisationValidator
,DonationVoucherAccountValidator
,DuplicateFieldValidator
,EffortDurationEntityValidator
,EffortProjectionUniqueUserTypeValidator
,EffortProjectionUserOrTypeRelationEntityValidator
,EqualAddressAddressEntityExistsValidator
,EqualUserUserEntityExistsValidator
,EsrAccountBesrValidator
,EsrAccountIbanValidator
,EvaluationNodeInputNodeCombinationValidator
,EvaluationNodeLoopValidator
,EvaluationTemplateAddressDaysValidator
,EventDismissValidator
,EventModuleCountValidator
,EventOverbookedValidator
,EventQuestionAnswerValidator
,EventRelationshipValidator
,ExamSumValidator
,ExpenseProjectionEntityValidator
,ExternalCmsRoleValidator
,FixatedQuestionnaireValidator
,FreemarkerCodeWidgetValidator
,GenericConditionValidator
,GradeScaleValidator
,IdenticalRuleCheckValidator
,InactiveAccountValidator
,InactiveAccountValidator
,InactiveCostCenterValidator
,InactiveCostCenterValidator
,InputDataLogicValidator
,InputEvaluationRequiredValidator
,InputNodePointsMaxValidator
,LicenceTimeValidator
,MailBoxValidator
,MailFormConfValidator
,ManualSetBusinessUnitValidator
,MatchCodeValidator
,MembershipTypeValidator
,NewLicenceBirthdayRangeValidator
,OfftimeEventValidator
,OrderAccountValidator
,OrderAddressValidator
,OrderBillingDateValidator
,OrderDebitorValidator
,OrderPositionAccountValidator
,OrderPositionDebitorStatusValidator
,OrderPositionValidator
,OrderStatusDateValidator
,OverlappingWidgetDomainValidator
,OwnSalaryValidator
,PageLimitValidator
,ParentSelectedValidator
,PathUniquenessValidator
,PaymentMethodValidator
,PeriodDatesValidator
,PriceCategoryValidator
,PromotionCodeValidator
,PromotionRuleValidator
,PublishedContentExistsValidator
,QuestionFieldTypeValidator
,QuestionValidator
,ReferenceCodeUniqueValidator
,RegistrationAnswerOptionValidator
,RequirementRuleValidator
,ReservationLessonWageValidator
,RuleValidator
,SalaryDefaultFlagValidator
,SalutationTextsValidator
,SchoolingContributionValidator
,ScriptScheduleValidator
,SeminarEventTemplateValidator
,SeminarRegistrationValidator
,SeminarRelationValidator
,SeminarStartValidator
,SingleRegistrationFromFlowValidator
,SpecificWidgetConfigRelationValidator
,StandardBooleanRequiresFieldEntityValidator
,StandardDesignatedRelationEntityValidator
,StandardEvaluationTemplateNoModuleValidator
,StandardEvaluationTemplateValidator
,StandardFieldOrRelationEntityValidator
,StandardMandatoryEntityValidator
,StandardMandatoryGroupValidator
,StandardRelationCountEntityValidator
,StandardStateEntityValidator
,StandardTimeEntityValidator
,StornoVoucherDateValidator
,SurveyCategoryDefinitionValidator
,SurveyCategoryQuestionValidator
,SurveyPointsValidator
,SurveyQuestionTypeValidator
,TermsConditionLinkValidator
,TimereportCodeValidator
,TimereportRecordEntityValidator
,UniqueBusinessUnitCorporateDesignValidator
,UserDefaultSearchFilterValidator
,UsernameAsciiValidator
,ValidFromDateValidator
,VatCodeBusinessUnitValidator
,VatCodeValidator
,VatRateValidator
,VoucherTypeStatusValidator
,VoucherValidator
,WageScaleConditionValidator
,WageScaleModifierValidator
,WageViewConfValidator
,WageViewWidgetConfigValidator
,WidgetBusinessUnitValidator
,WidgetDeactivatedValidator
,WidgetDeactivationValidator
public interface EntitiesValidator
EntityValidators need to implement this interface and be contributed to the configuration point
"nice2.model.entity.EntityValidators" along with a filter describing which entity models will use the
validator.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addMyself
(EntityModel model) Implement this method to return true if the Validator should add itself to the EntityModel at hand.getName()
void
Validate all entities (of one entity model) that where changed in a transaction
-
Method Details
-
validate
Validate all entities (of one entity model) that where changed in a transaction- Parameters:
entities
- the entities to be validatedvalidationResults
- a map of EntityValidationResults, contains anEntityValidationResult
for each entity. SeeEntityValidationResult
for more details on how to use the EntityValidationResult
-
addMyself
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.- Parameters:
model
- the EntityModel- Returns:
- true to add the Validator to the EntityModel at hand
-
getName
String getName()
-