C# Class ScrewTurn.Wiki.StartupTools

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

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

SetAdministratorsGroupDefaultPermissions() public static méthode

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.
Résultat bool

SetAnonymousGroupDefaultPermissions() public static méthode

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.
Résultat bool

SetUsersGroupDefaultPermissions() public static méthode

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.
Résultat bool

Shutdown() public static méthode

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

Startup() public static méthode

Performs all needed startup operations.
public static Startup ( ) : void
Résultat void