C# Class vwarDAL.LocalFileSystemStore

Inheritance: IFileStore
Mostrar archivo Open project: adlnet/3D-Repository

Public Methods

Method Description
AddSupportingFile ( System data, vwarDAL.ContentObject co, string filename ) : string
DeleteContentObject ( vwarDAL.ContentObject co ) : void
GetContentFile ( string pid, string file ) : Stream
GetContentFileData ( string pid, string dsid ) : byte[]
GetNewContentObject ( ) : vwarDAL.ContentObject
InsertContentObject ( vwarDAL.ContentObject co ) : void
LocalFileSystemStore ( ) : System
RemoveFile ( string pid, string fileName ) : void
SetContentFile ( System data, string pid, string filename ) : string
UpdateFile ( System data, string pid, string fileName, string newfileName = null ) : string
UpdateFile ( byte data, string pid, string fileName, string newFileName = null ) : string

Method Details

AddSupportingFile() public method

public AddSupportingFile ( System data, vwarDAL.ContentObject co, string filename ) : string
data System
co vwarDAL.ContentObject
filename string
return string

DeleteContentObject() public method

public DeleteContentObject ( vwarDAL.ContentObject co ) : void
co vwarDAL.ContentObject
return void

GetContentFile() public method

public GetContentFile ( string pid, string file ) : Stream
pid string
file string
return System.IO.Stream

GetContentFileData() public method

public GetContentFileData ( string pid, string dsid ) : byte[]
pid string
dsid string
return byte[]

GetNewContentObject() public method

public GetNewContentObject ( ) : vwarDAL.ContentObject
return vwarDAL.ContentObject

InsertContentObject() public method

public InsertContentObject ( vwarDAL.ContentObject co ) : void
co vwarDAL.ContentObject
return void

LocalFileSystemStore() public method

public LocalFileSystemStore ( ) : System
return System

RemoveFile() public method

public RemoveFile ( string pid, string fileName ) : void
pid string
fileName string
return void

SetContentFile() public method

public SetContentFile ( System data, string pid, string filename ) : string
data System
pid string
filename string
return string

UpdateFile() public method

public UpdateFile ( System data, string pid, string fileName, string newfileName = null ) : string
data System
pid string
fileName string
newfileName string
return string

UpdateFile() public method

public UpdateFile ( byte data, string pid, string fileName, string newFileName = null ) : string
data byte
pid string
fileName string
newFileName string
return string