Class ArchivManager
Main archive manager
Inheritance
Inherited Members
Namespace: Simplic.Framework.Extension
Assembly: Simplic.Framework.Extension.dll
Syntax
public class ArchivManager
Properties
| Improve this Doc View SourceArchiveInterface
Interface which will be used for archiving files
Declaration
public IArchiveInterface ArchiveInterface { get; set; }
Property Value
Type | Description |
---|---|
IArchiveInterface |
Singleton
Archive singleton access
Declaration
public static ArchivManager Singleton { get; }
Property Value
Type | Description |
---|---|
ArchivManager |
Methods
| Improve this Doc View SourceArchive(String, DocCenterParameter)
Archive document and show document UI
Declaration
public void Archive(string path, DocCenterParameter parameter)
Parameters
Type | Name | Description |
---|---|---|
System.String | path | Path to the documenbt |
DocCenterParameter | parameter | Parameter which are needed for archiving |
GetBlob(Guid)
Get blob by blob guid
Declaration
public byte[] GetBlob(Guid blobGuid)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | blobGuid | Unique blob guid |
Returns
Type | Description |
---|---|
System.Byte[] | Blob as byte-array |
GetBlob(Int64, IDictionary<String, Object>)
Gibt ein Blob direkt anhand der Archive-Quellen-Id zurück
Declaration
public byte[] GetBlob(long ArchiveSourceId, IDictionary<string, object> Row)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | ArchiveSourceId | Id der Archiv-Quelle |
System.Collections.Generic.IDictionary<System.String, System.Object> | Row | Datensatz mit den Informationen zum Blob |
Returns
Type | Description |
---|---|
System.Byte[] | Instanz eines byte[]-Arrays (Blob) |
GetBlob(Int64, IDictionary<String, String>)
Gibt ein Blob direkt anhand der Archive-Quellen-Id zurück
Declaration
public byte[] GetBlob(long ArchiveSourceId, IDictionary<string, string> Row)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | ArchiveSourceId | Id der Archiv-Quelle |
System.Collections.Generic.IDictionary<System.String, System.String> | Row | Datensatz mit den Informationen zum Blob |
Returns
Type | Description |
---|---|
System.Byte[] | Instanz eines byte[]-Arrays (Blob) |
GetBlob(String, IDictionary<String, String>)
Gibt ein Blob direkt anhand der in der Ablage hinterlegten Archivs zurück
Declaration
public byte[] GetBlob(string StackName, IDictionary<string, string> Row)
Parameters
Type | Name | Description |
---|---|---|
System.String | StackName | Name der Ablage |
System.Collections.Generic.IDictionary<System.String, System.String> | Row | Datensatz |
Returns
Type | Description |
---|---|
System.Byte[] | Instanz eines byte[]-Arrays (Blob) |
GetBlob(String, Int32, IDictionary<String, String>)
Declaration
[Obsolete("Diese Methode is veraltet und sollte unter keinen Umständen mehr verwendet werden!")]
public byte[] GetBlob(string StackName, int SourceId, IDictionary<string, string> Row)
Parameters
Type | Name | Description |
---|---|---|
System.String | StackName | |
System.Int32 | SourceId | |
System.Collections.Generic.IDictionary<System.String, System.String> | Row |
Returns
Type | Description |
---|---|
System.Byte[] |
GetBlobByObjectDictionary(String, IDictionary<String, Object>)
Declaration
[Obsolete("Diese Methode is veraltet und sollte unter keinen Umständen mehr verwendet werden!")]
public byte[] GetBlobByObjectDictionary(string StackName, IDictionary<string, object> Row)
Parameters
Type | Name | Description |
---|---|---|
System.String | StackName | |
System.Collections.Generic.IDictionary<System.String, System.Object> | Row |
Returns
Type | Description |
---|---|
System.Byte[] |
GetBlobByObjectDictionary(String, Int32, IDictionary<String, Object>)
Declaration
[Obsolete("Diese Methode is veraltet und sollte unter keinen Umständen mehr verwendet werden!")]
public byte[] GetBlobByObjectDictionary(string StackName, int SourceId, IDictionary<string, object> Row)
Parameters
Type | Name | Description |
---|---|---|
System.String | StackName | |
System.Int32 | SourceId | |
System.Collections.Generic.IDictionary<System.String, System.Object> | Row |
Returns
Type | Description |
---|---|
System.Byte[] |
GetBlobId(IDictionary<String, String>)
Get blob id
Declaration
public Guid GetBlobId(IDictionary<string, string> Row)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IDictionary<System.String, System.String> | Row | Datensatz |
Returns
Type | Description |
---|---|
System.Guid | Instanz eines byte[]-Arrays (Blob) |
SetBlob(Byte[], Guid)
Sets a blob with the given BlobGuid
Declaration
public void SetBlob(byte[] Blob, Guid BlobGuid)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | Blob | |
System.Guid | BlobGuid |
SetBlob(Byte[], Nullable<Int64>)
Speichert ein Blob in dem angegeben archiv
Declaration
public Guid SetBlob(byte[] Blob, long? ArchiveSourceId = null)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | Blob | Blob als bytearray |
System.Nullable<System.Int64> | ArchiveSourceId | Ziel-System, wenn null => Standard-Archiv (aktuell Id: 1) |
Returns
Type | Description |
---|---|
System.Guid | Guid der blobs, leere Guid wenn das Speichern nicht erfolgreich war |
SetBlob(Int64, Byte[])
Save Blob in source
Declaration
public IDictionary<string, string> SetBlob(long ArchivSourceId, byte[] Blob)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | ArchivSourceId | |
System.Byte[] | Blob |
Returns
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.String, System.String> |
ShowBlob(Byte[], String)
Open Blob in the assigned program (.docx => Word, ...)
Declaration
public static void ShowBlob(byte[] Blob, string MimeType)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | Blob | Blob |
System.String | MimeType | MimeType |
ShowBlobByExtension(Byte[], String)
Opens a Blob with the default program
Declaration
public static void ShowBlobByExtension(byte[] blob, string fileExtension)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | blob | Blob as Byte-Array |
System.String | fileExtension | file extension |
ShowBlobByExtension(Byte[], String, String)
Opens a Blob with the default program
Declaration
public static void ShowBlobByExtension(byte[] blob, string fileExtension, string fileName = null)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | blob | Blob as Byte-Array |
System.String | fileExtension | file extension |
System.String | fileName | file name |