public void deleteUserRoleMapping( String userId, String source ) throws NoSuchRoleMappingException { boolean found = getConfiguration().removeUserRoleMappingByUserId( userId, source ); if ( !found ) { throw new NoSuchRoleMappingException( "No User Role Mapping for user: " + userId ); } }
private CUserRoleMapping readCUserRoleMapping( String userId, String source ) throws NoSuchRoleMappingException { CUserRoleMapping mapping = getConfiguration().getUserRoleMappingByUserId( userId, source ); if ( mapping != null ) { return mapping; } else { throw new NoSuchRoleMappingException( "No User Role Mapping for user: " + userId ); } }