C# Class Security.AuthorizationService

Inheritance: IAuthorizationService
ファイルを表示 Open project: derickbailey/Security

Private Properties

Property Type Description
CheckPermissionsForAllowedAccess bool
DeletePermission void

Public Methods

Method Description
AuthorizationService ( IPermissionRepository permissionRepository ) : System.Collections.Generic
IsAllowed ( IUser user, string action ) : bool
RemovePermission ( IRole role, IAction action ) : void
RemovePermission ( IUser user, IAction action ) : void
SetPermission ( IRole role, IAction action, bool isAllowed ) : Permission
SetPermission ( IUser user, IAction action, bool isAllowed ) : Permission

Private Methods

Method Description
CheckPermissionsForAllowedAccess ( IEnumerable permissions ) : bool
DeletePermission ( Permission permission ) : void

Method Details

AuthorizationService() public method

public AuthorizationService ( IPermissionRepository permissionRepository ) : System.Collections.Generic
permissionRepository IPermissionRepository
return System.Collections.Generic

IsAllowed() public method

public IsAllowed ( IUser user, string action ) : bool
user IUser
action string
return bool

RemovePermission() public method

public RemovePermission ( IRole role, IAction action ) : void
role IRole
action IAction
return void

RemovePermission() public method

public RemovePermission ( IUser user, IAction action ) : void
user IUser
action IAction
return void

SetPermission() public method

public SetPermission ( IRole role, IAction action, bool isAllowed ) : Permission
role IRole
action IAction
isAllowed bool
return Permission

SetPermission() public method

public SetPermission ( IUser user, IAction action, bool isAllowed ) : Permission
user IUser
action IAction
isAllowed bool
return Permission