Package org.goobi.production.properties

Examples of org.goobi.production.properties.ProcessProperty


   *            A Map with the properties to set
   */
  protected void updateProperties(AktuelleSchritteForm dialog, Map<String, String> propertiesToSet) {
    List<ProcessProperty> availableProperties = dialog.getProcessProperties();
    for (int position = 0; position < availableProperties.size(); position++) {
      ProcessProperty propertyAtPosition = availableProperties.get(position);
      String key = propertyAtPosition.getName();
      if (propertiesToSet.containsKey(key)) {
        String desiredValue = propertiesToSet.get(key);
        AccessCondition permissions = propertyAtPosition.getCurrentStepAccessCondition();
        if (AccessCondition.WRITE.equals(permissions) || AccessCondition.WRITEREQUIRED.equals(permissions)) {
          propertyAtPosition.setValue(desiredValue);
          if (dialog.getContainer() == null || dialog.getContainer() == 0) {
            dialog.setProcessProperty(propertyAtPosition);
          } else
            availableProperties.set(position, propertyAtPosition);
          dialog.saveCurrentProperty();
View Full Code Here


        }
      }
    }
    // clone properties
    for (ProcessProperty pt : plist) {
      ProcessProperty newProp = pt.getClone(newContainerNumber);
      this.processPropertyList.add(newProp);
      this.processProperty = newProp;
      saveCurrentProperty();
    }
    loadProcessProperties(this.currentProcess);
View Full Code Here

        }
      }
    }
    // clone properties
    for (ProcessProperty pt : plist) {
      ProcessProperty newProp = pt.getClone(newContainerNumber);
      this.processPropertyList.add(newProp);
      this.processProperty = newProp;
      saveCurrentPropertyForAll();
    }
    loadProcessProperties(this.currentProcess);
View Full Code Here

    // saveWithoutValidation();
    loadProcessProperties();
  }

  public void duplicateProperty() {
    ProcessProperty pt = this.processProperty.getClone(0);
    this.processPropertyList.add(pt);
    this.processProperty = pt;
    saveCurrentProperty();
    loadProcessProperties();
  }
View Full Code Here

        }
      }
    }
    // clone properties
    for (ProcessProperty pt : plist) {
      ProcessProperty newProp = pt.getClone(newContainerNumber);
      this.processPropertyList.add(newProp);
      this.processProperty = newProp;
      if (this.processProperty.getProzesseigenschaft() == null) {
        Prozesseigenschaft pe = new Prozesseigenschaft();
        pe.setProzess(this.mySchritt.getProzess());
View Full Code Here

    // saveWithoutValidation();
    loadProcessProperties();
  }

  public void duplicateProperty() {
    ProcessProperty pt = this.processProperty.getClone(0);
    this.processPropertyList.add(pt);
    saveProcessProperties();
  }
View Full Code Here

        }
      }
    }
    // clone properties
    for (ProcessProperty pt : plist) {
      ProcessProperty newProp = pt.getClone(newContainerNumber);
      this.processPropertyList.add(newProp);
      this.processProperty = newProp;
      if (this.processProperty.getProzesseigenschaft() == null) {
        Prozesseigenschaft pe = new Prozesseigenschaft();
        pe.setProzess(this.myProzess);
View Full Code Here

  public void createNewProperty() {
    if (this.processPropertyList == null) {
      this.processPropertyList = new ArrayList<ProcessProperty>();
    }
    ProcessProperty pp = new ProcessProperty();
    pp.setType(Type.TEXT);
    pp.setContainer(0);
    this.processPropertyList.add(pp);
    this.processProperty = pp;
  }
View Full Code Here

        }
      }
    }
    // clone properties
    for (ProcessProperty pt : plist) {
      ProcessProperty newProp = pt.getClone(newContainerNumber);
      this.processPropertyList.add(newProp);
      this.processProperty = newProp;
      saveCurrentProperty();
    }
    loadProcessProperties(this.currentStep);
View Full Code Here

        }
      }
    }
    // clone properties
    for (ProcessProperty pt : plist) {
      ProcessProperty newProp = pt.getClone(newContainerNumber);
      this.processPropertyList.add(newProp);
      this.processProperty = newProp;
      saveCurrentPropertyForAll();
    }
    loadProcessProperties(this.currentStep);
View Full Code Here

TOP

Related Classes of org.goobi.production.properties.ProcessProperty

Copyright © 2018 www.massapicom. 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.