C# Class Dev2.PathOperations.Dev2ActivityIOBroker

PBI : 1172 Status : New Purpose : To provide a concrete impl of the IActivityOperationBroker to facilitate IO operations
Inheritance: IActivityOperationsBroker
Mostra file Open project: Warewolf-ESB/Warewolf

Public Methods

Method Description
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

Private Methods

Method Description
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

Method Details

Copy() public method

public Copy ( IActivityIOOperationsEndPoint src, IActivityIOOperationsEndPoint dst, Dev2CRUDOperationTO args ) : string
src IActivityIOOperationsEndPoint
dst IActivityIOOperationsEndPoint
args Dev2CRUDOperationTO
return string

Create() public method

public Create ( IActivityIOOperationsEndPoint dst, Dev2CRUDOperationTO args, bool createToFile ) : string
dst IActivityIOOperationsEndPoint
args Dev2CRUDOperationTO
createToFile bool
return string

Delete() public method

public Delete ( IActivityIOOperationsEndPoint src ) : string
src IActivityIOOperationsEndPoint
return string

Dev2ActivityIOBroker() public method

public Dev2ActivityIOBroker ( ) : System
return System

Get() public method

public Get ( IActivityIOOperationsEndPoint path, bool deferredRead = false ) : string
path IActivityIOOperationsEndPoint
deferredRead bool
return string

ListDirectory() public method

public ListDirectory ( IActivityIOOperationsEndPoint src, ReadTypes readTypes ) : IList
src IActivityIOOperationsEndPoint
readTypes ReadTypes
return IList

Move() public method

public Move ( IActivityIOOperationsEndPoint src, IActivityIOOperationsEndPoint dst, Dev2CRUDOperationTO args ) : string
src IActivityIOOperationsEndPoint
dst IActivityIOOperationsEndPoint
args Dev2CRUDOperationTO
return string

PutRaw() public method

public PutRaw ( IActivityIOOperationsEndPoint dst, Dev2PutRawOperationTO args ) : string
dst IActivityIOOperationsEndPoint
args Dev2PutRawOperationTO
return string

Rename() public method

public Rename ( IActivityIOOperationsEndPoint src, IActivityIOOperationsEndPoint dst, Dev2CRUDOperationTO args ) : string
src IActivityIOOperationsEndPoint
dst IActivityIOOperationsEndPoint
args Dev2CRUDOperationTO
return string

UnZip() public method

public UnZip ( IActivityIOOperationsEndPoint src, IActivityIOOperationsEndPoint dst, Dev2UnZipOperationTO args ) : string
src IActivityIOOperationsEndPoint
dst IActivityIOOperationsEndPoint
args Dev2UnZipOperationTO
return string

Zip() public method

public Zip ( IActivityIOOperationsEndPoint src, IActivityIOOperationsEndPoint dst, Dev2ZipOperationTO args ) : string
src IActivityIOOperationsEndPoint
dst IActivityIOOperationsEndPoint
args Dev2ZipOperationTO
return string