Package de.sub.goobi.helper

Examples of de.sub.goobi.helper.XmlArtikelZaehlen


    }
    Helper.setMeldung(null, "", "Elements successful counted");
  }

  public void AnzahlenErmitteln() throws DAOException, IOException, InterruptedException, SwapException {
    XmlArtikelZaehlen zaehlen = new XmlArtikelZaehlen();
    ProzessDAO dao = new ProzessDAO();
    List<Prozess> auftraege = dao.search("from Prozess");
    for (Prozess auf : auftraege) {

      try {
        auf.setSortHelperDocstructs(zaehlen.getNumberOfUghElements(auf, CountType.DOCSTRUCT));
        auf.setSortHelperMetadata(zaehlen.getNumberOfUghElements(auf, CountType.METADATA));
        auf.setSortHelperImages(FileUtils.getNumberOfFiles(new File(auf.getImagesOrigDirectory(true))));
        dao.save(auf);
      } catch (RuntimeException e) {
        myLogger.error("Fehler bei Band: " + auf.getTitel(), e);
      }
View Full Code Here


  private void calculateMetadataAndImages() {

    /*
     * für den Prozess nochmal die Metadaten durchlaufen und die Daten speichern
     */
    XmlArtikelZaehlen zaehlen = new XmlArtikelZaehlen();

    this.myProzess.setSortHelperDocstructs(zaehlen.getNumberOfUghElements(this.logicalTopstruct, CountType.DOCSTRUCT));
    this.myProzess.setSortHelperMetadata(zaehlen.getNumberOfUghElements(this.logicalTopstruct, CountType.METADATA));
    try {
      this.myProzess.setSortHelperImages(FileUtils.getNumberOfFiles(new File(this.myProzess.getImagesOrigDirectory(true))));
      new ProzessDAO().save(this.myProzess);
    } catch (DAOException e) {
      Helper.setFehlerMeldung("fehlerNichtSpeicherbar", e);
View Full Code Here

TOP

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

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.