org.fcrepo.server.storage
Class SimpleServiceDefinitionReader

java.lang.Object
  extended by org.fcrepo.server.storage.SimpleDOReader
      extended by org.fcrepo.server.storage.SimpleServiceAwareReader
          extended by org.fcrepo.server.storage.SimpleServiceDefinitionReader
All Implemented Interfaces:
DOReader, ServiceDefinitionReader

public class SimpleServiceDefinitionReader
extends SimpleServiceAwareReader
implements ServiceDefinitionReader

A Service Definition Reader based on a DigitalObject.

Author:
Chris Wilper

Field Summary
 
Fields inherited from class org.fcrepo.server.storage.SimpleDOReader
m_obj
 
Constructor Summary
SimpleServiceDefinitionReader(Context context, RepositoryReader repoReader, DOTranslator translator, String exportFormat, String encoding, DigitalObject obj)
          Alternate constructor for when a DigitalObject is already available for some reason.
SimpleServiceDefinitionReader(Context context, RepositoryReader repoReader, DOTranslator translator, String exportFormat, String storageFormat, String encoding, InputStream serializedObject)
           
 
Method Summary
 MethodDef[] getAbstractMethods(Date versDateTime)
           
 InputStream getAbstractMethodsXML(Date versDateTime)
           
 
Methods inherited from class org.fcrepo.server.storage.SimpleServiceAwareReader
getDSInputSpecDatastream, getMethodMapDatastream, getWSDLDatastream
 
Methods inherited from class org.fcrepo.server.storage.SimpleDOReader
Export, ExportObject, getAuditRecords, getContentModels, getCreateDate, GetDatastream, getDatastream, GetDatastreams, getDatastreamVersions, getLastModDate, getObject, getObjectHistory, GetObjectLabel, GetObjectPID, GetObjectState, GetObjectXML, getOwnerId, getRelationships, getRelationships, getRelationships, getWhenString, hasContentModel, hasRelationship, hasRelationship, ListDatastreamIDs, listMethods
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.fcrepo.server.storage.DOReader
Export, ExportObject, getAuditRecords, getContentModels, getCreateDate, GetDatastream, getDatastream, GetDatastreams, getDatastreamVersions, getLastModDate, getObject, getObjectHistory, GetObjectLabel, GetObjectPID, GetObjectState, GetObjectXML, getOwnerId, getRelationships, getRelationships, getRelationships, hasContentModel, hasRelationship, hasRelationship, ListDatastreamIDs, listMethods
 

Constructor Detail

SimpleServiceDefinitionReader

public SimpleServiceDefinitionReader(Context context,
                                     RepositoryReader repoReader,
                                     DOTranslator translator,
                                     String exportFormat,
                                     String storageFormat,
                                     String encoding,
                                     InputStream serializedObject)
                              throws ObjectIntegrityException,
                                     StreamIOException,
                                     UnsupportedTranslationException,
                                     ServerException
Throws:
ObjectIntegrityException
StreamIOException
UnsupportedTranslationException
ServerException

SimpleServiceDefinitionReader

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

Method Detail

getAbstractMethods

public MethodDef[] getAbstractMethods(Date versDateTime)
                               throws DatastreamNotFoundException,
                                      ObjectIntegrityException,
                                      RepositoryConfigurationException,
                                      GeneralException
Specified by:
getAbstractMethods in interface ServiceDefinitionReader
Throws:
DatastreamNotFoundException
ObjectIntegrityException
RepositoryConfigurationException
GeneralException

getAbstractMethodsXML

public InputStream getAbstractMethodsXML(Date versDateTime)
                                  throws DatastreamNotFoundException,
                                         ObjectIntegrityException
Specified by:
getAbstractMethodsXML in interface ServiceDefinitionReader
Throws:
DatastreamNotFoundException
ObjectIntegrityException


Copyright © 2012 DuraSpace. All Rights Reserved.