Class GalasaResourceValidator<T>

java.lang.Object
dev.galasa.framework.api.common.resources.AbstractValidator
dev.galasa.framework.api.common.resources.GalasaResourceValidator<T>
All Implemented Interfaces:
IBeanValidator<T>
Direct Known Subclasses:
SecretValidator

public abstract class GalasaResourceValidator<T> extends AbstractValidator implements IBeanValidator<T>
An abstract class containing the base methods used to validate Galasa resources.
  • Field Details

  • Constructor Details

    • GalasaResourceValidator

      public GalasaResourceValidator()
    • GalasaResourceValidator

      public GalasaResourceValidator(ResourceAction action)
  • Method Details

    • getValidationErrors

      public List<String> getValidationErrors()
    • getMissingResourceFields

      protected List<String> getMissingResourceFields(com.google.gson.JsonObject resourceJson, List<String> requiredFields)
    • checkResourceHasRequiredFields

      protected void checkResourceHasRequiredFields(com.google.gson.JsonObject resourceJson, String expectedApiVersion) throws InternalServletException
      Throws:
      InternalServletException