org.fcrepo.server.storage
Class SimpleServiceDeploymentReader

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

public class SimpleServiceDeploymentReader
extends SimpleServiceAwareReader
implements ServiceDeploymentReader

A ServiceDeploymentReader based on a DigitalObject.

Author:
Chris Wilper

Field Summary
 
Fields inherited from class org.fcrepo.server.storage.SimpleDOReader
m_obj
 
Constructor Summary
SimpleServiceDeploymentReader(Context context, RepositoryReader repoReader, DOTranslator translator, String exportFormat, String encoding, DigitalObject obj)
          Alternate constructor for when a DigitalObject is already available for some reason.
SimpleServiceDeploymentReader(Context context, RepositoryReader repoReader, DOTranslator translator, String exportFormat, String storageFormat, String encoding, InputStream serializedObject)
           
 
Method Summary
 DeploymentDSBindSpec getServiceDSInputSpec(Date versDateTime)
           
 MethodDefOperationBind[] getServiceMethodBindings(Date versDateTime)
           
 MethodParmDef[] getServiceMethodParms(String methodName, Date versDateTime)
           
 MethodDef[] getServiceMethods(Date versDateTime)
           
 InputStream getServiceMethodsXML(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

SimpleServiceDeploymentReader

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

SimpleServiceDeploymentReader

public SimpleServiceDeploymentReader(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

getServiceMethods

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

getServiceMethodParms

public MethodParmDef[] getServiceMethodParms(String methodName,
                                             Date versDateTime)
                                      throws MethodNotFoundException,
                                             ServerException
Specified by:
getServiceMethodParms in interface ServiceDeploymentReader
Throws:
MethodNotFoundException
ServerException

getServiceMethodBindings

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

getServiceDSInputSpec

public DeploymentDSBindSpec getServiceDSInputSpec(Date versDateTime)
                                           throws DatastreamNotFoundException,
                                                  ObjectIntegrityException,
                                                  RepositoryConfigurationException,
                                                  GeneralException
Specified by:
getServiceDSInputSpec in interface ServiceDeploymentReader
Throws:
DatastreamNotFoundException
ObjectIntegrityException
RepositoryConfigurationException
GeneralException

getServiceMethodsXML

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


Copyright © 2012 DuraSpace. All Rights Reserved.