C# Class vwarDAL.FedoraCommonsRepo

Inheritance: IDataRepository
Datei anzeigen Open project: adlnet/3D-Repository

Public Methods

Method Description
AddMissingTexture ( vwarDAL.ContentObject co, string filename, string type, int UVset ) : bool

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

AddTextureReference ( vwarDAL.ContentObject co, string filename, string type, int UVset ) : bool

DeleteContentObject ( vwarDAL.ContentObject co ) : void

Dispose ( ) : void
GetAllContentObjects ( ) : IEnumerable

GetCachedContentObjectTransform ( vwarDAL.ContentObject co, string extension ) : Stream

GetContentFile ( string pid, string file ) : Stream

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

GetContentObjectById ( string pid, bool updateViews, bool getReviews = true, int revision = -1 ) : vwarDAL.ContentObject

private Dictionary _Memory = new Dictionary();

GetContentObjectsByArtistName ( string artistName ) : IEnumerable

GetContentObjectsByDescription ( string description ) : IEnumerable

GetContentObjectsByDeveloperName ( string developerName ) : IEnumerable

GetContentObjectsByKeyWords ( string keyword ) : IEnumerable

GetContentObjectsBySponsorName ( string sponsorName ) : IEnumerable

GetContentObjectsBySubmitterEmail ( string email ) : IEnumerable

GetContentObjectsByTitle ( string title ) : IEnumerable

GetNewContentObject ( ) : vwarDAL.ContentObject

GetSupportingFile ( vwarDAL.ContentObject co, string dsid ) : Stream

IncrementDownloads ( string id ) : void

InsertContentObject ( vwarDAL.ContentObject co ) : void

InsertContentRevision ( vwarDAL.ContentObject co ) : void

InsertReview ( int rating, string text, string submitterEmail, string contentObjectId ) : void

RemoveFile ( string pid, string fileName ) : void

RemoveMissingTexture ( vwarDAL.ContentObject co, string filename ) : bool

RemoveSupportingFile ( vwarDAL.ContentObject co, string filename ) : bool

RemoveTextureReference ( vwarDAL.ContentObject co, string filename ) : bool

SearchContentObjects ( string searchTerm ) : IEnumerable

SetContentFile ( Stream data, vwarDAL.ContentObject co, string filename ) : string

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

UpdateContentObject ( vwarDAL.ContentObject co ) : void

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
FedoraCommonsRepo ( string url, string userName, string password, string access, string management, string connectionString, string fileNamespace, string identity = "" ) : System

SearchFunction ( vwarDAL.ContentObject co, string searchTerm ) : bool

Method Details

AddMissingTexture() public method

public AddMissingTexture ( vwarDAL.ContentObject co, string filename, string type, int UVset ) : bool
co vwarDAL.ContentObject
filename string
type string
UVset int
return bool

AddSupportingFile() public method

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

AddTextureReference() public method

public AddTextureReference ( vwarDAL.ContentObject co, string filename, string type, int UVset ) : bool
co vwarDAL.ContentObject
filename string
type string
UVset int
return bool

DeleteContentObject() public method

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

Dispose() public method

public Dispose ( ) : void
return void

GetAllContentObjects() public method

public GetAllContentObjects ( ) : IEnumerable
return IEnumerable

GetCachedContentObjectTransform() public method

public GetCachedContentObjectTransform ( vwarDAL.ContentObject co, string extension ) : Stream
co vwarDAL.ContentObject
extension string
return Stream

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[]

GetContentObjectById() public method

private Dictionary _Memory = new Dictionary();
public GetContentObjectById ( string pid, bool updateViews, bool getReviews = true, int revision = -1 ) : vwarDAL.ContentObject
pid string
updateViews bool
getReviews bool
revision int
return vwarDAL.ContentObject

GetContentObjectsByArtistName() public method

public GetContentObjectsByArtistName ( string artistName ) : IEnumerable
artistName string
return IEnumerable

GetContentObjectsByDescription() public method

public GetContentObjectsByDescription ( string description ) : IEnumerable
description string
return IEnumerable

GetContentObjectsByDeveloperName() public method

public GetContentObjectsByDeveloperName ( string developerName ) : IEnumerable
developerName string
return IEnumerable

GetContentObjectsByKeyWords() public method

public GetContentObjectsByKeyWords ( string keyword ) : IEnumerable
keyword string
return IEnumerable

GetContentObjectsBySponsorName() public method

public GetContentObjectsBySponsorName ( string sponsorName ) : IEnumerable
sponsorName string
return IEnumerable

GetContentObjectsBySubmitterEmail() public method

public GetContentObjectsBySubmitterEmail ( string email ) : IEnumerable
email string
return IEnumerable

GetContentObjectsByTitle() public method

public GetContentObjectsByTitle ( string title ) : IEnumerable
title string
return IEnumerable

GetNewContentObject() public method

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

GetSupportingFile() public method

public GetSupportingFile ( vwarDAL.ContentObject co, string dsid ) : Stream
co vwarDAL.ContentObject
dsid string
return Stream

IncrementDownloads() public method

public IncrementDownloads ( string id ) : void
id string
return void

InsertContentObject() public method

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

InsertContentRevision() public method

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

InsertReview() public method

public InsertReview ( int rating, string text, string submitterEmail, string contentObjectId ) : void
rating int
text string
submitterEmail string
contentObjectId string
return void

RemoveFile() public method

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

RemoveMissingTexture() public method

public RemoveMissingTexture ( vwarDAL.ContentObject co, string filename ) : bool
co vwarDAL.ContentObject
filename string
return bool

RemoveSupportingFile() public method

public RemoveSupportingFile ( vwarDAL.ContentObject co, string filename ) : bool
co vwarDAL.ContentObject
filename string
return bool

RemoveTextureReference() public method

public RemoveTextureReference ( vwarDAL.ContentObject co, string filename ) : bool
co vwarDAL.ContentObject
filename string
return bool

SearchContentObjects() public method

public SearchContentObjects ( string searchTerm ) : IEnumerable
searchTerm string
return IEnumerable

SetContentFile() public method

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

SetContentFile() public method

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

UpdateContentObject() public method

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

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