C# Class ScrewTurn.Wiki.StartupTools

Provides tools for starting and shutting down the wiki engine.
Exibir arquivo Open project: mono/ScrewTurnWiki Class Usage Examples

Public Methods

Method Description
GetSettingsStorageProviderConfiguration ( ) : string

Gets the Settings Storage Provider configuration string from web.config.

SetAdministratorsGroupDefaultPermissions ( UserGroup administrators ) : bool

Sets the default permissions for the administrators group, properly importing version 2.0 values.

SetAnonymousGroupDefaultPermissions ( UserGroup anonymous ) : bool

Sets the default permissions for the anonymous users group, properly importing version 2.0 values.

SetUsersGroupDefaultPermissions ( UserGroup users ) : bool

Sets the default permissions for the users group, properly importing version 2.0 values.

Shutdown ( ) : void

Performs shutdown operations, such as shutting-down Providers.

Startup ( ) : void

Performs all needed startup operations.

Private Methods

Method Description
CreateMainPage ( ) : void

Creates the main page.

ImportPageDiscussionPermissions ( ) : bool

Imports version 2.0 page discussion settings and properly propagates them to user groups and single pages, when needed.

SetupFileManagementPermissions ( UserGroup group ) : bool

Sets file management permissions for the users or anonymous users group, importing version 2.0 values.

UpdateDllsIntoSettingsProvider ( ISettingsStorageProviderV30 provider, string settingsProviderAsmName ) : void

Updates the DLLs into the settings storage provider, if appropriate.

VerifyAndCreateDefaultGroups ( ) : bool

Verifies the existence of the default user groups and creates them if necessary.

Method Details

GetSettingsStorageProviderConfiguration() public static method

Gets the Settings Storage Provider configuration string from web.config.
public static GetSettingsStorageProviderConfiguration ( ) : string
return string

SetAdministratorsGroupDefaultPermissions() public static method

Sets the default permissions for the administrators group, properly importing version 2.0 values.
public static SetAdministratorsGroupDefaultPermissions ( UserGroup administrators ) : bool
administrators UserGroup The administrators group.
return bool

SetAnonymousGroupDefaultPermissions() public static method

Sets the default permissions for the anonymous users group, properly importing version 2.0 values.
public static SetAnonymousGroupDefaultPermissions ( UserGroup anonymous ) : bool
anonymous UserGroup The anonymous users group.
return bool

SetUsersGroupDefaultPermissions() public static method

Sets the default permissions for the users group, properly importing version 2.0 values.
public static SetUsersGroupDefaultPermissions ( UserGroup users ) : bool
users UserGroup The users group.
return bool

Shutdown() public static method

Performs shutdown operations, such as shutting-down Providers.
public static Shutdown ( ) : void
return void

Startup() public static method

Performs all needed startup operations.
public static Startup ( ) : void
return void