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;