Package it.eng.spagobi.behaviouralmodel.check.bo

Examples of it.eng.spagobi.behaviouralmodel.check.bo.Check


        params.put(AdmintoolsConstants.PAGE, ListChecksModule.MODULE_PAGE);
        EMFUserError error = new EMFUserError(EMFErrorSeverity.ERROR, 1028, new Vector(), params);
        getErrorHandler().addError(error);
        return;
      }
      Check aCheck = new Check();
      aCheck.setCheckId(Integer.valueOf(id));
      DAOFactory.getChecksDAO().eraseCheck(aCheck);
    } catch (Exception ex) {
      SpagoBITracer.major(AdmintoolsConstants.NAME_MODULE, "DetailEngineModule","delDetailRuolo","Cannot fill response container", ex  );
      throw new EMFUserError(EMFErrorSeverity.ERROR, 100);
    }
View Full Code Here


   */
  private void newDetailCheck(SourceBean response) throws EMFUserError {
    try {
      this.modalita = AdmintoolsConstants.DETAIL_INS;
      response.setAttribute("modality", modalita);
            Check aCheck=new Check();
            aCheck.setCheckId(new Integer(-1));
      aCheck.setDescription("");
      aCheck.setFirstValue("");
      aCheck.setSecondValue("");
      aCheck.setName("");
      aCheck.setLabel("");
      aCheck.setValueTypeCd("");
      List checkTypes = DAOFactory.getDomainDAO().loadListDomainsByType("CHECK");
      if (checkTypes == null || checkTypes.size() == 0) {
        aCheck.setValueTypeCd("");
      } else {
        Domain domain = (Domain) checkTypes.get(0);
        aCheck.setValueTypeCd(domain.getValueCd());
      }
      response.setAttribute("checkObj", aCheck);
    } catch (Exception ex) {
      SpagoBITracer.major(AdmintoolsConstants.NAME_MODULE, "DetailEngineModule","newDetailEngine","Cannot prepare page for the insertion", ex  );
      throw new EMFUserError(EMFErrorSeverity.ERROR, 100);
View Full Code Here

   */
  public void labelControl (String label, Integer checkId) throws EMFUserError {
        List checks = DAOFactory.getChecksDAO().loadAllChecks();
    Iterator i = checks.listIterator();
    while (i.hasNext()) {
      Check aCheck = (Check) i.next();
      if (aCheck.getLabel().equals(label) && !aCheck.getCheckId().equals(checkId)) {
        HashMap params = new HashMap();
        params.put(AdmintoolsConstants.PAGE, ListChecksModule.MODULE_PAGE);
        EMFValidationError error = new EMFValidationError(EMFErrorSeverity.ERROR, "label", "1029", new Vector(), params);
        getErrorHandler().addError(error);
      }
View Full Code Here

    //Puts an * if the parameter is mandatory
    List checks = biparam.getParameter().getChecks();
    if (!checks.isEmpty()){
      Iterator it = checks.iterator()
      Check check = null;
      while (it.hasNext()){
        check = (Check)it.next();
        if (check.getValueTypeCd().equalsIgnoreCase("MANDATORY")){
          toInsert = "*"+toInsert;
          break;
        }else{
          toInsert = "  "+toInsert;
        }
View Full Code Here

    }
    List newConstraints = new ArrayList<SDKConstraint>();
    if (checks != null && !checks.isEmpty()) {
      Iterator checksIt = checks.iterator();
      while (checksIt.hasNext()) {
        Check aCheck = (Check) checksIt.next();
        SDKConstraint constraint = fromCheckToSDKConstraint(aCheck);
        newConstraints.add(constraint);
      }
    }
    it.eng.spagobi.sdk.documents.bo.SDKConstraint[] constraintsArray = new it.eng.spagobi.sdk.documents.bo.SDKConstraint[newConstraints.size()];
View Full Code Here

TOP

Related Classes of it.eng.spagobi.behaviouralmodel.check.bo.Check

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.