Method | Description | |
---|---|---|
AddToolbarItem ( ToolbarItem item, string text, string value ) : void |
Adds an item in the Editing Toolbar.
|
|
AlignDateTimeWithPreferences ( System.DateTime dt ) : System.DateTime |
Aligns a Date and Time object to the User's Time Zone preferences. The method takes care of daylight saving settings. |
|
ChangeCurrentUserLanguage ( string language ) : void |
Changes the language of the current user.
|
|
CheckActionForDirectory ( |
Checks whether an action is allowed for a directory.
|
|
CheckActionForGlobals ( string action, UserInfo user ) : bool |
Checks whether an action is allowed for a global resource.
|
|
CheckActionForNamespace ( NamespaceInfo nspace, string action, UserInfo user ) : bool |
Checks whether an action is allowed for a namespace.
|
|
CheckActionForPage ( System.PageInfo page, string action, UserInfo user ) : bool |
Checks whether an action is allowed for a page.
|
|
ClearCache ( CacheData data ) : void |
Clears the cache.
|
|
FindNamespace ( string name ) : NamespaceInfo |
Finds a namespace by name.
|
|
FindPage ( string fullName ) : System.PageInfo |
Gets a Wiki Page.
|
|
FindUser ( string username ) : UserInfo |
Finds a user by username, properly handling Users Storage Providers.
|
|
FindUserGroup ( string name ) : UserGroup |
Finds a user group by name.
|
|
Format ( string raw ) : string |
Formats a block of WikiMarkup, using the built-in formatter only.
|
|
GetBackupContent ( System.PageInfo page, int revision ) : |
Gets the Content of a Page Backup.
|
|
GetBackups ( System.PageInfo page ) : int[] |
Gets the Backup/Revision numbers of a Page.
|
|
GetCacheProviders ( bool enabled ) : ICacheProviderV30[] |
Gets the cache providers, either enabled or disabled.
|
|
GetCategories ( NamespaceInfo nspace ) : CategoryInfo[] |
Gets the List of Categories in a namespace.
|
|
GetCategoriesPerPage ( System.PageInfo page ) : CategoryInfo[] |
Gets the Categories of a Page.
|
|
GetCurrentUser ( ) : UserInfo |
Gets the authenticated user in the current session, if any. If the built-it admin user is authenticated, the returned user has admin as Username. |
|
GetDefaultProvider ( |
Gets the default provider of the specified type.
|
|
GetFilesStorageProviders ( bool enabled ) : IFilesStorageProviderV30[] |
Gets the files storage providers, either enabled or disabled.
|
|
GetFormattedContent ( System.PageInfo page ) : string |
Gets the formatted content of a Wiki Page.
|
|
GetFormatterProviders ( bool enabled ) : IFormatterProviderV30[] |
Gets the formatter providers, either enabled or disabled.
|
|
GetNamespaces ( ) : NamespaceInfo[] |
Gets the list of the namespaces.
|
|
GetNavigationPaths ( NamespaceInfo nspace ) : NavigationPath[] |
Gets the list of Navigation Paths in a namespace.
|
|
GetPageContent ( System.PageInfo page ) : |
Gets the Content of a Page.
|
|
GetPages ( NamespaceInfo nspace ) : System.PageInfo[] |
Gets the list of the Wiki Pages in a namespace.
|
|
GetPagesStorageProviders ( bool enabled ) : IPagesStorageProviderV30[] |
Gets the pages storage providers, either enabled or disabled.
|
|
GetProviderConfiguration ( string providerTypeName ) : string |
Gets the configuration of a provider.
|
|
GetSettingValue ( SettingName name ) : string |
Gets the values of the Wiki Settings.
|
|
GetSettingsStorageProvider ( ) : ISettingsStorageProviderV30 |
Gets the current settings storage provider.
|
|
GetSnippets ( ) : System.Snippet[] |
Gets the list of Snippets.
|
|
GetTheme ( NamespaceInfo nspace ) : string |
Gets the theme in use for a namespace.
|
|
GetUserGroups ( ) : UserGroup[] |
Gets the list of the user groups.
|
|
GetUsers ( ) : UserInfo[] |
Gets the list of the Users.
|
|
GetUsersStorageProviders ( bool enabled ) : IUsersStorageProviderV30[] |
Gets the users storage providers, either enabled or disabled.
|
|
Host ( ) : System |
Initializes a new instance of the PluginHost class.
|
|
ListDirectories ( |
Lists directories in a directory.
|
|
ListFiles ( |
Lists files in a directory.
|
|
ListPageAttachments ( System.PageInfo page ) : StFileInfo[] |
Lists page attachments.
|
|
LogEntry ( string message, LogEntryType entryType, string user, object caller ) : void |
Logs a new message.
|
|
OnAttachmentActivity ( string provider, string attachment, string page, string oldAttachmentName, FileActivity activity ) : void |
Fires the FileActivity event.
|
|
OnDirectoryActivity ( string provider, string directory, string oldDirectoryName, FileActivity activity ) : void |
Fires the FileActivity event.
|
|
OnFileActivity ( string provider, string file, string oldFileName, FileActivity activity ) : void |
Fires the FileActivity event.
|
|
OnNamespaceActivity ( NamespaceInfo nspace, string nspaceOldName, NamespaceActivity activity ) : void |
Fires the NamespaceActivity event.
|
|
OnPageActivity ( System.PageInfo page, string pageOldName, string author, PageActivity activity ) : void |
Fires the PageActivity event.
|
|
OnUserAccountActivity ( UserInfo user, UserAccountActivity activity ) : void |
Fires the UserAccountActivity event.
|
|
OnUserGroupActivity ( UserGroup group, UserGroupActivity activity ) : void |
Fires the UserGroupActivity event.
|
|
PerformSearch ( string query, bool fullText, bool filesAndAttachments, SearchOptions options ) : SearchResultCollection |
Performs a search.
|
|
PrepareContentForIndexing ( System.PageInfo page, string content ) : string |
Prepares content for indexing in the search engine, performing bare-bones formatting and removing all WikiMarkup and XML-like characters.
|
|
PrepareTitleForIndexing ( System.PageInfo page, string title ) : string |
Prepares a title for indexing in the search engine, removing all WikiMarkup and XML-like characters.
|
|
SendEmail ( string recipient, string sender, string subject, string body, bool html ) : bool |
Sends an Email.
|
|
SetProviderConfiguration ( IProviderV30 provider, string configuration ) : bool |
Sets the configuration of a provider.
|
|
UpgradePageStatusToAcl ( System.PageInfo page, char oldStatus ) : bool |
Upgrades the old Page Status to use the new ACL facilities.
|
|
UpgradeSecurityFlagsToGroupsAcl ( UserGroup administrators, UserGroup users ) : bool |
Upgrades the old security flags to use the new ACL facilities and user groups support.
|
public AddToolbarItem ( ToolbarItem item, string text, string value ) : void | ||
item | ToolbarItem | The item to add. |
text | string | The text of the item. |
value | string | The value of the item. |
return | void |
public AlignDateTimeWithPreferences ( System.DateTime dt ) : System.DateTime | ||
dt | System.DateTime | The Date/Time to align. |
return | System.DateTime |
public ChangeCurrentUserLanguage ( string language ) : void | ||
language | string | The language code. |
return | void |
public CheckActionForDirectory ( |
||
directory | The directory. | |
action | string | The action (see |
user | UserInfo | The user. |
return | bool |
public CheckActionForGlobals ( string action, UserInfo user ) : bool | ||
action | string | The action (see |
user | UserInfo | The user. |
return | bool |
public CheckActionForNamespace ( NamespaceInfo nspace, string action, UserInfo user ) : bool | ||
nspace | NamespaceInfo | The namespace ( |
action | string | The action (see |
user | UserInfo | The user. |
return | bool |
public CheckActionForPage ( System.PageInfo page, string action, UserInfo user ) : bool | ||
page | System.PageInfo | The page. |
action | string | The action (see |
user | UserInfo | The user. |
return | bool |
public ClearCache ( CacheData data ) : void | ||
data | CacheData | The part of the cache to clear. |
return | void |
public FindNamespace ( string name ) : NamespaceInfo | ||
name | string | The name. |
return | NamespaceInfo |
public FindPage ( string fullName ) : System.PageInfo | ||
fullName | string | The full Name of the Page. |
return | System.PageInfo |
public FindUser ( string username ) : UserInfo | ||
username | string | The username. |
return | UserInfo |
public FindUserGroup ( string name ) : UserGroup | ||
name | string | The name. |
return | UserGroup |
public Format ( string raw ) : string | ||
raw | string | The block of WikiMarkup. |
return | string |
public GetBackupContent ( System.PageInfo page, int revision ) : |
||
page | System.PageInfo | The Page. |
revision | int | The revision. |
return |
public GetBackups ( System.PageInfo page ) : int[] | ||
page | System.PageInfo | The Page. |
return | int[] |
public GetCacheProviders ( bool enabled ) : ICacheProviderV30[] | ||
enabled | bool | |
return | ICacheProviderV30[] |
public GetCategories ( NamespaceInfo nspace ) : CategoryInfo[] | ||
nspace | NamespaceInfo | The namespace ( |
return | CategoryInfo[] |
public GetCategoriesPerPage ( System.PageInfo page ) : CategoryInfo[] | ||
page | System.PageInfo | The Page. |
return | CategoryInfo[] |
public GetDefaultProvider ( |
||
providerType | The type of the provider (
/// |
|
return | string |
public GetFilesStorageProviders ( bool enabled ) : IFilesStorageProviderV30[] | ||
enabled | bool | |
return | IFilesStorageProviderV30[] |
public GetFormattedContent ( System.PageInfo page ) : string | ||
page | System.PageInfo | The Page. |
return | string |
public GetFormatterProviders ( bool enabled ) : IFormatterProviderV30[] | ||
enabled | bool | |
return | IFormatterProviderV30[] |
public GetNavigationPaths ( NamespaceInfo nspace ) : NavigationPath[] | ||
nspace | NamespaceInfo | The namespace ( |
return | NavigationPath[] |
public GetPageContent ( System.PageInfo page ) : |
||
page | System.PageInfo | The Page. |
return |
public GetPages ( NamespaceInfo nspace ) : System.PageInfo[] | ||
nspace | NamespaceInfo | The namespace ( |
return | System.PageInfo[] |
public GetPagesStorageProviders ( bool enabled ) : IPagesStorageProviderV30[] | ||
enabled | bool | |
return | IPagesStorageProviderV30[] |
public GetProviderConfiguration ( string providerTypeName ) : string | ||
providerTypeName | string | The type name of the provider, such as 'Vendor.Namespace.Provider'. |
return | string |
public GetSettingValue ( SettingName name ) : string | ||
name | SettingName | The Setting's Name. |
return | string |
public GetSettingsStorageProvider ( ) : ISettingsStorageProviderV30 | ||
return | ISettingsStorageProviderV30 |
public GetTheme ( NamespaceInfo nspace ) : string | ||
nspace | NamespaceInfo | The namespace ( |
return | string |
public GetUsersStorageProviders ( bool enabled ) : IUsersStorageProviderV30[] | ||
enabled | bool | |
return | IUsersStorageProviderV30[] |
public ListDirectories ( |
||
directory | The directory ( |
|
return | ScrewTurn.Wiki.PluginFramework.StDirectoryInfo[] |
public ListFiles ( |
||
directory | The directory ( |
|
return | StFileInfo[] |
public ListPageAttachments ( System.PageInfo page ) : StFileInfo[] | ||
page | System.PageInfo | The page. |
return | StFileInfo[] |
public LogEntry ( string message, LogEntryType entryType, string user, object caller ) : void | ||
message | string | The Message. |
entryType | LogEntryType | The Entry Type. |
user | string | The user, or |
caller | object | The Component that calls the method. The caller cannot be null. |
return | void |
public OnAttachmentActivity ( string provider, string attachment, string page, string oldAttachmentName, FileActivity activity ) : void | ||
provider | string | The provider that handles the attachment. |
attachment | string | The old name of the renamed attachment, if any. |
page | string | The page that owns the attachment. |
oldAttachmentName | string | The old name of the renamed attachment, if any. |
activity | FileActivity | The activity. |
return | void |
public OnDirectoryActivity ( string provider, string directory, string oldDirectoryName, FileActivity activity ) : void | ||
provider | string | The provider that handles the directory. |
directory | string | The directory that changed. |
oldDirectoryName | string | The old name of the renamed directory, if any. |
activity | FileActivity | The activity. |
return | void |
public OnFileActivity ( string provider, string file, string oldFileName, FileActivity activity ) : void | ||
provider | string | The provider that handles the file. |
file | string | The name of the file that changed. |
oldFileName | string | The old name of the renamed file, if any. |
activity | FileActivity | The activity. |
return | void |
public OnNamespaceActivity ( NamespaceInfo nspace, string nspaceOldName, NamespaceActivity activity ) : void | ||
nspace | NamespaceInfo | The namespace the activity refers to. |
nspaceOldName | string | The old name of the renamed namespace, or |
activity | NamespaceActivity | The activity. |
return | void |
public OnPageActivity ( System.PageInfo page, string pageOldName, string author, PageActivity activity ) : void | ||
page | System.PageInfo | The page the activity refers to. |
pageOldName | string | The old name of the renamed page, or |
author | string | The author of the activity. |
activity | PageActivity | The activity. |
return | void |
public OnUserAccountActivity ( UserInfo user, UserAccountActivity activity ) : void | ||
user | UserInfo | The user the activity refers to. |
activity | UserAccountActivity | The activity. |
return | void |
public OnUserGroupActivity ( UserGroup group, UserGroupActivity activity ) : void | ||
group | UserGroup | The group the activity refers to. |
activity | UserGroupActivity | The activity. |
return | void |
public PerformSearch ( string query, bool fullText, bool filesAndAttachments, SearchOptions options ) : SearchResultCollection | ||
query | string | The search query. |
fullText | bool | A value indicating whether to perform a full-text search. |
filesAndAttachments | bool | A value indicating whether to search the names of files and attachments. |
options | SearchOptions | The search options. |
return | SearchResultCollection |
public PrepareContentForIndexing ( System.PageInfo page, string content ) : string | ||
page | System.PageInfo | The page being indexed, if any, |
content | string | The string to prepare. |
return | string |
public PrepareTitleForIndexing ( System.PageInfo page, string title ) : string | ||
page | System.PageInfo | The page being indexed, if any, |
title | string | The title to prepare. |
return | string |
public SendEmail ( string recipient, string sender, string subject, string body, bool html ) : bool | ||
recipient | string | The Recipient Email address. |
sender | string | The Sender's Email address. |
subject | string | The Subject. |
body | string | The Body. |
html | bool | True if the message is HTML. |
return | bool |
public SetProviderConfiguration ( IProviderV30 provider, string configuration ) : bool | ||
provider | IProviderV30 | The provider of which to set the configuration. |
configuration | string | The configuration to set. |
return | bool |
public UpgradePageStatusToAcl ( System.PageInfo page, char oldStatus ) : bool | ||
page | System.PageInfo | The page of which to upgrade the status. |
oldStatus | char | The old status ('L' = Locked, 'P' = Public). |
return | bool |
public UpgradeSecurityFlagsToGroupsAcl ( UserGroup administrators, UserGroup users ) : bool | ||
administrators | UserGroup | The administrators group. |
users | UserGroup | The users group. |
return | bool |