* @exception Exception A generic exception.
*/
public static RoleSet retrieveSet(User user, Group group)
throws Exception
{
Criteria criteria = new Criteria();
criteria.add(UserPeerManager.getNameColumn(),
user.getName());
criteria.add(TurbineUserGroupRolePeer.GROUP_ID,
((Persistent) group).getPrimaryKey());
criteria.addJoin(UserPeerManager.getIdColumn(),
TurbineUserGroupRolePeer.USER_ID);
criteria.addJoin(TurbineUserGroupRolePeer.ROLE_ID, getIdColumn());
return retrieveSet(criteria);
}