Метод | Описание | |
---|---|---|
AddCategory ( string nspace, string name ) : CategoryInfo |
Adds a Category. The method should set category's Pages to an empty array. |
|
AddContentTemplate ( string name, string content ) : ContentTemplate |
Adds a new content template.
|
|
AddMessage ( System.PageInfo page, string username, string subject, System.DateTime dateTime, string body, int parent ) : bool |
Adds a new Message to a Page.
|
|
AddNamespace ( string name ) : NamespaceInfo |
Adds a new namespace.
|
|
AddNavigationPath ( string nspace, string name, System.PageInfo pages ) : NavigationPath |
Adds a new Navigation Path.
|
|
AddPage ( string nspace, string name, System.DateTime creationDateTime ) : System.PageInfo |
Adds a Page. This method should not create the content of the Page. |
|
AddSnippet ( string name, string content ) : System.Snippet |
Adds a new snippet.
|
|
BulkStoreMessages ( System.PageInfo page, Message messages ) : bool |
Removes all messages for a page and stores the new messages.
|
|
DeleteBackups ( System.PageInfo page, int revision ) : bool |
Deletes the Backups of a Page, up to a specified revision.
|
|
DeleteDraft ( System.PageInfo page ) : bool |
Deletes a draft of a Page.
|
|
GetBackupContent ( System.PageInfo page, int revision ) : |
Gets the Content of a Backup of a Page.
|
|
GetBackups ( System.PageInfo page ) : int[] |
Gets the Backup/Revision numbers of a Page.
|
|
GetCategories ( NamespaceInfo nspace ) : CategoryInfo[] |
Gets all the Categories in a namespace.
|
|
GetCategoriesForPage ( System.PageInfo page ) : CategoryInfo[] |
Gets all the categories of a page.
|
|
GetCategory ( string fullName ) : CategoryInfo |
Gets a category.
|
|
GetContent ( System.PageInfo page ) : |
Gets the Content of a Page.
|
|
GetContentTemplates ( ) : ContentTemplate[] |
Gets all the content templates.
|
|
GetDraft ( System.PageInfo page ) : |
Gets the content of a draft of a Page.
|
|
GetIndexStats ( int &documentCount, int &wordCount, int &occurrenceCount, long &size ) : void |
Gets some statistics about the search engine index.
|
|
GetMessageCount ( System.PageInfo page ) : int |
Gets the total number of Messages in a Page Discussion.
|
|
GetMessages ( System.PageInfo page ) : Message[] |
Gets the Page Messages.
|
|
GetNamespace ( string name ) : NamespaceInfo |
Gets a namespace.
|
|
GetNamespaces ( ) : NamespaceInfo[] |
Gets all the sub-namespaces.
|
|
GetNavigationPaths ( NamespaceInfo nspace ) : NavigationPath[] |
Gets all the Navigation Paths in a Namespace.
|
|
GetPage ( string fullName ) : System.PageInfo |
Gets a page.
|
|
GetPages ( NamespaceInfo nspace ) : System.PageInfo[] |
Gets all the Pages in a namespace.
|
|
GetSnippets ( ) : System.Snippet[] |
Gets all the snippets.
|
|
GetUncategorizedPages ( NamespaceInfo nspace ) : System.PageInfo[] |
Gets all the pages in a namespace that are bound to zero categories.
|
|
Init ( IHostV30 host, string config ) : void |
Initializes the Storage Provider. If the configuration string is not valid, the methoud should throw a InvalidConfigurationException. |
|
MergeCategories ( CategoryInfo source, CategoryInfo destination ) : CategoryInfo |
Merges two Categories. The destination Category remains, while the source Category is deleted, and all its Pages re-bound in the destination Category. |
|
ModifyContentTemplate ( string name, string content ) : ContentTemplate |
Modifies an existing content template.
|
|
ModifyMessage ( System.PageInfo page, int id, string username, string subject, System.DateTime dateTime, string body ) : bool |
Modifies a Message.
|
|
ModifyNavigationPath ( NavigationPath path, System.PageInfo pages ) : NavigationPath |
Modifies an existing navigation path.
|
|
ModifyPage ( System.PageInfo page, string title, string username, System.DateTime dateTime, string comment, string content, string keywords, string description, SaveMode saveMode ) : bool |
Modifies the Content of a Page. If saveMode equals Draft and a draft already exists, it is overwritten. |
|
ModifySnippet ( string name, string content ) : System.Snippet |
Modifies an existing snippet.
|
|
MovePage ( System.PageInfo page, NamespaceInfo destination, bool copyCategories ) : System.PageInfo |
Moves a page from its namespace into another.
|
|
PerformSearch ( |
Performs a search in the index.
|
|
RebindPage ( System.PageInfo page, string categories ) : bool |
Binds a Page with one or more Categories. After a successful operation, the Page is bound with all and only the categories passed as argument. |
|
RebuildIndex ( ) : void |
Rebuilds the search index.
|
|
RemoveCategory ( CategoryInfo category ) : bool |
Removes a Category.
|
|
RemoveContentTemplate ( string name ) : bool |
Removes a content template.
|
|
RemoveMessage ( System.PageInfo page, int id, bool removeReplies ) : bool |
Removes a Message.
|
|
RemoveNamespace ( NamespaceInfo nspace ) : bool |
Removes a namespace.
|
|
RemoveNavigationPath ( NavigationPath path ) : bool |
Removes a Navigation Path.
|
|
RemovePage ( System.PageInfo page ) : bool |
Removes a Page.
|
|
RemoveSnippet ( string name ) : bool |
Removes a new Snippet.
|
|
RenameCategory ( CategoryInfo category, string newName ) : CategoryInfo |
Renames a Category.
|
|
RenameNamespace ( NamespaceInfo nspace, string newName ) : NamespaceInfo |
Renames a namespace.
|
|
RenamePage ( System.PageInfo page, string newName ) : System.PageInfo |
Renames a Page.
|
|
RollbackPage ( System.PageInfo page, int revision ) : bool |
Performs the rollback of a Page to a specified revision.
|
|
SetBackupContent ( |
Forces to overwrite or create a Backup.
|
|
SetFlags ( bool alwaysGenerateDocument ) : void |
Sets test flags (to be used only for tests).
|
|
SetNamespaceDefaultPage ( NamespaceInfo nspace, System.PageInfo page ) : NamespaceInfo |
Sets the default page of a namespace.
|
Метод | Описание | |
---|---|---|
AddContentTemplate ( |
Adds a new content template.
|
|
AddContentTemplate ( |
Adds a new content template.
|
|
AddNavigationPath ( |
Adds a new Navigation Path.
|
|
AddSnippet ( |
Adds a new snippet.
|
|
AddSnippet ( |
Adds a new snippet.
|
|
Backup ( |
Backs up the content of a page.
|
|
BuildDocument ( |
Handles the construction of an T:IDocument for the search engine.
|
|
ClearIndex ( object state ) : void |
Clears the index.
|
|
DeleteContent ( |
Deletes a revision of a page content.
|
|
DeleteContent ( |
Deletes a revision of a page content.
|
|
DeleteDataForDocument ( IDocument document, object state ) : void |
Deletes all data associated to a document.
|
|
FindAnchestor ( IEnumerable |
Finds the anchestor/parent of a Message.
|
|
FindMessage ( IEnumerable |
Finds a Message in a Message tree. The method is recursive. |
|
GetBackups ( |
Gets the Backup/Revision numbers of a Page.
|
|
GetBackups ( |
Gets the Backup/Revision numbers of a Page.
|
|
GetCategories ( |
Gets all the Categories in a namespace.
|
|
GetCategories ( |
Gets all the Categories in a namespace.
|
|
GetCategory ( |
Gets a category.
|
|
GetCategory ( |
Gets a category.
|
|
GetContent ( |
Gets the content of a specific revision of a page.
|
|
GetContent ( |
Gets the content of a specific revision of a page.
|
|
GetCount ( IndexElementType element ) : int |
Gets the number of elements in the index.
|
|
GetFreeElementId ( IndexElementType element, |
Gets a free element ID from the database.
|
|
GetMessages ( |
Gets the Page Messages.
|
|
GetMessages ( |
Gets the Page Messages.
|
|
GetNamespace ( |
Gets a namespace.
|
|
GetNamespace ( |
Gets a namespace.
|
|
GetPage ( |
Gets a page.
|
|
GetPage ( |
Gets a page.
|
|
GetPages ( |
Gets all the Pages in a namespace.
|
|
GetPages ( |
Gets all the Pages in a namespace.
|
|
GetSize ( ) : long |
Gets the approximate size, in bytes, of the search engine index.
|
|
GetWordFetcher ( ) : IWordFetcher |
Gets a word fetcher.
|
|
IndexMessage ( System.PageInfo page, int id, string subject, System.DateTime dateTime, string body, |
Indexes a message.
|
|
IndexMessageTree ( System.PageInfo page, Message root, |
Indexes a message tree.
|
|
IndexPage ( |
Indexes a page.
|
|
IsDefaultPage ( |
Determines whether a page is the default page of its namespace.
|
|
MergeArrays ( string array1, string array2 ) : string[] |
Merges two arrays of strings.
|
|
RebindPage ( |
Binds a Page with one or more Categories. After a successful operation, the Page is bound with all and only the categories passed as argument. |
|
RebindPage ( |
Binds a Page with one or more Categories. After a successful operation, the Page is bound with all and only the categories passed as argument. |
|
RemoveCategory ( |
Removes a Category.
|
|
RemoveCategory ( |
Removes a Category.
|
|
RemoveContentTemplate ( |
Removes a content template.
|
|
RemoveContentTemplate ( |
Removes a content template.
|
|
RemoveMessage ( |
Removes a Message.
|
|
RemoveNavigationPath ( |
Removes a Navigation Path.
|
|
RemoveNavigationPath ( |
Removes a Navigation Path.
|
|
RemoveSnippet ( |
Removes a new Snippet.
|
|
RemoveSnippet ( |
Removes a new Snippet.
|
|
SaveDataForDocument ( IDocument document, WordInfo content, WordInfo title, WordInfo keywords, object state ) : int |
Saves data for a new document.
|
|
SetContent ( |
Stores the content for a revision.
|
|
TokenizeContent ( string content ) : WordInfo[] |
Tokenizes page content.
|
|
TryFindWord ( string text, |
Tries to load all data related to a word from the database.
|
|
UnTreeMessages ( Message messages, List |
Deconstructs a tree of messages and converts it into a flat list.
|
|
UnindexMessage ( System.PageInfo page, int id, string subject, System.DateTime dateTime, string body, |
Removes a message from the search engine index.
|
|
UnindexMessageTree ( System.PageInfo page, Message root, |
Removes a message tree from the search engine index.
|
|
UnindexPage ( |
Removes a page from the search engine index.
|
public AddCategory ( string nspace, string name ) : CategoryInfo | ||
nspace | string | The target namespace ( |
name | string | The Category name. |
Результат | CategoryInfo |
public AddContentTemplate ( string name, string content ) : ContentTemplate | ||
name | string | The name of template. |
content | string | The content of the template. |
Результат | ContentTemplate |
public AddMessage ( System.PageInfo page, string username, string subject, System.DateTime dateTime, string body, int parent ) : bool | ||
page | System.PageInfo | The Page. |
username | string | The Username. |
subject | string | The Subject. |
dateTime | System.DateTime | The Date/Time. |
body | string | The Body. |
parent | int | The Parent Message ID, or -1. |
Результат | bool |
public AddNamespace ( string name ) : NamespaceInfo | ||
name | string | The name of the namespace. |
Результат | NamespaceInfo |
public AddNavigationPath ( string nspace, string name, System.PageInfo pages ) : NavigationPath | ||
nspace | string | The target namespace ( |
name | string | The Name of the Path. |
pages | System.PageInfo | The Pages array. |
Результат | NavigationPath |
public AddPage ( string nspace, string name, System.DateTime creationDateTime ) : System.PageInfo | ||
nspace | string | The target namespace ( |
name | string | The Page Name. |
creationDateTime | System.DateTime | The creation Date/Time. |
Результат | System.PageInfo |
public AddSnippet ( string name, string content ) : System.Snippet | ||
name | string | The name of the snippet. |
content | string | The content of the snippet. |
Результат | System.Snippet |
public BulkStoreMessages ( System.PageInfo page, Message messages ) : bool | ||
page | System.PageInfo | The page. |
messages | Message | The new messages to store. |
Результат | bool |
public DeleteBackups ( System.PageInfo page, int revision ) : bool | ||
page | System.PageInfo | The Page to delete the backups of. |
revision | int | The newest revision to delete (newer revision are kept) o -1 to delete all the Backups. |
Результат | bool |
public DeleteDraft ( System.PageInfo page ) : bool | ||
page | System.PageInfo | The page. |
Результат | bool |
public GetBackupContent ( System.PageInfo page, int revision ) : |
||
page | System.PageInfo | The Page to get the backup of. |
revision | int | The Backup/Revision number. |
Результат |
public GetBackups ( System.PageInfo page ) : int[] | ||
page | System.PageInfo | The Page to get the Backups of. |
Результат | int[] |
public GetCategories ( NamespaceInfo nspace ) : CategoryInfo[] | ||
nspace | NamespaceInfo | The namespace. |
Результат | CategoryInfo[] |
public GetCategoriesForPage ( System.PageInfo page ) : CategoryInfo[] | ||
page | System.PageInfo | The page. |
Результат | CategoryInfo[] |
public GetCategory ( string fullName ) : CategoryInfo | ||
fullName | string | The full name of the category. |
Результат | CategoryInfo |
public GetContent ( System.PageInfo page ) : |
||
page | System.PageInfo | The Page. |
Результат |
public GetContentTemplates ( ) : ContentTemplate[] | ||
Результат | ContentTemplate[] |
public GetDraft ( System.PageInfo page ) : |
||
page | System.PageInfo | The Page. |
Результат |
public GetIndexStats ( int &documentCount, int &wordCount, int &occurrenceCount, long &size ) : void | ||
documentCount | int | The total number of documents. |
wordCount | int | The total number of unique words. |
occurrenceCount | int | The total number of word-document occurrences. |
size | long | The approximated size, in bytes, of the search engine index. |
Результат | void |
public GetMessageCount ( System.PageInfo page ) : int | ||
page | System.PageInfo | The Page. |
Результат | int |
public GetMessages ( System.PageInfo page ) : Message[] | ||
page | System.PageInfo | The Page. |
Результат | Message[] |
public GetNamespace ( string name ) : NamespaceInfo | ||
name | string | The name of the namespace (cannot be |
Результат | NamespaceInfo |
public GetNamespaces ( ) : NamespaceInfo[] | ||
Результат | NamespaceInfo[] |
public GetNavigationPaths ( NamespaceInfo nspace ) : NavigationPath[] | ||
nspace | NamespaceInfo | The Namespace. |
Результат | NavigationPath[] |
public GetPage ( string fullName ) : System.PageInfo | ||
fullName | string | The full name of the page. |
Результат | System.PageInfo |
public GetPages ( NamespaceInfo nspace ) : System.PageInfo[] | ||
nspace | NamespaceInfo | The namespace ( |
Результат | System.PageInfo[] |
public GetUncategorizedPages ( NamespaceInfo nspace ) : System.PageInfo[] | ||
nspace | NamespaceInfo | The namespace ( |
Результат | System.PageInfo[] |
public Init ( IHostV30 host, string config ) : void | ||
host | IHostV30 | The Host of the Component. |
config | string | The Configuration data, if any. |
Результат | void |
public MergeCategories ( CategoryInfo source, CategoryInfo destination ) : CategoryInfo | ||
source | CategoryInfo | The source Category. |
destination | CategoryInfo | The destination Category. |
Результат | CategoryInfo |
public ModifyContentTemplate ( string name, string content ) : ContentTemplate | ||
name | string | The name of the template to modify. |
content | string | The content of the template. |
Результат | ContentTemplate |
public ModifyMessage ( System.PageInfo page, int id, string username, string subject, System.DateTime dateTime, string body ) : bool | ||
page | System.PageInfo | The Page. |
id | int | The ID of the Message to modify. |
username | string | The Username. |
subject | string | The Subject. |
dateTime | System.DateTime | The Date/Time. |
body | string | The Body. |
Результат | bool |
public ModifyNavigationPath ( NavigationPath path, System.PageInfo pages ) : NavigationPath | ||
path | NavigationPath | The navigation path to modify. |
pages | System.PageInfo | The new pages array. |
Результат | NavigationPath |
public ModifyPage ( System.PageInfo page, string title, string username, System.DateTime dateTime, string comment, string content, string keywords, string description, SaveMode saveMode ) : bool | ||
page | System.PageInfo | The Page. |
title | string | The Title of the Page. |
username | string | The Username. |
dateTime | System.DateTime | The Date/Time. |
comment | string | The Comment of the editor, about this revision. |
content | string | The Page Content. |
keywords | string | The keywords, usually used for SEO. |
description | string | The description, usually used for SEO. |
saveMode | SaveMode | The save mode for this modification. |
Результат | bool |
public ModifySnippet ( string name, string content ) : System.Snippet | ||
name | string | The name of the snippet to modify. |
content | string | The content of the snippet. |
Результат | System.Snippet |
public MovePage ( System.PageInfo page, NamespaceInfo destination, bool copyCategories ) : System.PageInfo | ||
page | System.PageInfo | The page to move. |
destination | NamespaceInfo | The destination namespace ( |
copyCategories | bool | A value indicating whether to copy the page categories in the destination /// namespace, if not already available. |
Результат | System.PageInfo |
public PerformSearch ( |
||
parameters | The search parameters. | |
Результат | SearchResultCollection |
public RebindPage ( System.PageInfo page, string categories ) : bool | ||
page | System.PageInfo | The Page to bind. |
categories | string | The Categories to bind the Page with. |
Результат | bool |
public RemoveCategory ( CategoryInfo category ) : bool | ||
category | CategoryInfo | The Category to remove. |
Результат | bool |
public RemoveContentTemplate ( string name ) : bool | ||
name | string | The name of the template to remove. |
Результат | bool |
public RemoveMessage ( System.PageInfo page, int id, bool removeReplies ) : bool | ||
page | System.PageInfo | The Page. |
id | int | The ID of the Message to remove. |
removeReplies | bool | A value specifying whether or not to remove the replies. |
Результат | bool |
public RemoveNamespace ( NamespaceInfo nspace ) : bool | ||
nspace | NamespaceInfo | The namespace to remove. |
Результат | bool |
public RemoveNavigationPath ( NavigationPath path ) : bool | ||
path | NavigationPath | The navigation path to remove. |
Результат | bool |
public RemovePage ( System.PageInfo page ) : bool | ||
page | System.PageInfo | The Page to remove. |
Результат | bool |
public RemoveSnippet ( string name ) : bool | ||
name | string | The Name of the Snippet to remove. |
Результат | bool |
public RenameCategory ( CategoryInfo category, string newName ) : CategoryInfo | ||
category | CategoryInfo | The Category to rename. |
newName | string | The new Name. |
Результат | CategoryInfo |
public RenameNamespace ( NamespaceInfo nspace, string newName ) : NamespaceInfo | ||
nspace | NamespaceInfo | The namespace to rename. |
newName | string | The new name of the namespace. |
Результат | NamespaceInfo |
public RenamePage ( System.PageInfo page, string newName ) : System.PageInfo | ||
page | System.PageInfo | The Page to rename. |
newName | string | The new Name. |
Результат | System.PageInfo |
public RollbackPage ( System.PageInfo page, int revision ) : bool | ||
page | System.PageInfo | The Page to rollback. |
revision | int | The Revision to rollback the Page to. |
Результат | bool |
public SetBackupContent ( |
||
content | The Backup content. | |
revision | int | The revision. |
Результат | bool |
public SetFlags ( bool alwaysGenerateDocument ) : void | ||
alwaysGenerateDocument | bool | A value indicating whether to always generate a result when resolving a document, /// even when the page does not exist. |
Результат | void |
public SetNamespaceDefaultPage ( NamespaceInfo nspace, System.PageInfo page ) : NamespaceInfo | ||
nspace | NamespaceInfo | The namespace of which to set the default page. |
page | System.PageInfo | The page to use as default page, or |
Результат | NamespaceInfo |