C# Class SobekCM.Core.FileSystems.SobekFileSystem

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

Public Methods

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

[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
return string

AssociFilePath() public static method

[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
return string

FileExists() public static method

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
return bool

GetFiles() public static method

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
return List

Initialize() public static method

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.
return void

ReadToEnd() public static method

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
return string

Resource_Network_Uri() public static method

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
return string

Resource_Network_Uri() public static method

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
return string

Resource_Network_Uri() public static method

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
return string

Resource_Network_Uri() public static method

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
return string

Resource_Web_Uri() public static method

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
return string

Resource_Web_Uri() public static method

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
return string

Resource_Web_Uri() public static method

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
return string