This service is available via Telligent.Evolution.Extensibility.Storage.Version1.CentralizedFileStorage
and is defined in Telligent.Evolution.Platform.dll
Events
Events.AfterCreate
Handler
void CentralizedFileAfterCreateEventHandler(CentralizedFileAfterCreateEventArgs e);
Events.AfterDelete
Handler
void CentralizedFileAfterDeleteEventHandler(CentralizedFileAfterDeleteEventArgs e);
Events.AfterUpdate
Handler
void CentralizedFileAfterUpdateEventHandler(CentralizedFileAfterUpdateEventArgs e);
Events.BeforeCreate
Handler
void CentralizedFileBeforeCreateEventHandler(CentralizedFileBeforeCreateEventArgs e);
Events.BeforeDelete
Handler
void CentralizedFileBeforeDeleteEventHandler(CentralizedFileBeforeDeleteEventArgs e);
Events.BeforeUpdate
Handler
void CentralizedFileBeforeUpdateEventHandler(CentralizedFileBeforeUpdateEventArgs e);
Properties
Name | Type | Description | Default | Options |
---|---|---|---|---|
DirectorySeparator | Char | |||
ValidFileNameRegexPattern | string | |||
ValidFileStoreKeyRegexPattern | string | |||
ValidPathRegexPattern | string |
Methods
bool AccessValidationIsGlobal(string fileStoreKey);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
fileStoreKey | string | File Store Key | Required |
Return Type
bool
bool CurrentUserHasAccess(string fileStoreKey, string path, string fileName);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
fileStoreKey | string | File Store Key | Required | ||
path | string | Path | Required | ||
fileName | string | File Name | Required |
Return Type
bool
bool FindFile(ref string fileStoreKey, ref string path, ref string fileName);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
fileStoreKey | ref string | File Store Key | Required | ||
path | ref string | Path | Required | ||
fileName | ref string | File Name | Required |
Return Type
bool
ICentralizedFile GetCentralizedFileByUrl(string url);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
url | string | Url | Required |
Return Type
ICentralizedFileStorageProvider GetFileStore(string fileStoreKey);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
fileStoreKey | string | File Store Key | Required |
Return Type
ICentralizedFileStorageProvider
IEnumerable<string> GetFileStoreKeys();
Return Type
IEnumerable<string>
string GetGenericDownloadUrl(string fileStoreKey, string path, string fileName);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
fileStoreKey | string | File Store Key | Required | ||
path | string | Path | Required | ||
fileName | string | File Name | Required |
Return Type
string
string GetGenericDownloadUrl(ICentralizedFile file);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
file | ICentralizedFile | File | Required |
Return Type
string
string GetPersistentDownloadUrl(string genericDownloadUrl);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
genericDownloadUrl | string | Generic Download Url | Required |
Return Type
string
string GetPersistentDownloadUrl(ICentralizedFile file);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
file | ICentralizedFile | File | Required |
Return Type
string
string GetUniqueFileName(ICentralizedFileStorageProvider provider, string path, string fileName);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
provider | ICentralizedFileStorageProvider | Provider | Required | ||
path | string | Path | Required | ||
fileName | string | File Name | Required |
Return Type
string
bool HasAccessValidator(string fileStoreKey);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
fileStoreKey | string | File Store Key | Required |
Return Type
bool
bool HasFileFinder(string fileStoreKey);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
fileStoreKey | string | File Store Key | Required |
Return Type
bool
ICentralizedFileStorageProvider Instance(string fileStoreKey);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
fileStoreKey | string | File Store Key | Required |
Return Type
ICentralizedFileStorageProvider
bool IsCentralizedFileUrl(string url);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
url | string | Url | Required |
Return Type
bool
bool IsValid(string fileStoreKey, string path, string fileName);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
fileStoreKey | string | File Store Key | Required | ||
path | string | Path | Required | ||
fileName | string | File Name | Required |
Return Type
bool
bool IsValidFileName(string fileName);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
fileName | string | File Name | Required |
Return Type
bool
bool IsValidFileStoreKey(string fileStoreKey);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
fileStoreKey | string | File Store Key | Required |
Return Type
bool
bool IsValidPath(string path);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
path | string | Path | Required |
Return Type
bool
string MakePath(IEnumerable<string> pathComponents);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
pathComponents | IEnumerable<string> | Path Components | Required |
Return Type
string
string MakePath(params string[] pathComponents);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
pathComponents | string[] | Path Components | Required |
Return Type
string