Class SQLDataSetDefValidator

  • All Implemented Interfaces:
    DataSetDefValidator<org.dashbuilder.dataset.def.SQLDataSetDef>

    @Dependent
    public class SQLDataSetDefValidator
    extends AbstractDataSetDefValidator<org.dashbuilder.dataset.def.SQLDataSetDef>

    The singleton application SQL data set definition validator.

    Since:
    0.4.0
    • Constructor Detail

      • SQLDataSetDefValidator

        @Inject
        public SQLDataSetDefValidator​(javax.validation.Validator validator)
    • Method Detail

      • getSupportedProvider

        public org.dashbuilder.dataprovider.DataSetProviderType getSupportedProvider()
        Description copied from interface: DataSetDefValidator
        Retrieves the supported DataSetDef type
      • validateCustomAttributes

        public Iterable<javax.validation.ConstraintViolation<?>> validateCustomAttributes​(org.dashbuilder.dataset.def.SQLDataSetDef dataSetDef,
                                                                                          Object... params)
        Description copied from interface: DataSetDefValidator
        Validates the DataSetDef specific attributes
      • validate

        public Iterable<javax.validation.ConstraintViolation<?>> validate​(org.dashbuilder.dataset.def.SQLDataSetDef dataSetDef,
                                                                          boolean isCacheEnabled,
                                                                          boolean isPushEnabled,
                                                                          boolean isRefreshEnabled,
                                                                          Object... params)
        Description copied from interface: DataSetDefValidator
        Validates a DataSetDef