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

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


    }
   
    IBIObjectDAO biObjectDAO = DAOFactory.getBIObjectDAO();
    String biobjectIdStr = (String) eventParams.get("biobjectId");
    Integer biObjectId = new Integer(biobjectIdStr);
    BIObject biObject = biObjectDAO.loadBIObjectById(biObjectId);

    response.setAttribute("biobject", biObject);
    SubreportDAOHibImpl subreportDAOHibImpl = new SubreportDAOHibImpl();
    List list = subreportDAOHibImpl.loadSubreportsByMasterRptId(biObject.getId());
    List biObjectList = new ArrayList();
View Full Code Here


      // it's an end process event, nothing more to do
    }
    IBIObjectDAO biObjectDAO = DAOFactory.getBIObjectDAO();
    String biobjectIdStr = (String) eventParams.get("biobjectId");
    Integer biObjectId = new Integer(biobjectIdStr);
    BIObject biObject = biObjectDAO.loadBIObjectById(biObjectId);

    response.setAttribute("biobject", biObject);
    SubreportDAOHibImpl subreportDAOHibImpl = new SubreportDAOHibImpl();
    List list = subreportDAOHibImpl.loadSubreportsByMasterRptId(biObject.getId());
    List biObjectList = new ArrayList();
View Full Code Here

      Assert.assertNotNull(documentId, "Parameter [documentId] cannot be null");
     
     
      biObjectDAO = DAOFactory.getBIObjectDAO();
      biObjectId = new Integer(documentId);
      biObject = biObjectDAO.loadBIObjectById(biObjectId);
    } catch(Throwable t) {
      logger.error("Impossible to load document with id equals to [" + documentId + "]", t);
      if(t instanceof EMFUserError) throw (EMFUserError)t;         
    }
   
View Full Code Here

  logger.debug("IN");
  try {
      IBIObjectDAO objdao = DAOFactory.getBIObjectDAO();
      objdao.setUserID(user);
      Integer docId = new Integer(documentiId);
      BIObject biobj = objdao.loadBIObjectById(docId);
      ObjTemplate objTemp = new ObjTemplate();
      objTemp.setBiobjId(biobj.getId());
      objTemp.setActive(new Boolean(true));
      objTemp.setContent(content.getBytes());
      objTemp.setName(templateName);
View Full Code Here

          //adds new documents
          if(!biobjIds.contains(biobjInt)) {
            Integer biobjid = new Integer(biobjidStr.substring(0, biobjidStr.lastIndexOf("__")));
            IBIObjectDAO biobjectDAO = DAOFactory.getBIObjectDAO();
            IBIObjectParameterDAO ibiobjpardao = DAOFactory.getBIObjectParameterDAO();
            BIObject biobj = biobjectDAO.loadBIObjectById(biobjid);
            List bipars = ibiobjpardao.loadBIObjectParametersById(biobjid);
            biobj.setBiObjectParameters(bipars);
            biobj_sel_now.add(biobj);
          } else {
            Iterator iter_prev_biobj = biobjects.iterator();
View Full Code Here

            //adds new copy of document already existing
            if (!flgExists){
              Integer biobjid = new Integer(biobjidStr.substring(0, biobjidStr.lastIndexOf("__")));
              IBIObjectDAO biobjectDAO = DAOFactory.getBIObjectDAO();
              IBIObjectParameterDAO ibiobjpardao = DAOFactory.getBIObjectParameterDAO();
              BIObject biobj = biobjectDAO.loadBIObjectById(biobjid);
              List bipars = ibiobjpardao.loadBIObjectParametersById(biobjid);
              biobj.setBiObjectParameters(bipars);
              biobj_sel_now.add(biobj);
            }             
          }
View Full Code Here

    IBIObjectDAO biobjDAO = DAOFactory.getBIObjectDAO();

    for (Iterator iterator = objsToInsert.iterator(); iterator.hasNext();) {
      Integer id = (Integer) iterator.next();
      BIObject obj=(BIObject)biobjDAO.loadBIObjectById(id);
      if(obj!=null){
        exportManager.exportSingleObj(obj.getId().toString());
      }
      else{
        logger.error("Could not find object with id"+id);
View Full Code Here

      }

      //onlyOneFunct=true;
      Integer objId = new Integer(objIdStr);
      IBIObjectDAO biobjdao = DAOFactory.getBIObjectDAO();
      BIObject obj = biobjdao.loadBIObjectById(objId);
      Integer fId=Integer.decode(funcIdStr);

      // check that the functionality specified is the user one or that user is administrator

      // first case: user is administrator
View Full Code Here

      }

      // Load document
      IBIObjectDAO biObjectDAOHibImpl = DAOFactory.getBIObjectDAO();
      biObjectDAOHibImpl.setUserProfile(profile);
      BIObject biObject = biObjectDAOHibImpl.loadBIObjectById(Integer.valueOf(documentIdStr));
      if (biObject == null) {
        logger.error("Could not load document");
        throw new Exception("Could not load document");
      }
View Full Code Here

      String[] idArray = ids.split(",");
      for (int i = 0; i < idArray.length; i++) {
        Integer id = new Integer(idArray[i]);
        BIObject biObject = null;
        try {
          biObject = dao.loadBIObjectById(id);
        } catch (EMFUserError e) {
          logger.error("BIObject with id = " + id + " not found", e);
          throw new SpagoBIServiceException(SERVICE_NAME, "Customized view not found", e);
        }
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.