Examples of validate()


Examples of org.glyptodon.guacamole.net.basic.auth.Authorization.validate()

            getAuthorizedConfigurations(Credentials credentials)
            throws GuacamoleException {

        // Validate and return info for given user and pass
        Authorization auth = getUserMapping().getAuthorization(credentials.getUsername());
        if (auth != null && auth.validate(credentials.getUsername(), credentials.getPassword()))
            return auth.getConfigurations();

        // Unauthorized
        return null;
View Full Code Here

Examples of org.goobi.production.plugin.interfaces.ICommandPlugin.validate()

        }
      }
      myCommandPlugin.setParameterMap(params);

      // let command validate if all parameters are correct: null means valid
      CommandResponse cr = myCommandPlugin.validate();
      if (cr != null) {
        generateAnswer(resp, cr);
        return;
      }
View Full Code Here

Examples of org.goobi.production.plugin.interfaces.IValidatorPlugin.validate()

    if (mySchritt.getValidationPlugin() != null && mySchritt.getValidationPlugin().length() > 0) {
      IValidatorPlugin ivp = (IValidatorPlugin) PluginLoader.getPluginByTitle(PluginType.Validation, mySchritt.getValidationPlugin());
      if (ivp != null) {
        ivp.setStep(mySchritt);
        if (!ivp.validate()) {
          return "";
        }
      } else {
        Helper.setFehlerMeldung("ErrorLoadingValidationPlugin");
      }
View Full Code Here

Examples of org.graylog2.plugin.database.validators.Validator.validate()

        for (Map.Entry<String, Validator> validation : validators.entrySet()) {
            Validator v = validation.getValue();
            String field = validation.getKey();

            try {
                ValidationResult validationResult = v.validate(fields.get(field));
                if (validationResult instanceof ValidationResult.ValidationFailed) {
                    LOG.debug("Validation failure: [{}] on field [{}]", v.getClass().getCanonicalName(), field);
                    if (validationErrors.get(field) == null)
                        validationErrors.put(field, new ArrayList<ValidationResult>());
                    validationErrors.get(field).add(validationResult);
View Full Code Here

Examples of org.gudy.azureus2.plugins.ui.UIInputValidator.validate()

              return;
            }
           
            UIInputValidator validator = SimpleTextEntryWindow.this.validator;
            if (validator != null) {
              String validate_result = validator.validate(entered_data);
              if (validate_result != null) {
                showError(MessageText.getString(validate_result));
                return;               
              }
            }
View Full Code Here

Examples of org.guvnor.common.services.project.builder.service.BuildValidationHelper.validate()

        //Resource Type might require "external" validation (i.e. it's not covered by Kie)
        final IncrementalBuildResults results = new IncrementalBuildResults( gav );
        final BuildValidationHelper validator = getBuildValidationHelper( resource );
        if ( validator != null ) {
            final List<ValidationMessage> addedValidationMessages = validator.validate( Paths.convert( resource ) );

            if ( !( addedValidationMessages == null || addedValidationMessages.isEmpty() ) ) {
                for ( ValidationMessage validationMessage : addedValidationMessages ) {
                    results.addAddedMessage( convertValidationMessage( validationMessage ) );
                }
View Full Code Here

Examples of org.gwtoolbox.widget.client.form.Form.validate()

        Widget formPanel = renderer.render(form);
        formPanel.setWidth("300px");

        SimpleButton validateButton = new SimpleButton("Validate", new ClickHandler() {
            public void onClick(ClickEvent event) {
                form.validate();
            }
        });

        SimpleButton sendButton = new SimpleButton("Send", new ClickHandler() {
            public void onClick(ClickEvent event) {
View Full Code Here

Examples of org.gwtoolbox.widget.client.form.FormPanel.validate()

        final FormPanel formPanel = new FormPanel(form, layout);

        SimpleButton validateButton = new SimpleButton("Validate", new ClickHandler() {
            public void onClick(ClickEvent event) {
                formPanel.validate();
            }
        });

        FlowPanel main = new FlowPanel();
        main.add(formPanel);
View Full Code Here

Examples of org.hdiv.validator.IValidation.validate()

        List<IValidation> userDefinedValidations = urls.get(matcher);
        for (int i = 0; i < userDefinedValidations.size(); i++) {

          IValidation currentValidation = (IValidation) userDefinedValidations.get(i);

          if (!currentValidation.validate(parameter, values, dataType)) {
            return false;
          }
        }
      }
    }
View Full Code Here

Examples of org.hibernate.Filter.validate()

    // First, validate all the enabled filters...
    //TODO: this implementation has bad performance
    Iterator itr = enabledFilters.values().iterator();
    while ( itr.hasNext() ) {
      final Filter filter = (Filter) itr.next();
      filter.validate();
    }
    return enabledFilters;
  }

  private String[] parseFilterParameterName(String filterParameterName) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.