Examples of SbiFuncRoleId


Examples of it.eng.spagobi.analiticalmodel.functionalitytree.metadata.SbiFuncRoleId

      List hibList = hibQuery.list();
      if(!hibList.isEmpty()) {
        return;
      }
      // built key
      SbiFuncRoleId hibFuncRoleId = new SbiFuncRoleId();
      SbiFunctions hibFunct = (SbiFunctions)session.load(SbiFunctions.class, funct.getId());
      SbiExtRoles hibRole = (SbiExtRoles)session.load(SbiExtRoles.class, role.getId());
      SbiDomains hibPermission = (SbiDomains)session.load(SbiDomains.class, permissionId);
      hibFuncRoleId.setFunction(hibFunct);
      hibFuncRoleId.setRole(hibRole);
      hibFuncRoleId.setState(hibPermission);
      SbiFuncRole hibFunctRole = new SbiFuncRole(hibFuncRoleId);
      hibFunctRole.setStateCd(permissionCd);
      session.save(hibFunctRole);
      tx.commit();
View Full Code Here

Examples of it.eng.spagobi.analiticalmodel.functionalitytree.metadata.SbiFuncRoleId


  public static SbiFuncRole makeNewSbiFunctRole(SbiFuncRole functrole,
      Integer newFunctid, Integer newRoleid) {
    logger.debug("IN");
    SbiFuncRoleId functroleid = functrole.getId();
    SbiFuncRoleId newFunctroleid = new SbiFuncRoleId();
    if (newFunctid != null) {
      SbiFunctions sbifunct = functroleid.getFunction();
      SbiFunctions newFunct = ImportUtilities.makeNewSbiFunction(sbifunct, newFunctid);
      newFunctroleid.setFunction(newFunct);
    }
    if (newRoleid != null) {
      SbiExtRoles sbirole = functroleid.getRole();
      SbiExtRoles newRole = ImportUtilities.makeNewSbiExtRole(sbirole, newRoleid);
      newFunctroleid.setRole(newRole);
    }
    SbiFuncRole newFunctRole = new SbiFuncRole();
    newFunctRole.setId(newFunctroleid);
    logger.debug("OUT");
    return newFunctRole;
View Full Code Here

Examples of it.eng.spagobi.analiticalmodel.functionalitytree.metadata.SbiFuncRoleId

      Role role = roles[i];
      domainCdCriterrion = Expression.eq("name", role.getName());
      criteria = aSession.createCriteria(SbiExtRoles.class);
      criteria.add(domainCdCriterrion);
      SbiExtRoles hibRole = (SbiExtRoles)criteria.uniqueResult();
      SbiFuncRoleId sbifuncroleid = new SbiFuncRoleId();
      sbifuncroleid.setFunction(hibFunct);
      sbifuncroleid.setState(permissionDomain);
      sbifuncroleid.setRole(hibRole);
      SbiFuncRole sbifuncrole = new SbiFuncRole();
      sbifuncrole.setId(sbifuncroleid);
      sbifuncrole.setStateCd(permissionDomain.getValueCd());
     
      updateSbiCommonInfo4Update(sbifuncrole);
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.