fix validators
This commit is contained in:
parent
1e2d29c25e
commit
ce07073687
|
@ -1,17 +1,5 @@
|
|||
package org.opencdmp.model.actionconfirmation;
|
||||
|
||||
import org.opencdmp.commons.validation.BaseValidator;
|
||||
import gr.cite.tools.validation.specification.Specification;
|
||||
import org.opencdmp.convention.ConventionService;
|
||||
import org.opencdmp.errorcode.ErrorThesaurusProperties;
|
||||
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
|
||||
import org.springframework.context.MessageSource;
|
||||
import org.springframework.context.annotation.Scope;
|
||||
import org.springframework.context.i18n.LocaleContextHolder;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
public class RemoveCredentialRequest {
|
||||
|
|
|
@ -4,7 +4,9 @@ import org.opencdmp.commons.validation.BaseValidator;
|
|||
import org.opencdmp.convention.ConventionService;
|
||||
import org.opencdmp.errorcode.ErrorThesaurusProperties;
|
||||
import gr.cite.tools.validation.specification.Specification;
|
||||
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
|
||||
import org.springframework.context.MessageSource;
|
||||
import org.springframework.context.annotation.Scope;
|
||||
import org.springframework.context.i18n.LocaleContextHolder;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
|
@ -36,6 +38,7 @@ public class ExternalIdentifierPersist {
|
|||
}
|
||||
|
||||
@Component(PersistValidator.ValidatorName)
|
||||
@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
|
||||
public static class PersistValidator extends BaseValidator<ExternalIdentifierPersist> {
|
||||
|
||||
public static final String ValidatorName = "Description.ExternalIdentifierPersistPersistValidator";
|
||||
|
|
|
@ -12,7 +12,9 @@ import org.opencdmp.errorcode.ErrorThesaurusProperties;
|
|||
import org.opencdmp.model.persist.ReferencePersist;
|
||||
import org.opencdmp.model.persist.TagPersist;
|
||||
import org.opencdmp.service.visibility.VisibilityService;
|
||||
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
|
||||
import org.springframework.context.MessageSource;
|
||||
import org.springframework.context.annotation.Scope;
|
||||
import org.springframework.context.i18n.LocaleContextHolder;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
|
@ -114,6 +116,7 @@ public class FieldPersist {
|
|||
}
|
||||
|
||||
@Component(PersistValidator.ValidatorName)
|
||||
@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
|
||||
public static class PersistValidator extends BaseValidator<FieldPersist> {
|
||||
|
||||
public static final String ValidatorName = "Description.FieldPersistValidator";
|
||||
|
|
|
@ -10,7 +10,9 @@ import org.opencdmp.errorcode.ErrorThesaurusProperties;
|
|||
import org.opencdmp.service.visibility.VisibilityService;
|
||||
import gr.cite.tools.validation.ValidatorFactory;
|
||||
import gr.cite.tools.validation.specification.Specification;
|
||||
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
|
||||
import org.springframework.context.MessageSource;
|
||||
import org.springframework.context.annotation.Scope;
|
||||
import org.springframework.context.i18n.LocaleContextHolder;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
|
@ -54,6 +56,7 @@ public class PropertyDefinitionFieldSetItemPersist {
|
|||
}
|
||||
|
||||
@Component(PersistValidator.ValidatorName)
|
||||
@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
|
||||
public static class PersistValidator extends BaseValidator<PropertyDefinitionFieldSetItemPersist> {
|
||||
|
||||
public static final String ValidatorName = "Description.PropertyDefinitionFieldSetItemPersistValidator";
|
||||
|
|
|
@ -9,7 +9,9 @@ import org.opencdmp.errorcode.ErrorThesaurusProperties;
|
|||
import org.opencdmp.service.visibility.VisibilityService;
|
||||
import gr.cite.tools.validation.ValidatorFactory;
|
||||
import gr.cite.tools.validation.specification.Specification;
|
||||
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
|
||||
import org.springframework.context.MessageSource;
|
||||
import org.springframework.context.annotation.Scope;
|
||||
import org.springframework.context.i18n.LocaleContextHolder;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
|
@ -30,6 +32,7 @@ public class PropertyDefinitionFieldSetPersist {
|
|||
}
|
||||
|
||||
@Component(PersistValidator.ValidatorName)
|
||||
@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
|
||||
public static class PersistValidator extends BaseValidator<PropertyDefinitionFieldSetPersist> {
|
||||
|
||||
public static final String ValidatorName = "Description.PropertyDefinitionFieldSetPersistValidator";
|
||||
|
|
Loading…
Reference in New Issue