C# Класс Dev2.PathOperations.Dev2ActivityIOBroker

PBI : 1172 Status : New Purpose : To provide a concrete impl of the IActivityOperationBroker to facilitate IO operations
Наследование: IActivityOperationsBroker
Показать файл Открыть проект

Открытые методы

Метод Описание
Copy ( IActivityIOOperationsEndPoint src, IActivityIOOperationsEndPoint dst, Dev2CRUDOperationTO args ) : string
Create ( IActivityIOOperationsEndPoint dst, Dev2CRUDOperationTO args, bool createToFile ) : string
Delete ( IActivityIOOperationsEndPoint src ) : string
Dev2ActivityIOBroker ( ) : System
Get ( IActivityIOOperationsEndPoint path, bool deferredRead = false ) : string
ListDirectory ( IActivityIOOperationsEndPoint src, ReadTypes readTypes ) : IList
Move ( IActivityIOOperationsEndPoint src, IActivityIOOperationsEndPoint dst, Dev2CRUDOperationTO args ) : string
PutRaw ( IActivityIOOperationsEndPoint dst, Dev2PutRawOperationTO args ) : string
Rename ( IActivityIOOperationsEndPoint src, IActivityIOOperationsEndPoint dst, Dev2CRUDOperationTO args ) : string
UnZip ( IActivityIOOperationsEndPoint src, IActivityIOOperationsEndPoint dst, Dev2UnZipOperationTO args ) : string
Zip ( IActivityIOOperationsEndPoint src, IActivityIOOperationsEndPoint dst, Dev2ZipOperationTO args ) : string

Приватные методы

Метод Описание
AddMissingFileDirectoryParts ( IActivityIOOperationsEndPoint src, IActivityIOOperationsEndPoint dst ) : void
AppendToTemp ( Stream originalFileStream, string temp ) : void
CreateDirectory ( IActivityIOOperationsEndPoint dst, Dev2CRUDOperationTO args ) : bool
CreateEndPoint ( IActivityIOOperationsEndPoint dst, Dev2CRUDOperationTO args, bool createToFile ) : string
CreateFile ( IActivityIOOperationsEndPoint dst, Dev2CRUDOperationTO args ) : bool
CreateTmpDirectory ( ) : string
CreateTmpFile ( ) : string

Creates a tmp file

DoFileTransfer ( IActivityIOOperationsEndPoint src, IActivityIOOperationsEndPoint dst, Dev2CRUDOperationTO args, IActivityIOPath dstPath, IActivityIOPath p, string path, bool &result ) : void
EnsureFilesDontExists ( IActivityIOOperationsEndPoint src, IActivityIOOperationsEndPoint dst ) : void
ExtractFile ( Dev2UnZipOperationTO args, ZipFile zip, string extractFromPath ) : void
ExtractZipCompressionLevel ( string lvl ) : CompressionLevel
GetFileNameFromEndPoint ( IActivityIOOperationsEndPoint endPoint ) : string
GetFileNameFromEndPoint ( IActivityIOOperationsEndPoint endPoint, IActivityIOPath path ) : string
GetWhereToPut ( IActivityIOOperationsEndPoint src, IActivityIOOperationsEndPoint dst ) : string
IsBase64 ( string payload ) : bool
IsNotFtpTypePath ( IActivityIOPath src ) : bool
IsUncFileTypePath ( IActivityIOPath src ) : bool
MakeDirectoryParts ( IActivityIOPath path, string splitter ) : IList
MoveTmpFileToDestination ( IActivityIOOperationsEndPoint dst, string tmp, string result ) : string
PerformTransfer ( IActivityIOOperationsEndPoint src, IActivityIOOperationsEndPoint dst, Dev2CRUDOperationTO args, string origDstPath, IActivityIOPath p, bool result ) : bool
RecursiveCopy ( IActivityIOOperationsEndPoint src, IActivityIOOperationsEndPoint dst, Dev2CRUDOperationTO args ) : void
RemoveTmpFile ( string path ) : void

Remove a tmp file

TransferDirectoryContents ( IActivityIOOperationsEndPoint src, IActivityIOOperationsEndPoint dst, Dev2CRUDOperationTO args ) : bool

Transfer the contents of the directory

TransferFile ( IActivityIOOperationsEndPoint src, IActivityIOOperationsEndPoint dst, Dev2CRUDOperationTO args, string path, IActivityIOPath p, bool result ) : bool
TransferTempZipFileToDestination ( IActivityIOOperationsEndPoint src, IActivityIOOperationsEndPoint dst, Dev2ZipOperationTO args, string tmpZip ) : string
ValidateCopySourceDestinationFileOperation ( IActivityIOOperationsEndPoint src, IActivityIOOperationsEndPoint dst, Dev2CRUDOperationTO args, Func performAfterValidation ) : string
ValidateEndPoint ( IActivityIOOperationsEndPoint endPoint, Dev2CRUDOperationTO args ) : void
ValidateRenameSourceAndDesinationTypes ( IActivityIOOperationsEndPoint src, IActivityIOOperationsEndPoint dst, Dev2CRUDOperationTO args ) : string
ValidateSourceAndDestinationContents ( IActivityIOOperationsEndPoint src, IActivityIOOperationsEndPoint dst, Dev2CRUDOperationTO args ) : void

Transfer the contents of the directory

ValidateSourceAndDestinationPaths ( IActivityIOOperationsEndPoint src, IActivityIOOperationsEndPoint dst ) : void
ValidateUnzipSourceDestinationFileOperation ( IActivityIOOperationsEndPoint src, IActivityIOOperationsEndPoint dst, Dev2UnZipOperationTO args, Func performAfterValidation ) : string
ValidateZipSourceDestinationFileOperation ( IActivityIOOperationsEndPoint src, IActivityIOOperationsEndPoint dst, Dev2ZipOperationTO args, Func performAfterValidation ) : string
ZipDirectoryToALocalTempFile ( IActivityIOOperationsEndPoint src, Dev2ZipOperationTO args ) : string
ZipFileToALocalTempFile ( IActivityIOOperationsEndPoint src, Dev2ZipOperationTO args ) : string

Описание методов

Copy() публичный Метод

public Copy ( IActivityIOOperationsEndPoint src, IActivityIOOperationsEndPoint dst, Dev2CRUDOperationTO args ) : string
src IActivityIOOperationsEndPoint
dst IActivityIOOperationsEndPoint
args Dev2CRUDOperationTO
Результат string

Create() публичный Метод

public Create ( IActivityIOOperationsEndPoint dst, Dev2CRUDOperationTO args, bool createToFile ) : string
dst IActivityIOOperationsEndPoint
args Dev2CRUDOperationTO
createToFile bool
Результат string

Delete() публичный Метод

public Delete ( IActivityIOOperationsEndPoint src ) : string
src IActivityIOOperationsEndPoint
Результат string

Dev2ActivityIOBroker() публичный Метод

public Dev2ActivityIOBroker ( ) : System
Результат System

Get() публичный Метод

public Get ( IActivityIOOperationsEndPoint path, bool deferredRead = false ) : string
path IActivityIOOperationsEndPoint
deferredRead bool
Результат string

ListDirectory() публичный Метод

public ListDirectory ( IActivityIOOperationsEndPoint src, ReadTypes readTypes ) : IList
src IActivityIOOperationsEndPoint
readTypes ReadTypes
Результат IList

Move() публичный Метод

public Move ( IActivityIOOperationsEndPoint src, IActivityIOOperationsEndPoint dst, Dev2CRUDOperationTO args ) : string
src IActivityIOOperationsEndPoint
dst IActivityIOOperationsEndPoint
args Dev2CRUDOperationTO
Результат string

PutRaw() публичный Метод

public PutRaw ( IActivityIOOperationsEndPoint dst, Dev2PutRawOperationTO args ) : string
dst IActivityIOOperationsEndPoint
args Dev2PutRawOperationTO
Результат string

Rename() публичный Метод

public Rename ( IActivityIOOperationsEndPoint src, IActivityIOOperationsEndPoint dst, Dev2CRUDOperationTO args ) : string
src IActivityIOOperationsEndPoint
dst IActivityIOOperationsEndPoint
args Dev2CRUDOperationTO
Результат string

UnZip() публичный Метод

public UnZip ( IActivityIOOperationsEndPoint src, IActivityIOOperationsEndPoint dst, Dev2UnZipOperationTO args ) : string
src IActivityIOOperationsEndPoint
dst IActivityIOOperationsEndPoint
args Dev2UnZipOperationTO
Результат string

Zip() публичный Метод

public Zip ( IActivityIOOperationsEndPoint src, IActivityIOOperationsEndPoint dst, Dev2ZipOperationTO args ) : string
src IActivityIOOperationsEndPoint
dst IActivityIOOperationsEndPoint
args Dev2ZipOperationTO
Результат string