C# Class ScrewTurn.Wiki.AdminMaster

Inheritance: System.Web.UI.MasterPage
ファイルを表示 Open project: mono/ScrewTurnWiki Class Usage Examples

Protected Properties

Property Type Description
cphAdmin global::System.Web.UI.WebControls.ContentPlaceHolder
frmAdmin global::System.Web.UI.HtmlControls.HtmlForm
head global::System.Web.UI.WebControls.ContentPlaceHolder
lblAdminTitle global::System.Web.UI.WebControls.Literal
lblBrowserSupport global::System.Web.UI.WebControls.Label
lblHomeLink global::System.Web.UI.WebControls.Literal
lblJS global::System.Web.UI.WebControls.Literal
lblStrings global::System.Web.UI.WebControls.Literal
lnkSelectAccounts global::System.Web.UI.WebControls.HyperLink
lnkSelectAdminHome global::System.Web.UI.WebControls.HyperLink
lnkSelectCategories global::System.Web.UI.WebControls.HyperLink
lnkSelectConfig global::System.Web.UI.WebControls.HyperLink
lnkSelectContent global::System.Web.UI.WebControls.HyperLink
lnkSelectGroups global::System.Web.UI.WebControls.HyperLink
lnkSelectLog global::System.Web.UI.WebControls.HyperLink
lnkSelectNamespaces global::System.Web.UI.WebControls.HyperLink
lnkSelectNavPaths global::System.Web.UI.WebControls.HyperLink
lnkSelectPages global::System.Web.UI.WebControls.HyperLink
lnkSelectProviders global::System.Web.UI.WebControls.HyperLink
lnkSelectSnippets global::System.Web.UI.WebControls.HyperLink

Public Methods

Method Description
CanApproveDraft ( System.PageInfo page, string username, string groups ) : bool

Determines whether a user can approve/reject a draft of a page.

CanManageCategories ( string username, string groups ) : bool

Determines whether a user can manage categories in at least one namespace.

CanManageConfiguration ( string username, string groups ) : bool

Determines whether a user can manage the configuration.

CanManageGroups ( string username, string groups ) : bool

Determines whether a user can manage user groups.

CanManageNamespaces ( string username, string groups ) : bool

Determines whether a user can manage namespaces.

CanManagePages ( string username, string groups ) : bool

Determines whether a user can manage pages in at least one namespace.

CanManagePermissions ( string username, string groups ) : bool

Determines whether a user can manage permissions.

CanManageProviders ( string username, string groups ) : bool

Determines whether a user can manage providers.

CanManageSnippetsAndTemplates ( string username, string groups ) : bool

Determines whether a user can manage snippets and templates.

CanManageUsers ( string username, string groups ) : bool

Determines whether a user can manager user accounts.

RedirectToLoginIfNeeded ( ) : void

Redirects to the login page if needed.

Protected Methods

Method Description
Page_Load ( object sender, EventArgs e ) : void

Private Methods

Method Description
SetupButtons ( ) : void

Sets up the buttons state.

SetupButtonsVisibility ( ) : void

Sets up the buttons visibility based on the current user's permissions.

Method Details

CanApproveDraft() public static method

Determines whether a user can approve/reject a draft of a page.
public static CanApproveDraft ( System.PageInfo page, string username, string groups ) : bool
page System.PageInfo The page.
username string The username.
groups string The groups.
return bool

CanManageCategories() public static method

Determines whether a user can manage categories in at least one namespace.
public static CanManageCategories ( string username, string groups ) : bool
username string The username.
groups string The groups.
return bool

CanManageConfiguration() public static method

Determines whether a user can manage the configuration.
public static CanManageConfiguration ( string username, string groups ) : bool
username string The username.
groups string The groups.
return bool

CanManageGroups() public static method

Determines whether a user can manage user groups.
public static CanManageGroups ( string username, string groups ) : bool
username string The username.
groups string The groups.
return bool

CanManageNamespaces() public static method

Determines whether a user can manage namespaces.
public static CanManageNamespaces ( string username, string groups ) : bool
username string The username.
groups string The groups.
return bool

CanManagePages() public static method

Determines whether a user can manage pages in at least one namespace.
public static CanManagePages ( string username, string groups ) : bool
username string The username.
groups string The groups.
return bool

CanManagePermissions() public static method

Determines whether a user can manage permissions.
public static CanManagePermissions ( string username, string groups ) : bool
username string The username.
groups string The groups.
return bool

CanManageProviders() public static method

Determines whether a user can manage providers.
public static CanManageProviders ( string username, string groups ) : bool
username string The username.
groups string The groups.
return bool

CanManageSnippetsAndTemplates() public static method

Determines whether a user can manage snippets and templates.
public static CanManageSnippetsAndTemplates ( string username, string groups ) : bool
username string The username.
groups string The groups.
return bool

CanManageUsers() public static method

Determines whether a user can manager user accounts.
public static CanManageUsers ( string username, string groups ) : bool
username string The username.
groups string The groups.
return bool

Page_Load() protected method

protected Page_Load ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

RedirectToLoginIfNeeded() public static method

Redirects to the login page if needed.
public static RedirectToLoginIfNeeded ( ) : void
return void

Property Details

cphAdmin protected_oe property

cphAdmin control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.ContentPlaceHolder cphAdmin
return global::System.Web.UI.WebControls.ContentPlaceHolder

frmAdmin protected_oe property

frmAdmin control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.HtmlControls.HtmlForm frmAdmin
return global::System.Web.UI.HtmlControls.HtmlForm

head protected_oe property

head control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.ContentPlaceHolder head
return global::System.Web.UI.WebControls.ContentPlaceHolder

lblAdminTitle protected_oe property

lblAdminTitle control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Literal lblAdminTitle
return global::System.Web.UI.WebControls.Literal

lblBrowserSupport protected_oe property

lblBrowserSupport control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Label lblBrowserSupport
return global::System.Web.UI.WebControls.Label

lblHomeLink protected_oe property

lblHomeLink control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Literal lblHomeLink
return global::System.Web.UI.WebControls.Literal

lblJS protected_oe property

lblJS control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Literal lblJS
return global::System.Web.UI.WebControls.Literal

lblStrings protected_oe property

lblStrings control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Literal lblStrings
return global::System.Web.UI.WebControls.Literal

lnkSelectAccounts protected_oe property

lnkSelectAccounts control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.HyperLink lnkSelectAccounts
return global::System.Web.UI.WebControls.HyperLink

lnkSelectAdminHome protected_oe property

lnkSelectAdminHome control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.HyperLink lnkSelectAdminHome
return global::System.Web.UI.WebControls.HyperLink

lnkSelectCategories protected_oe property

lnkSelectCategories control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.HyperLink lnkSelectCategories
return global::System.Web.UI.WebControls.HyperLink

lnkSelectConfig protected_oe property

lnkSelectConfig control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.HyperLink lnkSelectConfig
return global::System.Web.UI.WebControls.HyperLink

lnkSelectContent protected_oe property

lnkSelectContent control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.HyperLink lnkSelectContent
return global::System.Web.UI.WebControls.HyperLink

lnkSelectGroups protected_oe property

lnkSelectGroups control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.HyperLink lnkSelectGroups
return global::System.Web.UI.WebControls.HyperLink

lnkSelectLog protected_oe property

lnkSelectLog control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.HyperLink lnkSelectLog
return global::System.Web.UI.WebControls.HyperLink

lnkSelectNamespaces protected_oe property

lnkSelectNamespaces control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.HyperLink lnkSelectNamespaces
return global::System.Web.UI.WebControls.HyperLink

lnkSelectNavPaths protected_oe property

lnkSelectNavPaths control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.HyperLink lnkSelectNavPaths
return global::System.Web.UI.WebControls.HyperLink

lnkSelectPages protected_oe property

lnkSelectPages control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.HyperLink lnkSelectPages
return global::System.Web.UI.WebControls.HyperLink

lnkSelectProviders protected_oe property

lnkSelectProviders control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.HyperLink lnkSelectProviders
return global::System.Web.UI.WebControls.HyperLink

lnkSelectSnippets protected_oe property

lnkSelectSnippets control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.HyperLink lnkSelectSnippets
return global::System.Web.UI.WebControls.HyperLink