Method | Description | |
---|---|---|
CreateDirectory ( string path, string name ) : bool |
Creates a new Directory. If path is "/my/directory" and name is "newdir", a new directory named "/my/directory/newdir" is created. |
|
DeleteDirectory ( string fullPath ) : bool |
Deletes a Directory and all of its content.
|
|
DeleteFile ( string fullName ) : bool |
Deletes a File.
|
|
DeletePageAttachment ( System.PageInfo pageInfo, string name ) : bool |
Deletes a Page Attachment.
|
|
GetFileDetails ( string fullName ) : |
Gets the details of a file.
|
|
GetPageAttachmentDetails ( System.PageInfo pageInfo, string name ) : |
Gets the details of a page attachment.
|
|
GetPagesWithAttachments ( ) : string[] |
The the names of the pages with attachments.
|
|
Init ( IHostV30 host, string config ) : void |
Initializes the Storage Provider.
|
|
ListDirectories ( string directory ) : string[] |
Lists the Directories in the specified directory.
|
|
ListFiles ( string directory ) : string[] |
Lists the Files in the specified Directory.
|
|
ListPageAttachments ( System.PageInfo pageInfo ) : string[] |
Returns the names of the Attachments of a Page.
|
|
NotifyPageRenaming ( System.PageInfo oldPage, System.PageInfo newPage ) : void |
Notifies to the Provider that a Page has been renamed.
|
|
RenameDirectory ( string oldFullPath, string newFullPath ) : bool |
Renames or moves a Directory.
|
|
RenameFile ( string oldFullName, string newFullName ) : bool |
Renames or moves a File.
|
|
RenamePageAttachment ( System.PageInfo pageInfo, string oldName, string newName ) : bool |
Renames a Page Attachment.
|
|
RetrieveFile ( string fullName, Stream destinationStream, bool countHit ) : bool |
Retrieves a File.
|
|
RetrievePageAttachment ( System.PageInfo pageInfo, string name, Stream destinationStream, bool countHit ) : bool |
Retrieves a Page Attachment.
|
|
SetFileRetrievalCount ( string fullName, int count ) : void |
Clears the number of times a file was retrieved.
|
|
SetPageAttachmentRetrievalCount ( System.PageInfo pageInfo, string name, int count ) : void |
Set the number of times a page attachment was retrieved.
|
|
Shutdown ( ) : void |
Method invoked on shutdown. This method might not be invoked in some cases. |
|
StoreFile ( string fullName, Stream sourceStream, bool overwrite ) : bool |
Stores a file. If overwrite is |
|
StorePageAttachment ( System.PageInfo pageInfo, string name, Stream sourceStream, bool overwrite ) : bool |
Stores a Page Attachment. If overwrite is |
Method | Description | |
---|---|---|
AddDownloadHit ( string itemName, string outputFile ) : void |
Adds a download hit for the specified item in the specified output file.
|
|
BuildFullPath ( string partialPath ) : string |
Builds a full path from a provider-specific partial path. For example: if partialPath is "/my/directory", the method returns "C:\Inetpub\wwwroot\Wiki\public\Upload\my\directory", assuming the Wiki resides in "C:\Inetpub\wwwroot\Wiki". |
|
BuildFullPathForAttachments ( string partialPath ) : string |
Builds a full path from a provider-specific partial path. For example: if partialPath is "/my/directory", the method returns "C:\Inetpub\wwwroot\Wiki\public\Attachments\my\directory", assuming the Wiki resides in "C:\Inetpub\wwwroot\Wiki". |
|
CheckPath ( string path, string begin ) : string |
Checks the path.
|
|
ClearDownloadHitsPartialMatch ( string itemName, string outputFile ) : void |
Clears the download hits for the items that match itemName in the specified file.
|
|
GetFileRetrievalCount ( string fullName ) : int |
Gets the number of times a file was retrieved.
|
|
GetFullPath ( string finalChunk ) : string | ||
GetPageAttachmentDirectory ( System.PageInfo pageInfo ) : string |
Gets the name of the Directory containing the Attachments of a Page.
|
|
GetPageAttachmentRetrievalCount ( System.PageInfo pageInfo, string name ) : int |
Gets the number of times a page attachment was retrieved.
|
|
RenameDownloadHitsItem ( string oldItemName, string newItemName, string outputFile ) : void |
Renames an item of the download count list in the specified file.
|
|
RenameDownloadHitsItemPartialMatch ( string oldItemName, string newItemName, string outputFile ) : void |
Renames an item of the download count list in the specified file.
|
|
SetDownloadHits ( string itemName, string outputFile, int count ) : void |
Sets the download hits for the specified item in the specified file.
|
|
StreamCopy ( Stream source, Stream destination ) : void |
Copies data from a Stream to another.
|
public CreateDirectory ( string path, string name ) : bool | ||
path | string | The path to create the new Directory in. |
name | string | The name of the new Directory. |
return | bool |
public DeleteDirectory ( string fullPath ) : bool | ||
fullPath | string | The full path of the Directory. |
return | bool |
public DeleteFile ( string fullName ) : bool | ||
fullName | string | The full name of the File. |
return | bool |
public DeletePageAttachment ( System.PageInfo pageInfo, string name ) : bool | ||
pageInfo | System.PageInfo | The Page Info that owns the Attachment. |
name | string | The name of the Attachment, for example "myfile.jpg". |
return | bool |
public GetFileDetails ( string fullName ) : |
||
fullName | string | The full name of the file. |
return |
public GetPageAttachmentDetails ( System.PageInfo pageInfo, string name ) : |
||
pageInfo | System.PageInfo | The page that owns the attachment. |
name | string | The name of the attachment, for example "myfile.jpg". |
return |
public GetPagesWithAttachments ( ) : string[] | ||
return | string[] |
public Init ( IHostV30 host, string config ) : void | ||
host | IHostV30 | The Host of the Component. |
config | string | The Configuration data, if any. |
return | void |
public ListDirectories ( string directory ) : string[] | ||
directory | string | The full directory name, for example "/my/directory". Null, empty or "/" for the root directory. |
return | string[] |
public ListFiles ( string directory ) : string[] | ||
directory | string | The full directory name, for example "/my/directory". Null, empty or "/" for the root directory. |
return | string[] |
public ListPageAttachments ( System.PageInfo pageInfo ) : string[] | ||
pageInfo | System.PageInfo | The Page Info object that owns the Attachments. |
return | string[] |
public NotifyPageRenaming ( System.PageInfo oldPage, System.PageInfo newPage ) : void | ||
oldPage | System.PageInfo | The old Page Info object. |
newPage | System.PageInfo | The new Page Info object. |
return | void |
public RenameDirectory ( string oldFullPath, string newFullPath ) : bool | ||
oldFullPath | string | The old full path of the Directory. |
newFullPath | string | The new full path of the Directory. |
return | bool |
public RenameFile ( string oldFullName, string newFullName ) : bool | ||
oldFullName | string | The old full name of the File. |
newFullName | string | The new full name of the File. |
return | bool |
public RenamePageAttachment ( System.PageInfo pageInfo, string oldName, string newName ) : bool | ||
pageInfo | System.PageInfo | The Page Info that owns the Attachment. |
oldName | string | The old name of the Attachment. |
newName | string | The new name of the Attachment. |
return | bool |
public RetrieveFile ( string fullName, Stream destinationStream, bool countHit ) : bool | ||
fullName | string | The full name of the File. |
destinationStream | Stream | A Stream object used as destination of a byte stream, /// i.e. the method writes to the Stream the file content. |
countHit | bool | A value indicating whether or not to count this retrieval in the statistics. |
return | bool |
public RetrievePageAttachment ( System.PageInfo pageInfo, string name, Stream destinationStream, bool countHit ) : bool | ||
pageInfo | System.PageInfo | The Page Info that owns the Attachment. |
name | string | The name of the Attachment, for example "myfile.jpg". |
destinationStream | Stream | A Stream object used as destination of a byte stream, /// i.e. the method writes to the Stream the file content. |
countHit | bool | A value indicating whether or not to count this retrieval in the statistics. |
return | bool |
public SetFileRetrievalCount ( string fullName, int count ) : void | ||
fullName | string | The full name of the file. |
count | int | The count to set. |
return | void |
public SetPageAttachmentRetrievalCount ( System.PageInfo pageInfo, string name, int count ) : void | ||
pageInfo | System.PageInfo | The page. |
name | string | The name of the attachment. |
count | int | The count to set. |
return | void |
public StoreFile ( string fullName, Stream sourceStream, bool overwrite ) : bool | ||
fullName | string | The full name of the file. |
sourceStream | Stream | A Stream object used as source of a byte stream, /// i.e. the method reads from the Stream and stores the content properly. |
overwrite | bool | |
return | bool |
public StorePageAttachment ( System.PageInfo pageInfo, string name, Stream sourceStream, bool overwrite ) : bool | ||
pageInfo | System.PageInfo | The Page Info that owns the Attachment. |
name | string | The name of the Attachment, for example "myfile.jpg". |
sourceStream | Stream | A Stream object used as source of a byte stream, /// i.e. the method reads from the Stream and stores the content properly. |
overwrite | bool | |
return | bool |