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
-
Fedora.Repository.RepositoryImpl()
-
-
CreateDigitalObject(String)
- Method CreateDigitalObject creates an empty, named wrapper for multimedia content.
-
DeleteDigitalObject(String)
- Deletes a DigitalObject from the local Repository
-
GetCurrentContext(byte[])
-
-
GetDigitalObject(String)
-
Get an instance of an existing DigitalObject in a Repository.
-
GetSessionID(String)
-
-
GetVersion()
- Return the version of RAP this Repository implements.
-
ListDigitalObjectIDs(String)
- method from IDL
Lists all digital objects stored in this repository that match
the filter.
-
SignatureInstalled(String)
- Determine whether THIS repository has installed a particular
disseminator implementation.
-
VerifyDigitalObject(String)
-
-
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.
-
getInstalledIFRid(String)
- Return the IFR ID for a Signature that is installed in this
repository.
RepositoryImpl
public RepositoryImpl()
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
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
GetCurrentContext
public RAP.CurrentContext GetCurrentContext(byte sessionID) throws RepositorySystemError
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
GetSessionID
public byte[] GetSessionID(String userID) throws RepositorySystemError
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
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
SignatureInstalled
public static boolean SignatureInstalled(String URN)
- Determine whether THIS repository has installed a particular
disseminator implementation.
VerifyDigitalObject
public int VerifyDigitalObject(String digitalObjectID) throws RepositorySystemError
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.
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