Package it.eng.spagobi.analiticalmodel.document.dao

Examples of it.eng.spagobi.analiticalmodel.document.dao.IBIObjectDAO.loadBIObjectByLabel()


      // get document container information
      DocumentContainer documentContainer=documentsMap.get(label);

      // Recover BIObject     
      IBIObjectDAO dao=DAOFactory.getBIObjectDAO();
      BIObject objectID=dao.loadBIObjectByLabel(label);
      BIObject object=null;

      // get roles
      Collection roles = null;
      roles = ((UserProfile)profile).getRolesForUse();
View Full Code Here


        SourceBean docLblSB = (SourceBean)jobParSB.getFilteredSourceBeanAttribute("JOB_PARAMETER", "name", "documentLabels");
        String docLblStr = (String)docLblSB.getAttribute("value");
        String[] docLbls = docLblStr.split(",");
        for(int i=0; i<docLbls.length; i++) {
          //BIObject biobj = biobjdao.loadBIObjectByLabel(docLbls[i]);
          BIObject biobj = biobjdao.loadBIObjectByLabel(docLbls[i].substring(0, docLbls[i].indexOf("__")));
          List biobjpars = biobjpardao.loadBIObjectParametersById(biobj.getId());
          biobj.setBiObjectParameters(biobjpars);
          String biobjlbl = biobj.getLabel() + "__" + (i+1);
          SourceBean queryStringSB = (SourceBean)jobParSB.getFilteredSourceBeanAttribute("JOB_PARAMETER", "name", biobjlbl);
          SourceBean iterativeSB = (SourceBean)jobParSB.getFilteredSourceBeanAttribute("JOB_PARAMETER", "name", biobjlbl + "_iterative");
View Full Code Here

       
        inputParametersQueryString = jobDataMap.getString(documentInstanceName);
        logger.debug("Input parameters query string for documet [" + documentLabel + "] is equal to [" + inputParametersQueryString + "]");
       
        // load bidocument
        biobj = biobjdao.loadBIObjectByLabel(documentLabel);
       
        // get the save options
        String saveOptString = jobDataMap.getString("biobject_id_" + biobj.getId() + "__"+ (ind+1));
        SaveInfo saveInfo = SchedulerUtilities.fromSaveInfoString(saveOptString);
       
View Full Code Here

      newbiobj.setStateID(relDom.getValueId());
      newbiobj.setVisible(new Integer(1));
      newbiobj.setFunctionalities(storeInFunctionalities);
      IBIObjectDAO objectDAO = DAOFactory.getBIObjectDAO();
       Timestamp aoModRecDate;
      BIObject biobjexist = objectDAO.loadBIObjectByLabel(label);
      if(biobjexist==null){
        objectDAO.insertBIObject(newbiobj, objTemp);
      } else {
        newbiobj.setId(biobjexist.getId());
        objectDAO.modifyBIObject(newbiobj, objTemp);
View Full Code Here

      while (i.hasNext()) {
        KpiDocuments doc = (KpiDocuments) i.next();
        String label = doc.getBiObjLabel();

        IBIObjectDAO biobjDAO = DAOFactory.getBIObjectDAO();
        BIObject biobj = biobjDAO.loadBIObjectByLabel(label);
        if(biobj!=null){
          insertBIObject(biobj, session, true);
          doc.setBiObjId(biobj.getId());       
        }
View Full Code Here

      while (i.hasNext()) {
        KpiDocuments doc = (KpiDocuments) i.next();
        String label = doc.getBiObjLabel();

        IBIObjectDAO biobjDAO = DAOFactory.getBIObjectDAO();
        BIObject biobj = biobjDAO.loadBIObjectByLabel(label);
        if(biobj!=null){
          insertBIObject(biobj, session, true);
          doc.setBiObjId(biobj.getId());       
        }
View Full Code Here

    IBIObjectDAO dao;
    BIObject obj=null;
    try {
      dao = DAOFactory.getBIObjectDAO();
      if(label!=null)
        obj=dao.loadBIObjectByLabel(label);
    } catch (EMFUserError e) {
      logger.error("Error in recovering object",e);
      return "".getBytes();
    }
View Full Code Here

      byte[] documentBytes = null;

      IBIObjectDAO biobjdao = DAOFactory.getBIObjectDAO();
      BIObject biobj = null;
      if (objLabel != null && !objLabel.trim().equals("")) {
        biobj = biobjdao.loadBIObjectByLabel(objLabel);
      } else {
        biobj = biobjdao.loadBIObjectById(new Integer(objid));
      }
      // create the execution controller
      ExecutionController execCtrl = new ExecutionController();
View Full Code Here

      Map confPars = confDoc.getParameters();
      logger.debug("Configured static parameters: " + confPars);
     
      // load the biobject
      IBIObjectDAO biobjdao = DAOFactory.getBIObjectDAO();
      BIObject biobj = biobjdao.loadBIObjectByLabel(label);
      biobj.setBiObjectParameters(biobjdao.getBIObjectParameters(biobj));
      logger.debug("biobject loaded: " + biobj);
     
      DossierAnalyticalDriversManager adManager = new DossierAnalyticalDriversManager();
      adManager.fillEmptyAnalyticalDrivers(confPars, dossier, biobj);
View Full Code Here

      //throw new EMFUserError(EMFErrorSeverity.ERROR, 103, "component_dossier_messages");
    }
    // load biobject using label
//    Integer id = new Integer(idobj);
    IBIObjectDAO biobjdao = DAOFactory.getBIObjectDAO();
    BIObject obj = biobjdao.loadBIObjectByLabel(label);
    IBIObjectParameterDAO biobjpardao = DAOFactory.getBIObjectParameterDAO();
    // gets parameters of the biobject
    List params = biobjpardao.loadBIObjectParametersById(obj.getId());
    Iterator iterParams = params.iterator();
    // get map of the param url name and value assigned
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.