Class Fedora.Repository.RepositoryImpl
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Fedora.Repository.RepositoryImpl

Object
   |
   +----ObjectImpl
           |
           +----DynamicImplementation
                   |
                   +----_DigitalObjectSkeleton
                           |
                           +----_DigitalObjectImplBase
                                   |
                                   +----DigitalObjectImpl
                                           |
                                           +----Fedora.Repository.RepositoryImpl

public class RepositoryImpl
extends DigitalObjectImpl
implements _RepositoryOperations, RepositoryConfig, VERSION

Constructor Index

 o Fedora.Repository.RepositoryImpl()

Method Index

 o CreateDigitalObject(String)
Method CreateDigitalObject creates an empty, named wrapper for multimedia content.
 o DeleteDigitalObject(String)
Deletes a DigitalObject from the local Repository
 o GetCurrentContext(byte[])
 o GetDigitalObject(String)
Get an instance of an existing DigitalObject in a Repository.
 o GetSessionID(String)
 o GetVersion()
Return the version of RAP this Repository implements.
 o ListDigitalObjectIDs(String)
method from IDL Lists all digital objects stored in this repository that match the filter.
 o SignatureInstalled(String)
Determine whether THIS repository has installed a particular disseminator implementation.
 o VerifyDigitalObject(String)
 o filetoByteStream(String)
Utility method that can be used to convert a file to a bytestream assuming that the file exists on the same filesystem as the repository.
 o getInstalledIFRid(String)
Return the IFR ID for a Signature that is installed in this repository.

Constructors

 o RepositoryImpl
public RepositoryImpl()

Methods

 o CreateDigitalObject
public RAP.DigitalObject CreateDigitalObject(String digitalObjectID) throws RepositorySystemError
Method CreateDigitalObject creates an empty, named wrapper for multimedia content. Returns a reference to the empty DigitalObject which can be used to perform subsequent structural operations to populate the empty object.

Parameters:
digitalObjectID - the URN of the new DigitalObject
Returns:
an instance of a new DigitalObject. The new DigitalObject is an empty container meaning that is does not yet have any DataStreams or Diseminators.
See Also:
DigitalObjectImpl
 o DeleteDigitalObject
public void DeleteDigitalObject(String digitalObjectID) throws RepositorySystemError
Deletes a DigitalObject from the local Repository

Parameters:
digitalObjectID - the URN of the DigitalObject to be deleted.
Throws: RepositorySystemError
if problem deleting digital object
 o GetCurrentContext
public RAP.CurrentContext GetCurrentContext(byte sessionID) throws RepositorySystemError
 o GetDigitalObject
public RAP.DigitalObject GetDigitalObject(String digitalObjectID) throws RepositorySystemError
Get an instance of an existing DigitalObject in a Repository.

By the time the GetDigitalObject request is issued by a client, that client has already obtained a reference to THIS repository. The client may have obtained the repository reference by resolving the DigitalObjectID in the Handle System which resolves all DigitalObjectIDs to the IOR of the home repository.

NOTE!! It is important to note that the FEDORA implementation of this method also allows the repository to go outside and look for DigitalObjects in remote repositories if if does not find a DigitalObject locally. This has benefits, but also begins to blur the lines between repositories. We will think of the best way to design this "go remote" behavior, but for now it resides right in the GetDigitalObject method.

Parameters:
digitalObjectID - the URN of an existing DigitalObject
Returns:
an instance of an existing DigitalObject
See Also:
DigitalObjectImpl
 o GetSessionID
public byte[] GetSessionID(String userID) throws RepositorySystemError
 o GetVersion
public java.lang.String GetVersion() throws RepositorySystemError
Return the version of RAP this Repository implements. The version is a constant in the RAP IDL (see interface RAP.VERSION).

Returns:
a string containing the version number of the RAP IDL
 o ListDigitalObjectIDs
public java.lang.String[] ListDigitalObjectIDs(String filter) throws RepositorySystemError
method from IDL Lists all digital objects stored in this repository that match the filter.

Parameters:
filter - is either the local DOID or the handle of the digital object to be deleted
Throws: RepositorySystemError
if problem listing the digital objects
 o SignatureInstalled
public static boolean SignatureInstalled(String URN)
Determine whether THIS repository has installed a particular disseminator implementation.

 o VerifyDigitalObject
public int VerifyDigitalObject(String digitalObjectID) throws RepositorySystemError
 o filetoByteStream
public static byte[] filetoByteStream(String f_filepath)
Utility method that can be used to convert a file to a bytestream assuming that the file exists on the same filesystem as the repository.

 o getInstalledIFRid
public static java.lang.String getInstalledIFRid(String signatureID)
Return the IFR ID for a Signature that is installed in this repository.


All Packages  Class Hierarchy  This Package  Previous  Next  Index