C# Class ScrewTurn.Wiki.AuthTools

Implements tools supporting athorization management.
Exibir arquivo Open project: mono/ScrewTurnWiki Class Usage Examples

Public Methods

Method Description
GetDirectoryName ( IFilesStorageProviderV30 prov, string name ) : string

Gets the proper full name for a directory.

IsGroup ( string subject ) : bool

Determines whether a subject is a group.

IsValidAction ( string action, string validActions ) : bool

Determines whether an action is valid.

PrepareGroup ( string group ) : string

Prepends the proper string to the group name.

PrepareGroups ( string groups ) : string[]

Prepends the proper string to each group name in an array.

PrepareUsername ( string username ) : string

Prepends the proper string to a username.

Method Details

GetDirectoryName() public static method

Gets the proper full name for a directory.
public static GetDirectoryName ( IFilesStorageProviderV30 prov, string name ) : string
prov IFilesStorageProviderV30 The provider.
name string The directory name.
return string

IsGroup() public static method

Determines whether a subject is a group.
public static IsGroup ( string subject ) : bool
subject string The subject to test.
return bool

IsValidAction() public static method

Determines whether an action is valid.
public static IsValidAction ( string action, string validActions ) : bool
action string The action to validate.
validActions string The list of valid actions.
return bool

PrepareGroup() public static method

Prepends the proper string to the group name.
public static PrepareGroup ( string group ) : string
group string The group name.
return string

PrepareGroups() public static method

Prepends the proper string to each group name in an array.
public static PrepareGroups ( string groups ) : string[]
groups string The group array.
return string[]

PrepareUsername() public static method

Prepends the proper string to a username.
public static PrepareUsername ( string username ) : string
username string The username.
return string