C# Class Gablarski.LocalServer.PermissionProvider

Inheritance: IPermissionsProvider
Mostra file Open project: ermau/Gablarski Class Usage Examples

Public Methods

Method Description
GetPermissions ( int userId ) : IEnumerable
SetPermissions ( int userId, IEnumerable permissions ) : void
Setup ( ISession session ) : void

Private Methods

Method Description
CreatePermission ( ISession session, PermissionName name, int userId, int channelId ) : void
CreatePermission ( ISession session, PermissionName name, int userId, int channelId, bool allowed ) : void
CreatePermissions ( ISession session, int userId ) : void

Method Details

GetPermissions() public method

public GetPermissions ( int userId ) : IEnumerable
userId int
return IEnumerable

SetPermissions() public method

public SetPermissions ( int userId, IEnumerable permissions ) : void
userId int
permissions IEnumerable
return void

Setup() public static method

public static Setup ( ISession session ) : void
session ISession
return void