Package it.eng.spagobi.commons.bo

Examples of it.eng.spagobi.commons.bo.Role


      Query hibQuery = session.createQuery(" from SbiExtRoles");
      List hibList = hibQuery.list();
      Iterator it = hibList.iterator();
      while (it.hasNext()) {
        SbiExtRoles hibRole = (SbiExtRoles) it.next();
        Role role = new Role();
        role.setCode(hibRole.getCode());
        role.setDescription(hibRole.getDescr());
        role.setId(hibRole.getExtRoleId());
        role.setName(hibRole.getName());
        role.setRoleTypeCD(hibRole.getRoleTypeCode());
        role.setRoleTypeID(hibRole.getRoleType().getValueId());
        roles.add(role);
      }
    } catch (HibernateException he) {
      logger.error("Error while getting exported roles ", he);
      throw new EMFUserError(EMFErrorSeverity.ERROR, "8004", "component_impexp_messages");
View Full Code Here


    }
   
    Role[] execRoles = folder.getExecRoles();
    List execRoleNames = new ArrayList();
    for (int i = 0; i < execRoles.length; i++) {
      Role role = execRoles[i];
      execRoleNames.add(role.getName());
    }

    Iterator iterRoles = roles.iterator();
    String roleName = "";
    while (iterRoles.hasNext()) {
View Full Code Here

    }

    Role[] testRoles = folder.getTestRoles();
    List testRoleNames = new ArrayList();
    for (int i = 0; i < testRoles.length; i++) {
      Role role = testRoles[i];
      testRoleNames.add(role.getName());
    }

    Iterator iterRoles = roles.iterator();
    String roleName = "";
    while (iterRoles.hasNext()) {
View Full Code Here

    }

    Role[] devRoles = folder.getDevRoles();
    List devRoleNames = new ArrayList();
    for (int i = 0; i < devRoles.length; i++) {
      Role role = devRoles[i];
      devRoleNames.add(role.getName());
    }

    Iterator iterRoles = roles.iterator();
    String roleName = "";
    while (iterRoles.hasNext()) {
View Full Code Here

      return false;
    }
    Role[] testRoles = funct.getTestRoles();
    List testRoleNames = new ArrayList();
    for (int i = 0; i < testRoles.length; i++) {
      Role role = testRoles[i];
      testRoleNames.add(role.getName());
    }

    Iterator iterRoles = roles.iterator();
    String roleName = "";
    while (iterRoles.hasNext()) {
View Full Code Here

      return false;
    }
    Role[] devRoles = funct.getDevRoles();
    List devRoleNames = new ArrayList();
    for (int i = 0; i < devRoles.length; i++) {
      Role role = devRoles[i];
      devRoleNames.add(role.getName());
    }

    Iterator iterRoles = roles.iterator();
    String roleName = "";
    while (iterRoles.hasNext()) {
View Full Code Here


    Set hibParUseDets = hibParUse.getSbiParuseDets();
    SbiParuseDet aSbiParuseDet = null;
    RoleDAOHibImpl roleDAOHibImpl = new RoleDAOHibImpl();
    Role tmpRole = null;

    List roleList = new ArrayList();
    for (Iterator itParUseDet = hibParUseDets.iterator(); itParUseDet.hasNext();){
      aSbiParuseDet = (SbiParuseDet)itParUseDet.next();
      tmpRole = roleDAOHibImpl.toRole(aSbiParuseDet.getId().getSbiExtRoles());
View Full Code Here

  }

  Iterator iter_sb_roles = ldapRoles.iterator();
  while (iter_sb_roles.hasNext()) {
      String roleStr = (String) iter_sb_roles.next();
      Role role = new Role(roleStr, roleStr);
      logger.debug("ADD ROLE:roleStr=" + roleStr);
      roles.add(role);
  }
  logger.debug("OUT");
  return roles;
View Full Code Here

 
  while (iterRoles.hasNext()) {
      String roleName = (String) iterRoles.next();
      logger.debug("RoleName from LDAP:"+roleName);
      if (roleName!=null && !roleName.equals("Group")){
    Role role = new Role(roleName, roleName);
    roles.add(role);
      }
     
  }
View Full Code Here

    Parameter parameter = null;
   
    try{
   
      parameter = loadForDetailByParameterID(parameterID);
      Role role = DAOFactory.getRoleDAO().loadByName(roleName);
     
      aSession = getSession();
      tx = aSession.beginTransaction();
      Criterion domainCdCriterrion = null;
      Criteria criteria = null;
     
      // load all the paruse with the given parmaeter id
      domainCdCriterrion = Expression.eq("sbiParameters.parId", parameter.getId());
      criteria = aSession.createCriteria(SbiParuse.class);
      criteria.add(domainCdCriterrion);
      List paruses = criteria.list();
     
     
      List parUseAssociated = new ArrayList();
      Iterator parusesIter = paruses.iterator();
      while(parusesIter.hasNext()) {
        SbiParuse hibParuse = (SbiParuse)parusesIter.next();
        Iterator paruseDetsIter = hibParuse.getSbiParuseDets().iterator();
       
       
        while(paruseDetsIter.hasNext()){
          SbiParuseDet hibParuseDet = (SbiParuseDet)paruseDetsIter.next();
          if (hibParuseDet.getId().getSbiExtRoles().getExtRoleId().equals(role.getId())){
            parUseAssociated.add(hibParuse);
          }
        }
      }
   
View Full Code Here

TOP

Related Classes of it.eng.spagobi.commons.bo.Role

Copyright © 2018 www.massapicom. 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.