Package de.sub.goobi.beans

Examples of de.sub.goobi.beans.Schritt


    if (ben != null) {
      currentStep.setBearbeitungsbenutzer(ben);
    }

    try {
      Schritt temp = null;
      for (Schritt s : this.currentStep.getProzess().getSchritteList()) {
        if (s.getTitel().equals(this.mySolutionStep)) {
          temp = s;
        }
      }
      if (temp != null) {
        /*
         * alle Schritte zwischen dem aktuellen und dem Korrekturschritt wieder schliessen
         */
        @SuppressWarnings("unchecked")
        List<Schritt> alleSchritteDazwischen = Helper.getHibernateSession().createCriteria(Schritt.class)
            .add(Restrictions.ge("reihenfolge", this.currentStep.getReihenfolge()))
            .add(Restrictions.le("reihenfolge", temp.getReihenfolge())).addOrder(Order.asc("reihenfolge")).createCriteria("prozess")
            .add(Restrictions.idEq(this.currentStep.getProzess().getId())).list();
        for (Iterator<Schritt> iter = alleSchritteDazwischen.iterator(); iter.hasNext();) {
          Schritt step = iter.next();
          step.setBearbeitungsstatusEnum(StepStatus.DONE);
          step.setBearbeitungsende(now);
          step.setPrioritaet(Integer.valueOf(0));
          if (step.getId().intValue() == temp.getId().intValue()) {
            step.setBearbeitungsstatusEnum(StepStatus.OPEN);
            step.setCorrectionStep();
            step.setBearbeitungsende(null);
            step.setBearbeitungszeitpunkt(now);
          }
          Schritteigenschaft seg = new Schritteigenschaft();
          seg.setTitel(Helper.getTranslation("Korrektur durchgefuehrt"));
          seg.setWert("[" + this.formatter.format(new Date()) + ", " + ben.getNachVorname() + "] "
              + Helper.getTranslation("KorrekturloesungFuer") + " " + temp.getTitel() + ": " + this.solutionMessage);
          seg.setSchritt(step);
          seg.setType(PropertyType.messageImportant);
          seg.setCreationDate(new Date());
          step.getEigenschaften().add(seg);
          this.stepDAO.save(step);
        }
      }
      String message = Helper.getTranslation("KorrekturloesungFuer") + " " + temp.getTitel() + ": " + this.solutionMessage + " ("
          + ben.getNachVorname() + ")";
View Full Code Here


        SchrittDAO sdao = new SchrittDAO();
        for (Prozess proz : inProzesse) {
            /*
             * -------------------------------- Swapsteps --------------------------------
             */
            Schritt s1 = null;
            Schritt s2 = null;
            for (Iterator<Schritt> iterator = proz.getSchritteList().iterator(); iterator.hasNext();) {
                Schritt s = iterator.next();
                if (s.getTitel().equals(this.myParameters.get("swap1title")) && s.getReihenfolge().intValue() == reihenfolge1) {
                    s1 = s;
                }
                if (s.getTitel().equals(this.myParameters.get("swap2title")) && s.getReihenfolge().intValue() == reihenfolge2) {
                    s2 = s;
                }
            }
            if (s1 != null && s2 != null) {
                StepStatus statustemp = s1.getBearbeitungsstatusEnum();
View Full Code Here

         */
        ProzessDAO sdao = new ProzessDAO();
        for (Prozess proz : inProzesse) {
            if (proz.getSchritte() != null) {
                for (Iterator<Schritt> iterator = proz.getSchritte().iterator(); iterator.hasNext();) {
                    Schritt s = iterator.next();
                    if (s.getTitel().equals(this.myParameters.get("steptitle"))) {
                        proz.getSchritte().remove(s);
                        try {
                            sdao.save(proz);
                        } catch (DAOException e) {
                            Helper.setFehlerMeldung("goobiScriptfield", "Error while saving process: " + proz.getTitel(), e);
View Full Code Here

        /*
         * -------------------------------- Durchführung der Action --------------------------------
         */
        ProzessDAO sdao = new ProzessDAO();
        for (Prozess proz : inProzesse) {
            Schritt s = new Schritt();
            s.setTitel(this.myParameters.get("steptitle"));
            s.setReihenfolge(Integer.parseInt(this.myParameters.get("number")));
            s.setProzess(proz);
            if (proz.getSchritte() == null) {
                proz.setSchritte(new HashSet<Schritt>());
            }
            proz.getSchritte().add(s);
            try {
View Full Code Here

         */
        ProzessDAO sdao = new ProzessDAO();
        for (Prozess proz : inProzesse) {
            if (proz.getSchritte() != null) {
                for (Iterator<Schritt> iterator = proz.getSchritte().iterator(); iterator.hasNext();) {
                    Schritt s = iterator.next();
                    if (s.getTitel().equals(this.myParameters.get("steptitle"))) {
                        s.setTypAutomatischScriptpfad(this.myParameters.get("script"));
                        s.setScriptname1(this.myParameters.get("label"));
                        s.setTypScriptStep(true);
                        try {
                            sdao.save(proz);
                        } catch (DAOException e) {
                            Helper.setFehlerMeldung("goobiScriptfield", "Error while saving process: " + proz.getTitel(), e);
                            logger.error("goobiScriptfield" + "Error while saving process: " + proz.getTitel(), e);
View Full Code Here

         */
        ProzessDAO sdao = new ProzessDAO();
        for (Prozess proz : inProzesse) {
            if (proz.getSchritte() != null) {
                for (Iterator<Schritt> iterator = proz.getSchritte().iterator(); iterator.hasNext();) {
                    Schritt s = iterator.next();
                    if (s.getTitel().equals(this.myParameters.get("steptitle"))) {
                        s.setTypModulName(this.myParameters.get("module"));
                        try {
                            sdao.save(proz);
                        } catch (DAOException e) {
                            Helper.setFehlerMeldung("goobiScriptfield", "Error while saving process: " + proz.getTitel(), e);
                            logger.error("goobiScriptfield" + "Error while saving process: " + proz.getTitel(), e);
View Full Code Here

         */
        ProzessDAO sdao = new ProzessDAO();
        for (Prozess proz : inProzesse) {
            if (proz.getSchritte() != null) {
                for (Iterator<Schritt> iterator = proz.getSchritte().iterator(); iterator.hasNext();) {
                    Schritt s = iterator.next();
                    if (s.getTitel().equals(this.myParameters.get("steptitle"))) {

                        if (property.equals("metadata")) {
                            s.setTypMetadaten(Boolean.parseBoolean(value));
                        }
                        if (property.equals("automatic")) {
                            s.setTypAutomatisch(Boolean.parseBoolean(value));
                        }
                        if (property.equals("batch")) {
                            s.setBatchStep(Boolean.parseBoolean(value));
                        }
                        if (property.equals("readimages")) {
                            s.setTypImagesLesen(Boolean.parseBoolean(value));
                        }
                        if (property.equals("writeimages")) {
                            s.setTypImagesSchreiben(Boolean.parseBoolean(value));
                        }
                        if (property.equals("validate")) {
                            s.setTypBeimAbschliessenVerifizieren(Boolean.parseBoolean(value));
                        }
                        if (property.equals("exportdms")) {
                            s.setTypExportDMS(Boolean.parseBoolean(value));
                        }

                        try {
                            sdao.save(proz);
                        } catch (DAOException e) {
View Full Code Here

         * -------------------------------- Durchführung der Action --------------------------------
         */
        SchrittDAO sdao = new SchrittDAO();
        for (Prozess proz : inProzesse) {
            for (Iterator<Schritt> iterator = proz.getSchritteList().iterator(); iterator.hasNext();) {
                Schritt s = iterator.next();
                if (s.getTitel().equals(this.myParameters.get("steptitle"))) {
                    s.setBearbeitungsstatusAsString(this.myParameters.get("status"));
                    try {
                        sdao.save(s);
                    } catch (DAOException e) {
                        Helper.setFehlerMeldung("goobiScriptfield", "Error while saving process: " + proz.getTitel(), e);
                        logger.error("goobiScriptfield" + "Error while saving process: " + proz.getTitel(), e);
View Full Code Here

         * -------------------------------- Durchführung der Action --------------------------------
         */
        SchrittDAO sdao = new SchrittDAO();
        for (Prozess proz : inProzesse) {
            for (Iterator<Schritt> iterator = proz.getSchritteList().iterator(); iterator.hasNext();) {
                Schritt s = iterator.next();
                if (s.getTitel().equals(this.myParameters.get("steptitle"))) {
                    s.setReihenfolge(Integer.parseInt(this.myParameters.get("number")));
                    try {
                        sdao.save(s);
                    } catch (DAOException e) {
                        Helper.setFehlerMeldung("goobiScriptfield", "Error while saving process: " + proz.getTitel(), e);
                        logger.error("goobiScriptfield" + "Error while saving process: " + proz.getTitel(), e);
View Full Code Here

         * -------------------------------- Durchführung der Action --------------------------------
         */
        SchrittDAO sdao = new SchrittDAO();
        for (Prozess proz : inProzesse) {
            for (Iterator<Schritt> iterator = proz.getSchritteList().iterator(); iterator.hasNext();) {
                Schritt s = iterator.next();
                if (s.getTitel().equals(this.myParameters.get("steptitle"))) {
                    Set<Benutzer> myBenutzer = s.getBenutzer();
                    if (myBenutzer == null) {
                        myBenutzer = new HashSet<Benutzer>();
                        s.setBenutzer(myBenutzer);
                    }
                    if (!myBenutzer.contains(myUser)) {
                        myBenutzer.add(myUser);
                        try {
                            sdao.save(s);
View Full Code Here

TOP

Related Classes of de.sub.goobi.beans.Schritt

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.