C# Класс ScrewTurn.Wiki.AdminMaster

Наследование: System.Web.UI.MasterPage
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
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

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
Page_Load ( object sender, EventArgs e ) : void

Приватные методы

Метод Описание
SetupButtons ( ) : void

Sets up the buttons state.

SetupButtonsVisibility ( ) : void

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

Описание методов

CanApproveDraft() публичный статический Метод

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.
Результат bool

CanManageCategories() публичный статический Метод

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.
Результат bool

CanManageConfiguration() публичный статический Метод

Determines whether a user can manage the configuration.
public static CanManageConfiguration ( string username, string groups ) : bool
username string The username.
groups string The groups.
Результат bool

CanManageGroups() публичный статический Метод

Determines whether a user can manage user groups.
public static CanManageGroups ( string username, string groups ) : bool
username string The username.
groups string The groups.
Результат bool

CanManageNamespaces() публичный статический Метод

Determines whether a user can manage namespaces.
public static CanManageNamespaces ( string username, string groups ) : bool
username string The username.
groups string The groups.
Результат bool

CanManagePages() публичный статический Метод

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.
Результат bool

CanManagePermissions() публичный статический Метод

Determines whether a user can manage permissions.
public static CanManagePermissions ( string username, string groups ) : bool
username string The username.
groups string The groups.
Результат bool

CanManageProviders() публичный статический Метод

Determines whether a user can manage providers.
public static CanManageProviders ( string username, string groups ) : bool
username string The username.
groups string The groups.
Результат bool

CanManageSnippetsAndTemplates() публичный статический Метод

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.
Результат bool

CanManageUsers() публичный статический Метод

Determines whether a user can manager user accounts.
public static CanManageUsers ( string username, string groups ) : bool
username string The username.
groups string The groups.
Результат bool

Page_Load() защищенный Метод

protected Page_Load ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Результат void

RedirectToLoginIfNeeded() публичный статический Метод

Redirects to the login page if needed.
public static RedirectToLoginIfNeeded ( ) : void
Результат void

Описание свойств

cphAdmin защищенное свойство

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
Результат global::System.Web.UI.WebControls.ContentPlaceHolder

frmAdmin защищенное свойство

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
Результат global::System.Web.UI.HtmlControls.HtmlForm

head защищенное свойство

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
Результат global::System.Web.UI.WebControls.ContentPlaceHolder

lblAdminTitle защищенное свойство

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
Результат global::System.Web.UI.WebControls.Literal

lblBrowserSupport защищенное свойство

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
Результат global::System.Web.UI.WebControls.Label

lblHomeLink защищенное свойство

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
Результат global::System.Web.UI.WebControls.Literal

lblJS защищенное свойство

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
Результат global::System.Web.UI.WebControls.Literal

lblStrings защищенное свойство

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
Результат global::System.Web.UI.WebControls.Literal

lnkSelectAccounts защищенное свойство

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
Результат global::System.Web.UI.WebControls.HyperLink

lnkSelectAdminHome защищенное свойство

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
Результат global::System.Web.UI.WebControls.HyperLink

lnkSelectCategories защищенное свойство

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
Результат global::System.Web.UI.WebControls.HyperLink

lnkSelectConfig защищенное свойство

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
Результат global::System.Web.UI.WebControls.HyperLink

lnkSelectContent защищенное свойство

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
Результат global::System.Web.UI.WebControls.HyperLink

lnkSelectGroups защищенное свойство

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
Результат global::System.Web.UI.WebControls.HyperLink

lnkSelectLog защищенное свойство

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
Результат global::System.Web.UI.WebControls.HyperLink

lnkSelectNamespaces защищенное свойство

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
Результат global::System.Web.UI.WebControls.HyperLink

lnkSelectNavPaths защищенное свойство

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
Результат global::System.Web.UI.WebControls.HyperLink

lnkSelectPages защищенное свойство

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
Результат global::System.Web.UI.WebControls.HyperLink

lnkSelectProviders защищенное свойство

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
Результат global::System.Web.UI.WebControls.HyperLink

lnkSelectSnippets защищенное свойство

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
Результат global::System.Web.UI.WebControls.HyperLink