fedora.server.storage
Class SimpleBMechReader

java.lang.Object
  extended by fedora.server.storage.SimpleDOReader
      extended by fedora.server.storage.SimpleServiceAwareReader
          extended by fedora.server.storage.SimpleBMechReader
All Implemented Interfaces:
BMechReader, DOReader

public class SimpleBMechReader
extends SimpleServiceAwareReader
implements BMechReader

A BMechReader based on a DigitalObject.

Version:
$Id: SimpleBMechReader.java 5220 2006-11-20 13:52:20Z cwilper $
Author:
cwilper@cs.cornell.edu

Field Summary
 
Fields inherited from class fedora.server.storage.SimpleDOReader
m_obj
 
Constructor Summary
SimpleBMechReader(Context context, RepositoryReader repoReader, DOTranslator translator, java.lang.String exportFormat, java.lang.String encoding, DigitalObject obj)
          Alternate constructor for when a DigitalObject is already available for some reason.
SimpleBMechReader(Context context, RepositoryReader repoReader, DOTranslator translator, java.lang.String exportFormat, java.lang.String storageFormat, java.lang.String encoding, java.io.InputStream serializedObject)
           
 
Method Summary
 BMechDSBindSpec getServiceDSInputSpec(java.util.Date versDateTime)
           
 MethodDefOperationBind[] getServiceMethodBindings(java.util.Date versDateTime)
           
 MethodParmDef[] getServiceMethodParms(java.lang.String methodName, java.util.Date versDateTime)
           
 MethodDef[] getServiceMethods(java.util.Date versDateTime)
           
 java.io.InputStream getServiceMethodsXML(java.util.Date versDateTime)
           
 
Methods inherited from class fedora.server.storage.SimpleServiceAwareReader
getDSInputSpecDatastream, getMethodMapDatastream, getWSDLDatastream
 
Methods inherited from class fedora.server.storage.SimpleDOReader
ExportObject, getAuditRecords, GetBehaviorDefs, getContentModelId, getCreateDate, GetDatastream, getDatastream, GetDatastreams, getDatastreamVersions, getDisseminationBindingInfo, GetDisseminator, GetDisseminators, getDisseminatorVersions, GetDSBindingMaps, getFedoraObjectType, getLastModDate, getObjectHistory, GetObjectLabel, getObjectMethodParms, GetObjectPID, GetObjectState, GetObjectXML, getOwnerId, getWhenString, ListDatastreamIDs, ListDisseminatorIDs, listMethods, listMethods
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface fedora.server.storage.DOReader
ExportObject, getAuditRecords, GetBehaviorDefs, getContentModelId, getCreateDate, GetDatastream, getDatastream, GetDatastreams, getDatastreamVersions, getDisseminationBindingInfo, GetDisseminator, GetDisseminators, getDisseminatorVersions, GetDSBindingMaps, getFedoraObjectType, getLastModDate, getObjectHistory, GetObjectLabel, getObjectMethodParms, GetObjectPID, GetObjectState, GetObjectXML, getOwnerId, ListDatastreamIDs, ListDisseminatorIDs, listMethods, listMethods
 

Constructor Detail

SimpleBMechReader

public SimpleBMechReader(Context context,
                         RepositoryReader repoReader,
                         DOTranslator translator,
                         java.lang.String exportFormat,
                         java.lang.String storageFormat,
                         java.lang.String encoding,
                         java.io.InputStream serializedObject)
                  throws ObjectIntegrityException,
                         StreamIOException,
                         UnsupportedTranslationException,
                         ServerException
Throws:
ObjectIntegrityException
StreamIOException
UnsupportedTranslationException
ServerException

SimpleBMechReader

public SimpleBMechReader(Context context,
                         RepositoryReader repoReader,
                         DOTranslator translator,
                         java.lang.String exportFormat,
                         java.lang.String encoding,
                         DigitalObject obj)
Alternate constructor for when a DigitalObject is already available for some reason.

Method Detail

getServiceMethods

public MethodDef[] getServiceMethods(java.util.Date versDateTime)
                              throws DatastreamNotFoundException,
                                     ObjectIntegrityException,
                                     RepositoryConfigurationException,
                                     GeneralException
Specified by:
getServiceMethods in interface BMechReader
Throws:
DatastreamNotFoundException
ObjectIntegrityException
RepositoryConfigurationException
GeneralException

getServiceMethodParms

public MethodParmDef[] getServiceMethodParms(java.lang.String methodName,
                                             java.util.Date versDateTime)
                                      throws MethodNotFoundException,
                                             ServerException
Specified by:
getServiceMethodParms in interface BMechReader
Throws:
MethodNotFoundException
ServerException

getServiceMethodBindings

public MethodDefOperationBind[] getServiceMethodBindings(java.util.Date versDateTime)
                                                  throws DatastreamNotFoundException,
                                                         ObjectIntegrityException,
                                                         RepositoryConfigurationException,
                                                         GeneralException
Specified by:
getServiceMethodBindings in interface BMechReader
Throws:
DatastreamNotFoundException
ObjectIntegrityException
RepositoryConfigurationException
GeneralException

getServiceDSInputSpec

public BMechDSBindSpec getServiceDSInputSpec(java.util.Date versDateTime)
                                      throws DatastreamNotFoundException,
                                             ObjectIntegrityException,
                                             RepositoryConfigurationException,
                                             GeneralException
Specified by:
getServiceDSInputSpec in interface BMechReader
Throws:
DatastreamNotFoundException
ObjectIntegrityException
RepositoryConfigurationException
GeneralException

getServiceMethodsXML

public java.io.InputStream getServiceMethodsXML(java.util.Date versDateTime)
                                         throws DatastreamNotFoundException,
                                                ObjectIntegrityException
Specified by:
getServiceMethodsXML in interface BMechReader
Throws:
DatastreamNotFoundException
ObjectIntegrityException