Interface DefaultValueReferenceValidator


  • public interface DefaultValueReferenceValidator
    Validates whether attributes exist with default values referencing given entities.
    See Also:
    AttributeMetadata
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.stream.Stream<org.molgenis.data.Entity> validateEntitiesNotReferenced​(java.util.stream.Stream<org.molgenis.data.Entity> entityStream, org.molgenis.data.meta.model.EntityType entityType)
      Appends a filter to the given stream that throws a MolgenisValidationException if an entity is referenced by an Attribute.
      java.util.stream.Stream<java.lang.Object> validateEntitiesNotReferencedById​(java.util.stream.Stream<java.lang.Object> entityIdStream, org.molgenis.data.meta.model.EntityType entityType)
      Appends a filter to the given stream that throws a MolgenisValidationException if an entity with the given id is referenced by an Attribute.
      void validateEntityNotReferenced​(org.molgenis.data.Entity entity)  
      void validateEntityNotReferencedById​(java.lang.Object entityId, org.molgenis.data.meta.model.EntityType entityType)  
      void validateEntityTypeNotReferenced​(org.molgenis.data.meta.model.EntityType entityType)  
    • Method Detail

      • validateEntityNotReferenced

        void validateEntityNotReferenced​(org.molgenis.data.Entity entity)
        Throws:
        MolgenisValidationException - if the given entity is referenced by an Attribute
      • validateEntitiesNotReferenced

        java.util.stream.Stream<org.molgenis.data.Entity> validateEntitiesNotReferenced​(java.util.stream.Stream<org.molgenis.data.Entity> entityStream,
                                                                                        org.molgenis.data.meta.model.EntityType entityType)
        Appends a filter to the given stream that throws a MolgenisValidationException if an entity is referenced by an Attribute.
      • validateEntityNotReferencedById

        void validateEntityNotReferencedById​(java.lang.Object entityId,
                                             org.molgenis.data.meta.model.EntityType entityType)
        Throws:
        MolgenisValidationException - if the entity with the given id is referenced by an Attribute
      • validateEntitiesNotReferencedById

        java.util.stream.Stream<java.lang.Object> validateEntitiesNotReferencedById​(java.util.stream.Stream<java.lang.Object> entityIdStream,
                                                                                    org.molgenis.data.meta.model.EntityType entityType)
        Appends a filter to the given stream that throws a MolgenisValidationException if an entity with the given id is referenced by an Attribute.
      • validateEntityTypeNotReferenced

        void validateEntityTypeNotReferenced​(org.molgenis.data.meta.model.EntityType entityType)
        Throws:
        MolgenisValidationException - if the given entity is referenced by an Attribute