C# Class SobekCM.Core.FileSystems.SobekFileSystem

Class provides uniform access to the sobek file system which contains all the digital resources
Afficher le fichier Open project: MarkVSullivan/SobekCM-Web-Application

Méthodes publiques

Méthode Description
AssociFilePath ( BriefItemInfo DigitalResource ) : string

[TEMPORARY] Get the associated file path (which is essentially the part of the path that appears UNDER the root imaging spot

Why is this temporary?

AssociFilePath ( string BibID, string VID ) : string

[TEMPORARY] Get the associated file path (which is essentially the part of the path that appears UNDER the root imaging spot

Why is this temporary?

FileExists ( BriefItemInfo DigitalResource, string FileName ) : bool

Return a flag if the file specified exists within the digital resource

GetFiles ( BriefItemInfo DigitalResource ) : List

Gets the list of all the files associated with this digital resource

Initialize ( string RootNetworkUri, string RootWebUri ) : void

Initializes the specified file system and sets the uris for the necessary access for the file system

ReadToEnd ( BriefItemInfo DigitalResource, string FileName ) : string

Read to the end of a (text-based) file and return the contents

Resource_Network_Uri ( BriefItemInfo DigitalResource ) : string

Return the NETWORK uri for a digital resource

This makes some presumptions on the type of system in the background

Resource_Network_Uri ( BriefItemInfo DigitalResource, string FileName ) : string

Return the NETWORK uri for a single file in the digital resource

This makes some presumptions on the type of system in the background

Resource_Network_Uri ( string BibID, string VID ) : string

Return the NETWORK uri for a digital resource

This makes some presumptions on the type of system in the background

Resource_Network_Uri ( string BibID, string VID, string FileName ) : string

Return the NETWORK uri for a single file in the digital resource

This makes some presumptions on the type of system in the background

Resource_Web_Uri ( BriefItemInfo DigitalResource ) : string

Return the WEB uri for a digital resource

Resource_Web_Uri ( BriefItemInfo DigitalResource, string FileName ) : string

Return the WEB uri for a file within the digital resource

Resource_Web_Uri ( string BibID, string VID ) : string

Return the WEB uri for a digital resource

Method Details

AssociFilePath() public static méthode

[TEMPORARY] Get the associated file path (which is essentially the part of the path that appears UNDER the root imaging spot
Why is this temporary?
public static AssociFilePath ( BriefItemInfo DigitalResource ) : string
DigitalResource SobekCM.Core.BriefItem.BriefItemInfo The digital resource object
Résultat string

AssociFilePath() public static méthode

[TEMPORARY] Get the associated file path (which is essentially the part of the path that appears UNDER the root imaging spot
Why is this temporary?
public static AssociFilePath ( string BibID, string VID ) : string
BibID string Bibliographic identifier (BibID) for a title within a SobekCM instance
VID string Volume identifier (VID) for an item within a SobekCM title
Résultat string

FileExists() public static méthode

Return a flag if the file specified exists within the digital resource
public static FileExists ( BriefItemInfo DigitalResource, string FileName ) : bool
DigitalResource SobekCM.Core.BriefItem.BriefItemInfo The digital resource object
FileName string Filename to check for
Résultat bool

GetFiles() public static méthode

Gets the list of all the files associated with this digital resource
public static GetFiles ( BriefItemInfo DigitalResource ) : List
DigitalResource SobekCM.Core.BriefItem.BriefItemInfo The digital resource object
Résultat List

Initialize() public static méthode

Initializes the specified file system and sets the uris for the necessary access for the file system
public static Initialize ( string RootNetworkUri, string RootWebUri ) : void
RootNetworkUri string The root network URI.
RootWebUri string The root web URI.
Résultat void

ReadToEnd() public static méthode

Read to the end of a (text-based) file and return the contents
public static ReadToEnd ( BriefItemInfo DigitalResource, string FileName ) : string
DigitalResource SobekCM.Core.BriefItem.BriefItemInfo The digital resource object
FileName string Name of the file to open, and read
Résultat string

Resource_Network_Uri() public static méthode

Return the NETWORK uri for a digital resource
This makes some presumptions on the type of system in the background
public static Resource_Network_Uri ( BriefItemInfo DigitalResource ) : string
DigitalResource SobekCM.Core.BriefItem.BriefItemInfo The digital resource object
Résultat string

Resource_Network_Uri() public static méthode

Return the NETWORK uri for a single file in the digital resource
This makes some presumptions on the type of system in the background
public static Resource_Network_Uri ( BriefItemInfo DigitalResource, string FileName ) : string
DigitalResource SobekCM.Core.BriefItem.BriefItemInfo The digital resource object
FileName string Filename to get network URI for
Résultat string

Resource_Network_Uri() public static méthode

Return the NETWORK uri for a digital resource
This makes some presumptions on the type of system in the background
public static Resource_Network_Uri ( string BibID, string VID ) : string
BibID string Bibliographic identifier (BibID) for a title within a SobekCM instance
VID string Volume identifier (VID) for an item within a SobekCM title
Résultat string

Resource_Network_Uri() public static méthode

Return the NETWORK uri for a single file in the digital resource
This makes some presumptions on the type of system in the background
public static Resource_Network_Uri ( string BibID, string VID, string FileName ) : string
BibID string Bibliographic identifier (BibID) for a title within a SobekCM instance
VID string Volume identifier (VID) for an item within a SobekCM title
FileName string Filename to get network URI for
Résultat string

Resource_Web_Uri() public static méthode

Return the WEB uri for a digital resource
public static Resource_Web_Uri ( BriefItemInfo DigitalResource ) : string
DigitalResource SobekCM.Core.BriefItem.BriefItemInfo The digital resource object
Résultat string

Resource_Web_Uri() public static méthode

Return the WEB uri for a file within the digital resource
public static Resource_Web_Uri ( BriefItemInfo DigitalResource, string FileName ) : string
DigitalResource SobekCM.Core.BriefItem.BriefItemInfo The digital resource object
FileName string Name of the resource file
Résultat string

Resource_Web_Uri() public static méthode

Return the WEB uri for a digital resource
public static Resource_Web_Uri ( string BibID, string VID ) : string
BibID string Bibliographic identifier for the resource in question
VID string Volume identifier for the resource in question
Résultat string