Examples of toRole()


Examples of cn.edu.zju.acm.onlinejudge.form.RoleForm.toRole()

            roleForm.populate(role);
            return this.handleSuccess(mapping, context, "failure");
        }

        RoleSecurity role = roleForm.toRole();
        authorizationPersistence.updateRole(role, context.getUserProfile().getId());

        if (role.getId() == 1) {
            ContextAdapter.resetDefaultUserSecurity();
        }
View Full Code Here

Examples of it.eng.spagobi.commons.dao.RoleDAOHibImpl.toRole()

    Role tmpRole = null;

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

    aParameterUse.setAssociatedChecks(checkList);
    aParameterUse.setAssociatedRoles(roleList);
View Full Code Here

Examples of it.eng.spagobi.commons.dao.RoleDAOHibImpl.toRole()

      SbiMenuRole hibMenuRole = (SbiMenuRole)iterRoles.next();

      SbiExtRoles hibRole =hibMenuRole.getSbiExtRoles();

      RoleDAOHibImpl roleDAO =  new RoleDAOHibImpl();
      Role role = roleDAO.toRole(hibRole);

      rolesList.add(role);
    }

    Role[] rolesD = new Role[rolesList.size()];
View Full Code Here

Examples of it.eng.spagobi.commons.dao.RoleDAOHibImpl.toRole()

        SbiFuncRole hibfuncrole = (SbiFuncRole)iterRoles.next();
        SbiExtRoles hibRole = hibfuncrole.getId().getRole();
        SbiDomains hibPermission = hibfuncrole.getId().getState();
        logger.debug( "hibfuncrole.getId().getRole().getName()="+hibRole.getName() );
        RoleDAOHibImpl roleDAO =  new RoleDAOHibImpl();
        Role role = roleDAO.toRole(hibRole);

        String state = hibPermission.getValueCd();
        if(state.equals(SpagoBIConstants.PERMISSION_ON_FOLDER_TO_DEVELOP)) {
          devRolesList.add(role);
        } else if(state.equals(SpagoBIConstants.PERMISSION_ON_FOLDER_TO_TEST)) {
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.