Package com.narirelays.ems.persistence.orm

Examples of com.narirelays.ems.persistence.orm.AuthoritiesId


        result.setFailed(USER_ALREADY_HAS_SOPHIC_AUTHORITY);
        return result;
      }
    }
    Authorities userAuthority = new Authorities();
    userAuthority.setId(new AuthoritiesId(userID,authority));
    userAuthority.setSrole(role);
    userAuthority.setUsers(user);
    authoritiesDAO.merge(userAuthority);
    result.setSucceed();
    return result;
View Full Code Here


    {
      //试图解除root用户与root角色,则返回错误
      result.setFailed(CANNOT_DISASSOCIATE_ROOT_AUTHORITY);
      return result;
    }
    Authorities userAuthority = authoritiesDAO.findById(new AuthoritiesId(userID,authority));
    if(userAuthority==null)
    {
      result.setFailed(USER_AUTHORITY_NOT_EXIST);
      return result;
    }
View Full Code Here

    {
      user = users.get(0);
    }
   
    //3.关联root用户与root角色
    AuthoritiesId aid = new AuthoritiesId(user.getId(), role.getAuthority());
    Authorities authority = new Authorities(aid, user, role);
    authoritiesDAO.merge(authority);
   
    return true;
  }
View Full Code Here

TOP

Related Classes of com.narirelays.ems.persistence.orm.AuthoritiesId

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.