Package de.sub.goobi.forms

Examples of de.sub.goobi.forms.ProzesskopieForm


   */
  protected void createNewProcessMain(String template, String opac, String field, String value, String id, String docType,
      Set<String> collections, Map<String, String> userFields) throws Exception {

    try {
      ProzesskopieForm newProcess = newProcessFromTemplate(template);
      newProcess.setDigitalCollections(validCollectionsForProcess(collections, newProcess));
      if (opac != null)
        getBibliorgaphicData(newProcess, opac, field, value);
      if (docType != null && docTypeIsPossible(newProcess, docType))
        newProcess.setDocType(docType);
      if (userFields != null)
        setUserFields(newProcess, userFields);
      newProcess.CalcProzesstitel();
      String state = newProcess.NeuenProzessAnlegen();
      if (!state.equals("ProzessverwaltungKopie3"))
        throw new RuntimeException();
      logger.info("Created new process: " + id);
    } catch (Exception exited) {
      logger.error("Failed to create new process: " + id, exited);
View Full Code Here


   * @return a ProzesskopieForm object, prepared from a given template
   * @throws IllegalArgumentException
   *             if no suitable template is found
   */
  protected ProzesskopieForm newProcessFromTemplate(String templateTitle) throws IllegalArgumentException {
    ProzesskopieForm result = new ProzesskopieForm();

    Prozess selectedTemplate = getTemplateByTitle(templateTitle);
    result.setProzessVorlage(selectedTemplate);
    result.Prepare();
    return result;
  }
View Full Code Here

TOP

Related Classes of de.sub.goobi.forms.ProzesskopieForm

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.