C# Class Dev2.Services.Security.AuthorizationHelpers

ファイルを表示 Open project: Warewolf-ESB/Warewolf

Public Methods

Method Description
CanDebug ( this permissions ) : bool
IsContributor ( this permissions ) : bool
Matches ( this permission, string resource ) : bool
ToPermissions ( this context ) : Permissions
ToReason ( this value, bool isAuthorized = false ) : string

Method Details

CanDebug() public static method

public static CanDebug ( this permissions ) : bool
permissions this
return bool

IsContributor() public static method

public static IsContributor ( this permissions ) : bool
permissions this
return bool

Matches() public static method

public static Matches ( this permission, string resource ) : bool
permission this
resource string
return bool

ToPermissions() public static method

public static ToPermissions ( this context ) : Permissions
context this
return Permissions

ToReason() public static method

public static ToReason ( this value, bool isAuthorized = false ) : string
value this
isAuthorized bool
return string