Examples of IValidatorPlugin


Examples of org.goobi.production.plugin.interfaces.IValidatorPlugin

  }

  public String SchrittDurchBenutzerAbschliessen() {

    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.goobi.production.plugin.interfaces.IValidatorPlugin

            if (automatic) {
        if (rueckgabe == 0) {
          step.setEditType(StepEditType.AUTOMATIC.getValue());
          step.setBearbeitungsstatus(StepStatus.DONE.getValue());
          if (step.getValidationPlugin() != null && step.getValidationPlugin().length() >0) {
            IValidatorPlugin ivp = (IValidatorPlugin) PluginLoader.getPluginByTitle(PluginType.Validation, step.getValidationPlugin());
            ivp.setStepObject(step);
            if (!ivp.validate()) {
              step.setBearbeitungsstatus(StepStatus.OPEN.getValue());
              StepManager.updateStep(step);
            } else {
              CloseStepObjectAutomatic(step);             
            }
View Full Code Here

Examples of org.goobi.production.plugin.interfaces.IValidatorPlugin

    // }
    HelperSchritteWithoutHibernate helper = new HelperSchritteWithoutHibernate();
    for (Schritt s : this.steps) {
      boolean error = false;
      if (s.getValidationPlugin() != null && s.getValidationPlugin().length() > 0) {
        IValidatorPlugin ivp = (IValidatorPlugin) PluginLoader.getPluginByTitle(PluginType.Validation, s.getValidationPlugin());
        if (ivp != null) {
          ivp.setStep(s);
          if (!ivp.validate()) {
            error = true;
          }
        } else {
          Helper.setFehlerMeldung("ErrorLoadingValidationPlugin");
        }
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.