Examples of loadDomainByCodeAndValue()


Examples of it.eng.spagobi.commons.dao.DomainDAOHibImpl.loadDomainByCodeAndValue()

    config.setActive(this.getAttributeAsBoolean("IS_ACTIVE"));
    config.setValueCheck(this.getAttributeAsString("VALUE_CHECK"));
    config.setCategory(this.getAttributeAsString("CATEGORY"));
    if (this.requestContainsAttribute("VALUE_TYPE")) {
      DomainDAOHibImpl domain = new DomainDAOHibImpl();
      Domain dom = domain.loadDomainByCodeAndValue("PAR_TYPE", this
          .getAttributeAsString("VALUE_TYPE"));
      config.setValueTypeId(dom.getValueId());
    }

    logger.debug("OUT");
View Full Code Here

Examples of it.eng.spagobi.commons.dao.IDomainDAO.loadDomainByCodeAndValue()

      try {
        String name = getAttributeAsString(NAME);
        String label = getAttributeAsString(LABEL);
        String description = getAttributeAsString(DESCRIPTION);
        String typeStr = getAttributeAsString(TYPE);     
        Domain tmpDomain = daoDomain.loadDomainByCodeAndValue(UDP_TYPES, typeStr);
        Integer type = tmpDomain.getValueId();
        String familyStr = getAttributeAsString(FAMILY);
        tmpDomain = daoDomain.loadDomainByCodeAndValue(UDP_FAMILIES, familyStr);
        Integer family = tmpDomain.getValueId();
        Boolean isMultivalue = Boolean.valueOf(getAttributeAsBoolean(IS_MULTIVALUE));
View Full Code Here

Examples of it.eng.spagobi.commons.dao.IDomainDAO.loadDomainByCodeAndValue()

        String description = getAttributeAsString(DESCRIPTION);
        String typeStr = getAttributeAsString(TYPE);     
        Domain tmpDomain = daoDomain.loadDomainByCodeAndValue(UDP_TYPES, typeStr);
        Integer type = tmpDomain.getValueId();
        String familyStr = getAttributeAsString(FAMILY);
        tmpDomain = daoDomain.loadDomainByCodeAndValue(UDP_FAMILIES, familyStr);
        Integer family = tmpDomain.getValueId();
        Boolean isMultivalue = Boolean.valueOf(getAttributeAsBoolean(IS_MULTIVALUE));
       
        String id = getAttributeAsString(ID);
       
View Full Code Here

Examples of it.eng.spagobi.commons.dao.IDomainDAO.loadDomainByCodeAndValue()

    DataResult dr = null;
    DataConnection dataConnection = null;
    Integer returnValue = null;
    try {
      IDomainDAO domdao = DAOFactory.getDomainDAO();
      Domain dom = domdao.loadDomainByCodeAndValue(domainCode, valueCode);
      returnValue = dom.getValueId();
    catch (Exception ex) {
      SpagoBITracer.major(SpagoBIConstants.NAME_MODULE,this.getClass().toString(),
      "findSBIDomainValueID", " An exception has occurred ", ex);
    } finally {
View Full Code Here

Examples of it.eng.spagobi.commons.dao.IDomainDAO.loadDomainByCodeAndValue()

      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());
View Full Code Here

Examples of it.eng.spagobi.commons.dao.IDomainDAO.loadDomainByCodeAndValue()

      // 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.loadDomainByCodeAndValue()

      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());
View Full Code Here

Examples of it.eng.spagobi.commons.dao.IDomainDAO.loadDomainByCodeAndValue()

      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);
View Full Code Here

Examples of it.eng.spagobi.commons.dao.IDomainDAO.loadDomainByCodeAndValue()

        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);
View Full Code Here

Examples of it.eng.spagobi.commons.dao.IDomainDAO.loadDomainByCodeAndValue()

        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);
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.