Class EbicsFileSpoolerFolder
Inheritance
System.Object
EbicsFileSpoolerFolder
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: Subsembly.EBICS.Core.dll
Syntax
public class EbicsFileSpoolerFolder : EbicsFileFolder
Constructors
EbicsFileSpoolerFolder(String, EbicsFileSpoolerCredentials)
Declaration
public EbicsFileSpoolerFolder(string sSpoolerFolder, EbicsFileSpoolerCredentials aUserCredentials = null)
Parameters
Type |
Name |
Description |
System.String |
sSpoolerFolder |
Complete, rooted file path of the root spooler folder. This must not be
null , and must refer to an existing file system folder.
|
EbicsFileSpoolerCredentials |
aUserCredentials |
In a protected and encrypted spooler folder tree, these must be the credentials of
the user, that wants access to the EbicsFileSpoolerFolder and its
files. If given, then its properties
UserName and
Password must not be null .
|
Exceptions
Type |
Condition |
System.ArgumentNullException |
The parameter sSpoolerFolder was null .
|
System.ArgumentException |
The given aUserCredentials did not contain a
UserName and
Password.
|
See Also
Fields
BOX_CAMT052
The name of the CAMT052 folder is "camt052".
Declaration
public const string BOX_CAMT052 = "camt052"
Field Value
Type |
Description |
System.String |
|
BOX_CAMT053
The name of the CAMT053 folder is "camt053".
Declaration
public const string BOX_CAMT053 = "camt053"
Field Value
Type |
Description |
System.String |
|
BOX_CAMT054
The name of the CAMT054 folder is "camt054".
Declaration
public const string BOX_CAMT054 = "camt054"
Field Value
Type |
Description |
System.String |
|
BOX_DOCS
The name of the DOCS folder is "docs".
Declaration
public const string BOX_DOCS = "docs"
Field Value
Type |
Description |
System.String |
|
BOX_OUTBOX
The name of the OUTBOX folder is "outbox".
Declaration
public const string BOX_OUTBOX = "outbox"
Field Value
Type |
Description |
System.String |
|
RESULTFILENAMESUFFIX
This suffix is appended to the original file name in order to produce a file name
for storing the EbicsFileTransferResult of this file.
Declaration
public const string RESULTFILENAMESUFFIX = ".result"
Field Value
Type |
Description |
System.String |
|
ROOT
The constant user name of the root user is "root".
Declaration
public const string ROOT = "root"
Field Value
Type |
Description |
System.String |
|
Properties
IsProtected
Indicates whether this EbicsFileSpooler instance is using Access
Control with encrypted files.
Declaration
public bool IsProtected { get; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
AddAccessControlEntry(EbicsFileFolder, EbicsFileSpoolerCredentials)
Declaration
public EbicsFileSpoolerAccessControlEntry AddAccessControlEntry(EbicsFileFolder aFileFolder, EbicsFileSpoolerCredentials aUserCredentials)
Parameters
Returns
AppendOkay(String, String, EbicsFileSpoolerResult)
Declaration
public void AppendOkay(string sHostID, string sPartnerID, EbicsFileSpoolerResult aSpoolerResult)
Parameters
CreateAccessControlEntry(EbicsFileFolder, EbicsFileSpoolerCredentials)
Declaration
public EbicsFileSpoolerAccessControlEntry CreateAccessControlEntry(EbicsFileFolder aFileFolder, EbicsFileSpoolerCredentials aUserCredentials)
Parameters
Returns
See Also
GetBoxFolder(String, String, String, Boolean)
Declaration
public EbicsFileFolder GetBoxFolder(string sHostID, string sPartnerID, string sBoxName, bool fCreate)
Parameters
Type |
Name |
Description |
System.String |
sHostID |
|
System.String |
sPartnerID |
|
System.String |
sBoxName |
|
System.Boolean |
fCreate |
|
Returns
GetCamt052Folder(String, String)
Declaration
public EbicsFileFolder GetCamt052Folder(string sHostID, string sPartnerID)
Parameters
Type |
Name |
Description |
System.String |
sHostID |
|
System.String |
sPartnerID |
|
Returns
GetCamt053Folder(String, String)
Declaration
public EbicsFileFolder GetCamt053Folder(string sHostID, string sPartnerID)
Parameters
Type |
Name |
Description |
System.String |
sHostID |
|
System.String |
sPartnerID |
|
Returns
GetCamt054Folder(String, String)
Declaration
public EbicsFileFolder GetCamt054Folder(string sHostID, string sPartnerID)
Parameters
Type |
Name |
Description |
System.String |
sHostID |
|
System.String |
sPartnerID |
|
Returns
Declaration
public IEbicsContactFolder GetContactFolder()
Returns
GetDocsFolder(String, String)
Declaration
public EbicsFileFolder GetDocsFolder(string sHostID, string sPartnerID)
Parameters
Type |
Name |
Description |
System.String |
sHostID |
|
System.String |
sPartnerID |
|
Returns
GetFolder(String, Boolean)
Declaration
public EbicsFileFolder GetFolder(string sPath, bool fCreate)
Parameters
Type |
Name |
Description |
System.String |
sPath |
The relative path from the root spooler folder. If this is null , then the
root folder path is returned. This path must have been built according to local
file system requirements.
|
System.Boolean |
fCreate |
|
Returns
GetHostFolders()
Declaration
public EbicsFileFolder[] GetHostFolders()
Returns
GetJournalEntry(String, String, EbicsFileName)
Declaration
public EbicsFileSpoolerJournalEntry GetJournalEntry(string sHostID, string sPartnerID, EbicsFileName aFileName)
Parameters
Type |
Name |
Description |
System.String |
sHostID |
|
System.String |
sPartnerID |
|
EbicsFileName |
aFileName |
|
Returns
GetLastOkay(String, String)
Declaration
public EbicsFileSpoolerResult GetLastOkay(string sHostID, string sPartnerID)
Parameters
Type |
Name |
Description |
System.String |
sHostID |
|
System.String |
sPartnerID |
|
Returns
GetOutboxFolder(String, String)
Declaration
public EbicsFileFolder GetOutboxFolder(string sHostID, string sPartnerID)
Parameters
Type |
Name |
Description |
System.String |
sHostID |
|
System.String |
sPartnerID |
|
Returns
GetPartnerFolder(String, String, Boolean)
Declaration
public EbicsFileFolder GetPartnerFolder(string sHostID, string sPartnerID, bool fCreate)
Parameters
Type |
Name |
Description |
System.String |
sHostID |
|
System.String |
sPartnerID |
|
System.Boolean |
fCreate |
|
Returns
GetPartnerFolders(String)
Declaration
public EbicsFileFolder[] GetPartnerFolders(string sHostID)
Parameters
Type |
Name |
Description |
System.String |
sHostID |
|
Returns
HasAccess(EbicsFileFolder)
Indicates whether this instance has access to the requested folder, with the
credentials that were given to the ctor.
Declaration
public bool HasAccess(EbicsFileFolder aFileFolder)
Parameters
Returns
Type |
Description |
System.Boolean |
|
LoadOrderResult(String, String, EbicsFileName)
Declaration
public EbicsFileTransferResult LoadOrderResult(string sHostID, string sPartnerID, EbicsFileName aFileName)
Parameters
Type |
Name |
Description |
System.String |
sHostID |
|
System.String |
sPartnerID |
|
EbicsFileName |
aFileName |
|
Returns
ObtainAccessControlList(EbicsFileFolder)
Declaration
public EbicsFileSpoolerAccessControlList ObtainAccessControlList(EbicsFileFolder aFileFolder)
Parameters
Returns
OpenRead(EbicsFileFolder, EbicsFileName)
Declaration
public Stream OpenRead(EbicsFileFolder aFileFolder, EbicsFileName aFileName)
Parameters
Type |
Name |
Description |
EbicsFileFolder |
aFileFolder |
|
EbicsFileName |
aFileName |
Name of the file in this folder that shall be opened. This must not be null
and must refer to an actually existing file. The properties
IsHidden and IsEncrypted
must have been set to match the actual file.
|
Returns
Type |
Description |
System.IO.Stream |
If the file was opened successfully, then a non-seekable read-only Stream from it
is returned. If the file is encrypted, then the returned Stream will decrypt the
content on-thy-fly.
|
OpenRead(EbicsFileFolder, String, Boolean)
Declaration
public Stream OpenRead(EbicsFileFolder aFileFolder, string sFileName, bool fIsEncrypted)
Parameters
Type |
Name |
Description |
EbicsFileFolder |
aFileFolder |
|
System.String |
sFileName |
The file system file name without any path information. The location of the file
is given by the aFileFolder parameter.
|
System.Boolean |
fIsEncrypted |
If this is true , then the file is assumed to be encrypted.
|
Returns
Type |
Description |
System.IO.Stream |
|
OpenWrite(EbicsFileFolder, EbicsFileName)
Declaration
public Stream OpenWrite(EbicsFileFolder aFileFolder, EbicsFileName aFileName)
Parameters
Type |
Name |
Description |
EbicsFileFolder |
aFileFolder |
|
EbicsFileName |
aFileName |
Name of the file in this folder that shall be created. This must not be
null . If this refers to an existing file, then it will be
overwritten. Regardless of the current value of the property
IsEncrypted, the file will be encrypted if, and only
if, the property IsProtected is true .
|
Returns
Type |
Description |
System.IO.Stream |
If the file was opened successfully, then a non-seekable write-only Stream to it
is returned. If the file is encrypted, then the returned Stream will encrypt the
content on-thy-fly.
|
OpenWrite(EbicsFileFolder, String, Boolean)
Declaration
public Stream OpenWrite(EbicsFileFolder aFileFolder, string sFileName, bool fIsEncrypted)
Parameters
Type |
Name |
Description |
EbicsFileFolder |
aFileFolder |
|
System.String |
sFileName |
The file system file name without any path information. The location of the file
is given by the aFileFolder parameter.
|
System.Boolean |
fIsEncrypted |
If this is true , then the file will be encrypted.
|
Returns
Type |
Description |
System.IO.Stream |
If the file was opened successfully, then a non-seekable write-only Stream to it
is returned. If the file is encrypted, then the returned Stream will encrypt the
content on-thy-fly.
|
SetupAccessControl(EbicsFileSpoolerCredentials)
Sets up full access control for a currently unprotected
EbicsFileSpooler spooler folder.
Declaration
public void SetupAccessControl(EbicsFileSpoolerCredentials aRootCredentials)
Parameters
Exceptions
Type |
Condition |
System.InvalidOperationException |
File access control was already established, or this EbicsFileSpooler
instance was already created with user credentials.
|
SubmitFileUpload(String, String, String, String, String)
Copies a file into the BOX_OUTBOX folder for uploading by the
spooler.
Declaration
public EbicsFileName SubmitFileUpload(string sHostID, string sPartnerID, string sSourceFilePath, string sOrderType, string sFileId = null)
Parameters
Type |
Name |
Description |
System.String |
sHostID |
|
System.String |
sPartnerID |
|
System.String |
sSourceFilePath |
Full path to file that shall be uploaded to the server. This file must
exist outside of the spooler folder. It will be copied into the
BOX_OUTBOX with a new file name, generated from the
sOrderType and the sFileId .
The file name extension of the source file will also be used for the
file copied into the BOX_OUTBOX.
|
System.String |
sOrderType |
The EBICS OrderType that shall be used to upload the file.
|
System.String |
sFileId |
Optional file ID that will be used to generate a unique file name. If this is
null then a unique time stamp will be used to create a unqiue file ID.
|
Returns
Exceptions
SubmitSepaUpload(String, String, SepaDocument)
Writes the given SEPA payment initiation document into the BOX_OUTBOX
folder for uploading by the spooler.
Declaration
public EbicsFileName SubmitSepaUpload(string sHostID, string sPartnerID, SepaDocument aSepaDocument)
Parameters
Type |
Name |
Description |
System.String |
sHostID |
|
System.String |
sPartnerID |
|
SepaDocument |
aSepaDocument |
|
Returns
Exceptions
Type |
Condition |
System.ArgumentNullException |
One of the parameters was null .
|
System.ArgumentException |
One of the parameters was invalid.
|
EbicsFileSpoolerException |
The BOX_OUTBOX folder is currently locked by another process.
|
UpdateAccessControlList(EbicsFileFolder, EbicsFileSpoolerAccessControlList)
Rewrites the complete access control list file into the given folder.
Declaration
public void UpdateAccessControlList(EbicsFileFolder aFileFolder, EbicsFileSpoolerAccessControlList aAccessControlList)
Parameters