C# Class vwarDAL.FedoraFileStore

Inheritance: vwarDAL.IFileStore
Datei anzeigen Open project: adlnet/3D-Repository

Private Properties

Property Type Description
CreateDigitalObject digitalObject
FormatContentUrl string
GetAccessService FedoraAPIA.FedoraAPIAService
GetContentUrl string
GetDSId string
GetManagementService FedoraAPIM.FedoraAPIMService
SerializeObject byte[]
UploadFile string
UploadFile string
UploadFile string

Public Methods

Method Description
AddSupportingFile ( Stream data, vwarDAL.ContentObject co, string filename ) : string

DeleteContentObject ( vwarDAL.ContentObject co ) : void

FedoraFileStore ( string url, string userName, string password, string access, string management, string fileNamespace ) : System

GetContentFile ( string pid, string file ) : Stream

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

GetNewContentObject ( ) : vwarDAL.ContentObject

InsertContentObject ( vwarDAL.ContentObject co ) : void

RemoveFile ( string pid, string fileName ) : void

SetContentFile ( Stream data, string pid, string filename ) : string

UpdateFile ( Stream data, string pid, string fileName, string newfileName = null ) : string

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

Private Methods

Method Description
CreateDigitalObject ( vwarDAL.ContentObject co ) : digitalObject

FormatContentUrl ( string pid, string dsid ) : string

GetAccessService ( ) : FedoraAPIA.FedoraAPIAService

GetContentUrl ( string pid, string dsid ) : string

GetDSId ( string pid, string fileName ) : string

GetManagementService ( ) : FedoraAPIM.FedoraAPIMService

SerializeObject ( object dataObject ) : byte[]

UploadFile ( Stream data, string pid, string fileName ) : string

UploadFile ( byte data, string pid, string fileName ) : string

UploadFile ( string data, string pid, string fileName ) : string

Method Details

AddSupportingFile() public method

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

DeleteContentObject() public method

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

FedoraFileStore() public method

public FedoraFileStore ( string url, string userName, string password, string access, string management, string fileNamespace ) : System
url string
userName string
password string
access string
management string
fileNamespace string
return System

GetContentFile() public method

public GetContentFile ( string pid, string file ) : Stream
pid string
file string
return 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

RemoveFile() public method

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

SetContentFile() public method

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

UpdateFile() public method

public UpdateFile ( Stream data, string pid, string fileName, string newfileName = null ) : string
data Stream
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