Saros
Distributed Collaborative Editing and Distributed Party Programming
de.fu_berlin.inf.dpp.project.internal.PermissionManager Class Reference
Inheritance diagram for de.fu_berlin.inf.dpp.project.internal.PermissionManager:
de.fu_berlin.inf.dpp.session.AbstractActivityProducer de.fu_berlin.inf.dpp.session.IActivityProducer

List of all members.

Public Member Functions

 PermissionManager (ISarosSession sarosSession)
void start ()
void stop ()
void initiatePermissionChange (final User user, final Permission newPermission, UISynchronizer synchronizer) throws CancellationException, InterruptedException

Detailed Description

This manager is responsible for handling Permission changes. It both produces and consumes activities.

Author:
rdjemili

Constructor & Destructor Documentation

de.fu_berlin.inf.dpp.project.internal.PermissionManager.PermissionManager ( ISarosSession  sarosSession)

Member Function Documentation

void de.fu_berlin.inf.dpp.project.internal.PermissionManager.initiatePermissionChange ( final User  user,
final Permission  newPermission,
UISynchronizer  synchronizer 
) throws CancellationException, InterruptedException

Initiates a Permission change for a specific user.

This method may only called by the host. This method mustn't be called from the SWT UI thread

Returning after the Permission change is complete

Parameters:
userThe user who's Permission has to be changed
newPermissionThe new Permission of the user
synchronizerAn Abstraction of the SWT-Thread
Exceptions:
CancellationException
InterruptedException
void de.fu_berlin.inf.dpp.project.internal.PermissionManager.start ( )
void de.fu_berlin.inf.dpp.project.internal.PermissionManager.stop ( )
 All Classes Namespaces Files Functions Variables Enumerations