Examples of loadBIObjectById()


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

    BIObject obj = null;
    try {
      String idObjStr = (String) request.getAttribute(ObjectsTreeConstants.OBJECT_ID);
      Integer idObj = new Integer(idObjStr);
      IBIObjectDAO objdao = biobjDAO;
      obj = objdao.loadBIObjectById(idObj);
      String idFunctStr = (String) request.getAttribute(ObjectsTreeConstants.FUNCT_ID);
      if (idFunctStr != null) {
        Integer idFunct = new Integer(idFunctStr);
        if (profile.isAbleToExecuteAction(SpagoBIConstants.DOCUMENT_MANAGEMENT_ADMIN)) {
          // deletes the document from the specified folder, no matter the permissions
View Full Code Here

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

      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();
      execCtrl.setBiObject(biobj);
     
View Full Code Here

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

    // First case: the current user is not an administrator (so he cannot see all the functionalities)
    // and the modality is Modify. In this case some functionalities, that the user cannot see, can be
    // already associated to the object (by different users). This associations mustn't be erased.
    if (!profile.isAbleToExecuteAction(SpagoBIConstants.DOCUMENT_MANAGEMENT_ADMIN) && mod.equalsIgnoreCase(ObjectsTreeConstants.DETAIL_MOD)) {
      IBIObjectDAO objDAO = DAOFactory.getBIObjectDAO();
      BIObject prevObj = objDAO.loadBIObjectById(id);
      List prevFuncsId = prevObj.getFunctionalities();
      for (Iterator it = prevFuncsId.iterator(); it.hasNext(); ) {
        Integer funcId = (Integer) it.next();
        if (!ObjectsAccessVerifier.canDev(stateCode, funcId, profile)) {
          functionalities.add(funcId);
View Full Code Here

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

    // user cannot see, can be already associated to the object. This associations mustn't be erased.
    if (profile.isAbleToExecuteAction(SpagoBIConstants.DOCUMENT_MANAGEMENT_ADMIN)
        && initialPath != null && !initialPath.trim().equals(""
        && mod.equalsIgnoreCase(ObjectsTreeConstants.DETAIL_MOD)) {
      IBIObjectDAO objDAO = DAOFactory.getBIObjectDAO();
      BIObject prevObj = objDAO.loadBIObjectById(id);
      List functionalitiesId = prevObj.getFunctionalities();
      Iterator it = functionalitiesId.iterator();
      while (it.hasNext()) {
        Integer folderId = (Integer) it.next();
        LowFunctionality folder = DAOFactory.getLowFunctionalityDAO().loadLowFunctionalityByID(folderId, false);
View Full Code Here

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

    }
  
   private void saveNotes(String execIdentifier,String objectid , String notes,IEngUserProfile profile) {
      try
          IBIObjectDAO objectDAO = DAOFactory.getBIObjectDAO();
          BIObject biobject = objectDAO.loadBIObjectById(new Integer(objectid));
          EMFErrorHandler errorHandler = getErrorHandler();
         
          IObjNoteDAO objNoteDAO = DAOFactory.getObjNoteDAO();
          objNoteDAO.setUserProfile(profile);
          ObjNote objNote = objNoteDAO.getExecutionNotes(new Integer(objectid), execIdentifier);
View Full Code Here

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

          dossierConfigFile.getAbsolutePath()
      };
      template = generateTemplateZipFile(files, pathTempFolder);
      ObjTemplate objTemplate = generateObjTemplate(template);
      IBIObjectDAO objDAO = DAOFactory.getBIObjectDAO();
      BIObject dossier = objDAO.loadBIObjectById(dossierId);
      objDAO.modifyBIObject(dossier, objTemplate);
      template.delete();
    } catch (Exception e) {
      logger.error(e);
    } finally {
View Full Code Here

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

    BIObject obj = null;
    List params = null;
    List roleList = null;
    try{
      IBIObjectDAO biobjdao = DAOFactory.getBIObjectDAO();
      obj = biobjdao.loadBIObjectById(objId);
      Integer id = obj.getId();
      IBIObjectParameterDAO biobjpardao = DAOFactory.getBIObjectParameterDAO();
      params = biobjpardao.loadBIObjectParametersById(id);
      IRoleDAO roleDao = DAOFactory.getRoleDAO();
      roleList = roleDao.loadAllRoles();
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.