Examples of IDomainDAO


Examples of it.eng.spagobi.commons.dao.IDomainDAO

      }
     
      List defaultRoles = _config.getAttributeAsList("DEFAULT_ROLES.ROLE");
      IRoleDAO roleDAO= DAOFactory.getRoleDAO();
      roleDAO.setUserID("server_init");
      IDomainDAO domainDAO = DAOFactory.getDomainDAO();
        List<Domain> domains =domainDAO.loadListDomainsByType("ROLE_TYPE");
        HashMap<String, Integer> domainIds = new HashMap<String, Integer> ();
        for(int i=0; i< domains.size(); i++){
          domainIds.put(domains.get(i).getValueCd(), domains.get(i).getValueId());
        }
       
View Full Code Here

Examples of it.eng.spagobi.commons.dao.IDomainDAO

        ((String)request.getAttribute("SUBMESSAGEDET")).equalsIgnoreCase(MOD_SAVEBACK))
      {
        response.setAttribute("loopback", "true");
        return;
      }
      IDomainDAO domaindao = DAOFactory.getDomainDAO();
      List dialects = domaindao.loadListDomainsByType("DIALECT_HIB");
      response.setAttribute(NAME_ATTR_LIST_DIALECTS, dialects);
      response.setAttribute("modality", modalita);
      response.setAttribute("dlObj", dl);
    } catch (Exception ex) {
      logger.error("Cannot fill response container" + ex.getLocalizedMessage())
View Full Code Here

Examples of it.eng.spagobi.commons.dao.IDomainDAO

        mod = SpagoBIConstants.DETAIL_MOD;
      } else {       
        //updates dl
        dao.modifyDistributionList(dlNew);     
     
      IDomainDAO domaindao = DAOFactory.getDomainDAO();
      List dialects = domaindao.loadListDomainsByType("DIALECT_HIB");
      serviceResponse.setAttribute(NAME_ATTR_LIST_DIALECTS, dialects);
     
      if (serviceRequest.getAttribute("SUBMESSAGEDET") != null &&
        ((String)serviceRequest.getAttribute("SUBMESSAGEDET")).equalsIgnoreCase(MOD_SAVE)) { 
        serviceResponse.setAttribute("modality", mod);
View Full Code Here

Examples of it.eng.spagobi.commons.dao.IDomainDAO

      dl = new DistributionList();
      dl.setId(-1);
      dl.setDescr("");
      dl.setName("");
      response.setAttribute("dlObj", dl);
      IDomainDAO domaindao = DAOFactory.getDomainDAO();
      List dialects = domaindao.loadListDomainsByType("DIALECT_HIB");
      response.setAttribute(NAME_ATTR_LIST_DIALECTS, dialects);
    } catch (Exception ex) {
      logger.error("Cannot prepare page for the insertion" , ex);   
      throw new EMFUserError(EMFErrorSeverity.ERROR, 100);
    }
View Full Code Here

Examples of it.eng.spagobi.commons.dao.IDomainDAO

      }
      docName += toBeAppendedToName;
      String docDesc = sInfo.getDocumentDescription() + toBeAppendedToDescription;

      // recover office document sbidomains
      IDomainDAO domainDAO = DAOFactory.getDomainDAO();
      Domain officeDocDom = domainDAO.loadDomainByCodeAndValue("BIOBJ_TYPE", "OFFICE_DOC");
      // recover development sbidomains
      Domain relDom = domainDAO.loadDomainByCodeAndValue("STATE", "REL");
      // recover engine
      IEngineDAO engineDAO = DAOFactory.getEngineDAO();
      List engines = engineDAO.loadAllEnginesForBIObjectType(officeDocDom.getValueCd());
      if(engines.isEmpty()) {
        throw new Exception(" No suitable engines for the new document");
View Full Code Here

Examples of it.eng.spagobi.commons.dao.IDomainDAO

        ((String)request.getAttribute("SUBMESSAGEDET")).equalsIgnoreCase(MOD_SAVEBACK))
      {
        response.setAttribute("loopback", "true");
        return;
      }
      IDomainDAO domaindao = DAOFactory.getDomainDAO();
      List dialects = domaindao.loadListDomainsByType("DIALECT_HIB");
      response.setAttribute(NAME_ATTR_LIST_DIALECTS, dialects);
      response.setAttribute("modality", modalita);
      response.setAttribute("dsObj", ds);
    } catch (Exception ex) {
      logger.error("Cannot fill response container" + ex.getLocalizedMessage())
View Full Code Here

Examples of it.eng.spagobi.commons.dao.IDomainDAO

        mod = SpagoBIConstants.DETAIL_MOD;
      } else {       
        //update ds
        dao.modifyDataSource(dsNew);     
     
      IDomainDAO domaindao = DAOFactory.getDomainDAO();
      List dialects = domaindao.loadListDomainsByType("DIALECT_HIB");
      serviceResponse.setAttribute(NAME_ATTR_LIST_DIALECTS, dialects);
     
      if (serviceRequest.getAttribute("SUBMESSAGEDET") != null &&
        ((String)serviceRequest.getAttribute("SUBMESSAGEDET")).equalsIgnoreCase(MOD_SAVE)) { 
        serviceResponse.setAttribute("modality", mod);
View Full Code Here

Examples of it.eng.spagobi.commons.dao.IDomainDAO

      ds.setPwd("");
      ds.setDriver("");
      ds.setMultiSchema(false);
      ds.setSchemaAttribute("");
      response.setAttribute("dsObj", ds);
      IDomainDAO domaindao = DAOFactory.getDomainDAO();
      List dialects = domaindao.loadListDomainsByType("DIALECT_HIB");
      response.setAttribute(NAME_ATTR_LIST_DIALECTS, dialects);
    } catch (Exception ex) {
      logger.error("Cannot prepare page for the insertion" , ex);   
      throw new EMFUserError(EMFErrorSeverity.ERROR, 100);
    }
View Full Code Here

Examples of it.eng.spagobi.commons.dao.IDomainDAO

      Query hibQuery = session.createQuery(" from SbiFunctions where funct_id = " + funct.getId());
      List hibList = hibQuery.list();
      if(!hibList.isEmpty()) {
        return;
      }
      IDomainDAO domDAO = DAOFactory.getDomainDAO();
      Domain functTypeDom = domDAO.loadDomainByCodeAndValue("FUNCT_TYPE", funct.getCodType());
      SbiDomains hibFunctType = (SbiDomains)session.load(SbiDomains.class, functTypeDom.getValueId());
      SbiFunctions hibFunct = new SbiFunctions(funct.getId());
      hibFunct.setCode(funct.getCode());
      hibFunct.setDescr(funct.getDescription());
      hibFunct.setFunctTypeCd(funct.getCodType());
      hibFunct.setFunctType(hibFunctType);
      hibFunct.setName(funct.getName());
      hibFunct.setPath(funct.getPath());
      hibFunct.setProg(funct.getProg());
      session.save(hibFunct);
      tx.commit();
      Role[] devRoles = funct.getDevRoles();
      Domain devDom = domDAO.loadDomainByCodeAndValue(SpagoBIConstants.PERMISSION_ON_FOLDER,
          SpagoBIConstants.PERMISSION_ON_FOLDER_TO_DEVELOP);
      for(int i=0; i<devRoles.length; i++) {
        Role devRole = devRoles[i];
        insertRole(devRole, session);
        insertFunctRole(devRole, funct, devDom.getValueId(), devDom.getValueCd(), session);
      }
      Role[] testRoles = funct.getTestRoles();
      Domain testDom = domDAO.loadDomainByCodeAndValue(SpagoBIConstants.PERMISSION_ON_FOLDER,
          SpagoBIConstants.PERMISSION_ON_FOLDER_TO_TEST);
      for(int i=0; i<testRoles.length; i++) {
        Role testRole = testRoles[i];
        insertRole(testRole, session);
        insertFunctRole(testRole, funct, testDom.getValueId(), testDom.getValueCd(), session);
      }
      Role[] execRoles = funct.getExecRoles();
      Domain execDom = domDAO.loadDomainByCodeAndValue(SpagoBIConstants.PERMISSION_ON_FOLDER,
          SpagoBIConstants.PERMISSION_ON_FOLDER_TO_EXECUTE);
      for(int i=0; i<execRoles.length; i++) {
        Role execRole = execRoles[i];
        insertRole(execRole, session);
        insertFunctRole(execRole, funct, execDom.getValueId(), execDom.getValueCd(), session);
      }
      Role[] createRoles = funct.getCreateRoles();
      Domain createDom = domDAO.loadDomainByCodeAndValue(SpagoBIConstants.PERMISSION_ON_FOLDER,
          SpagoBIConstants.PERMISSION_ON_FOLDER_TO_CREATE);
      for(int i=0; i<createRoles.length; i++) {
        Role createRole = createRoles[i];
        insertRole(createRole, session);
        insertFunctRole(createRole, funct, createDom.getValueId(), createDom.getValueCd(), session);
View Full Code Here

Examples of it.eng.spagobi.commons.dao.IDomainDAO

            for (Iterator iterator = exporters.iterator(); iterator.hasNext();) {
             
               Exporters exp = (Exporters) iterator.next();
               Integer domainId=exp.getDomainId();
              
               IDomainDAO domainDao=DAOFactory.getDomainDAO();
               Domain domain=domainDao.loadDomainById(domainId);
               if(domain!=null){
                 String value_cd=domain.getValueCd();
                 String urlExporter=null
                 if (value_cd!=null){
                   prova.put(value_cd);
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.