Add the add_user_to_group and remove_user_from_group api method calls. If the identity provider isn't writable, the method implementations should throw an Invalid Operation exception.

This commit is contained in:
Tim Almdal
2009-10-29 19:16:08 -07:00
parent 04bf50bfb4
commit c6fbd34f28
4 changed files with 59 additions and 0 deletions

View File

@@ -113,6 +113,19 @@ interface IdentityProvider_Driver {
*/
public function groups();
/**
* Add the user to the specified group
* @param User_Definition the user to add to the group
* @param int the group_id
*/
static function add_user_to_group($user, $group_id);
/**
* Remove the user to the specified group
* @param User_Definition the user to add to the group
* @param int the group id
*/
static function remove_user_from_group($user, $group_id);
} // End Identity Driver Definition
interface Group_Definition {}