Package de.sub.goobi.helper

Examples of de.sub.goobi.helper.WebDav


    deleteSymlinksFromUserHomes();
    return "ProzessverwaltungBearbeiten";
  }

  private void deleteSymlinksFromUserHomes() {
    WebDav myDav = new WebDav();
    /* alle Benutzer */
    for (Benutzer b : this.mySchritt.getBenutzerList()) {
      try {
        myDav.UploadFromHome(b, this.mySchritt.getProzess());
      } catch (RuntimeException e) {
      }
    }
    /* alle Benutzergruppen mit ihren Benutzern */
    for (Benutzergruppe bg : this.mySchritt.getBenutzergruppenList()) {
      for (Benutzer b : bg.getBenutzerList()) {
        try {
          myDav.UploadFromHome(b, this.mySchritt.getProzess());
        } catch (RuntimeException e) {
        }
      }
    }
  }
View Full Code Here


    }
    Helper.setMeldung(null, "ExportFinished", "");
  }

  public String UploadFromHomeAlle() {
    WebDav myDav = new WebDav();
    List<String> folder = myDav.UploadFromHomeAlle(DONEDIRECTORYNAME);
    myDav.removeFromHomeAlle(folder, DONEDIRECTORYNAME);
    Helper.setMeldung(null, "directoryRemovedAll", DONEDIRECTORYNAME);
    return "";
  }
View Full Code Here

    Helper.setMeldung(null, "directoryRemovedAll", DONEDIRECTORYNAME);
    return "";
  }

  public String UploadFromHome() {
    WebDav myDav = new WebDav();
    myDav.UploadFromHome(this.myProzess);
    Helper.setMeldung(null, "directoryRemoved", this.myProzess.getTitel());
    return "";
  }
View Full Code Here

    /*
     * zunächst prüfen, ob dieser Band gerade von einem anderen Nutzer in Bearbeitung ist und in dessen Homeverzeichnis abgelegt wurde, ansonsten
     * Download
     */
    if (!this.myProzess.isImageFolderInUse()) {
      WebDav myDav = new WebDav();
      myDav.DownloadToHome(this.myProzess, 0, false);
    } else {
      Helper.setMeldung(null, Helper.getTranslation("directory ") + " " + this.myProzess.getTitel() + " " + Helper.getTranslation("isInUse"),
          this.myProzess.getImageFolderInUseUser().getNachVorname());
      WebDav myDav = new WebDav();
      myDav.DownloadToHome(this.myProzess, 0, true);
    }
  }
View Full Code Here

    }
  }

  @SuppressWarnings("unchecked")
  public void DownloadToHomePage() {
    WebDav myDav = new WebDav();
    for (Prozess proz : (List<Prozess>) this.page.getListReload()) {
      /*
       * zunächst prüfen, ob dieser Band gerade von einem anderen Nutzer in Bearbeitung ist und in dessen Homeverzeichnis abgelegt wurde,
       * ansonsten Download
       */
      if (!proz.isImageFolderInUse()) {
        myDav.DownloadToHome(proz, 0, false);
      } else {
        Helper.setMeldung(null, Helper.getTranslation("directory ") + " " + proz.getTitel() + " " + Helper.getTranslation("isInUse"), proz
            .getImageFolderInUseUser().getNachVorname());
        myDav.DownloadToHome(proz, 0, true);
      }
    }
    Helper.setMeldung(null, "createdInUserHome", "");
  }
View Full Code Here

    Helper.setMeldung(null, "createdInUserHome", "");
  }

  @SuppressWarnings("unchecked")
  public void DownloadToHomeSelection() {
    WebDav myDav = new WebDav();
    for (Prozess proz : (List<Prozess>) this.page.getListReload()) {
      if (proz.isSelected()) {
        if (!proz.isImageFolderInUse()) {
          myDav.DownloadToHome(proz, 0, false);
        } else {
          Helper.setMeldung(null, Helper.getTranslation("directory ") + " " + proz.getTitel() + " " + Helper.getTranslation("isInUse"),
              proz.getImageFolderInUseUser().getNachVorname());
          myDav.DownloadToHome(proz, 0, true);
        }
      }
    }
    Helper.setMeldung(null, "createdInUserHomeAll", "");
  }
View Full Code Here

    Helper.setMeldung(null, "createdInUserHomeAll", "");
  }

  @SuppressWarnings("unchecked")
  public void DownloadToHomeHits() {
    WebDav myDav = new WebDav();
    for (Prozess proz : (List<Prozess>) this.page.getCompleteList()) {
      if (!proz.isImageFolderInUse()) {
        myDav.DownloadToHome(proz, 0, false);
      } else {
        Helper.setMeldung(null, Helper.getTranslation("directory ") + " " + proz.getTitel() + " " + Helper.getTranslation("isInUse"), proz
            .getImageFolderInUseUser().getNachVorname());
        myDav.DownloadToHome(proz, 0, true);
      }
    }
    Helper.setMeldung(null, "createdInUserHomeAll", "");
  }
View Full Code Here

TOP

Related Classes of de.sub.goobi.helper.WebDav

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.