C# Class ScrewTurn.Wiki.SessionFacade

Exposes in a strongly-typed fashion the Session variables.
显示文件 Open project: mono/ScrewTurnWiki Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
GetCurrentGroupNames ( ) : string[]

Gets the current group names.

GetCurrentGroups ( ) : UserGroup[]

Gets the current user groups.

GetCurrentUser ( ) : UserInfo

Gets the current user, if any.

GetCurrentUsername ( ) : string

Gets the current username for security checks purposes only.

Method Details

GetCurrentGroupNames() public static method

Gets the current group names.
public static GetCurrentGroupNames ( ) : string[]
return string[]

GetCurrentGroups() public static method

Gets the current user groups.
public static GetCurrentGroups ( ) : UserGroup[]
return UserGroup[]

GetCurrentUser() public static method

Gets the current user, if any.
public static GetCurrentUser ( ) : UserInfo
return UserInfo

GetCurrentUsername() public static method

Gets the current username for security checks purposes only.
public static GetCurrentUsername ( ) : string
return string