public function attachRole(core_kernel_classes_Resource $user, core_kernel_classes_Resource $role)
	{
	    // check that current user has rights to set this role
        $this->checkCurrentUserAccess($role);
		$this->generisUserService->attachRole($user, $role);
	}
public function attachRole(core_kernel_classes_Resource $user, core_kernel_classes_Resource $role)
	{
	    // check that current user has rights to set this role
        $this->checkCurrentUserAccess($role);
		$this->generisUserService->attachRole($user, $role);
	}
public function attachRole ( core_kernel_classes_Resource $ user , core_kernel_classes_Resource $ role ) { // check that current user has rights to set this role
 $ this -> checkCurrentUserAccess ( $ role ) ; $ this -> generisUserService -> attachRole ( $ user , $ role ) ; }
Attach a Generis Role to a given TAO User. A UserException will be
if an error occurs. If the User already has the role, nothing happens.

@access public
@author Jerome Bogaerts, <jerome@taotesting.com>
@param  Resource user The User you want to attach a Role.
@param  Resource role A Role to attach to a User.
@throws core_kernel_users_Exception If an error occurs.
Attach a Generis Role to a given TAO User . A UserException will be if an error occurs . If the User already has the role nothing happens .