C# Class Glyma.SharePoint.Security.GlymaPermissionLevelHelper

Mostrar archivo Open project: chris-tomich/Glyma Class Usage Examples

Public Methods

Method Description
GetPermissionLevelByName ( string permissionLevel ) : GlymaPermissionLevel
GetPermissionLevelName ( GlymaPermissionLevel permissionLevel ) : string
IsPermissionGreaterOrEqual ( GlymaPermissionLevel permissionLevel, GlymaPermissionLevel maxPermissionLevel ) : bool
IsPermissionGreaterOrEqual ( string permissionName, string maxPermission ) : bool

Helper method used for checking if one Glyma permission is greater than or less than another.

Method Details

GetPermissionLevelByName() public static method

public static GetPermissionLevelByName ( string permissionLevel ) : GlymaPermissionLevel
permissionLevel string
return GlymaPermissionLevel

GetPermissionLevelName() public static method

public static GetPermissionLevelName ( GlymaPermissionLevel permissionLevel ) : string
permissionLevel GlymaPermissionLevel
return string

IsPermissionGreaterOrEqual() public static method

public static IsPermissionGreaterOrEqual ( GlymaPermissionLevel permissionLevel, GlymaPermissionLevel maxPermissionLevel ) : bool
permissionLevel GlymaPermissionLevel
maxPermissionLevel GlymaPermissionLevel
return bool

IsPermissionGreaterOrEqual() public static method

Helper method used for checking if one Glyma permission is greater than or less than another.
public static IsPermissionGreaterOrEqual ( string permissionName, string maxPermission ) : bool
permissionName string The name of the permission to check
maxPermission string The current maximum permision to check against
return bool