Interface IEntityValidator


  • public interface IEntityValidator
    This interface needs to be implemented by all entity validators.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void init​(ch.systemsx.cisd.openbis.generic.server.dataaccess.dynamic_property.calculator.JythonEntityValidationCalculator.IValidationRequestDelegate<ch.systemsx.cisd.openbis.generic.server.dataaccess.dynamic_property.calculator.INonAbstractEntityAdapter> validationRequestedDelegate)
      Before the validation is triggered, the validator is initialized by calling this method.
      java.lang.String validate​(IEntityAdaptor entity, boolean isNew)
      Main method, that performs actual validation
    • Method Detail

      • init

        void init​(ch.systemsx.cisd.openbis.generic.server.dataaccess.dynamic_property.calculator.JythonEntityValidationCalculator.IValidationRequestDelegate<ch.systemsx.cisd.openbis.generic.server.dataaccess.dynamic_property.calculator.INonAbstractEntityAdapter> validationRequestedDelegate)
        Before the validation is triggered, the validator is initialized by calling this method.
        Parameters:
        validationRequestedDelegate - object responsible for handling requests for entity validation
      • validate

        java.lang.String validate​(IEntityAdaptor entity,
                                  boolean isNew)
        Main method, that performs actual validation
        Parameters:
        entity - entity that needs to be validated
        isNew - true if the entity is freshly created, false if the entity was only updated.