org.fcrepo.client.utility.validate.remote
Class RemoteObjectSource

java.lang.Object
  extended by org.fcrepo.client.utility.validate.remote.RemoteObjectSource
All Implemented Interfaces:
ObjectSource

public class RemoteObjectSource
extends Object
implements ObjectSource

An ObjectSource that is based on a FedoraClient link to a remote server.

Author:
Jim Blake

Constructor Summary
RemoteObjectSource(ServiceInfo serviceInfo)
           
 
Method Summary
 Iterator<String> findObjectPids(FieldSearchQuery query)
          Get a series of PIDs, representing all digital objects in the repository that satisfy the specified query.
 ContentModelInfo getContentModelInfo(String pid)
          A content model must exist as an object.
 ObjectInfo getValidationObject(String pid)
          Get the object that has this PID, or null if there is no such object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteObjectSource

public RemoteObjectSource(ServiceInfo serviceInfo)
                   throws javax.xml.rpc.ServiceException,
                          IOException
Throws:
javax.xml.rpc.ServiceException
IOException
Method Detail

findObjectPids

public Iterator<String> findObjectPids(FieldSearchQuery query)
                                throws ObjectSourceException
Get a series of PIDs, representing all digital objects in the repository that satisfy the specified query.

Throws:
ObjectSourceException

getValidationObject

public ObjectInfo getValidationObject(String pid)
                               throws ObjectSourceException
Get the object that has this PID, or null if there is no such object.

Specified by:
getValidationObject in interface ObjectSource
Throws:
ObjectSourceException

getContentModelInfo

public ContentModelInfo getContentModelInfo(String pid)
                                     throws ObjectSourceException,
                                            InvalidContentModelException
A content model must exist as an object. If must have a (@link DS_COMPOSITE_MODEL} datastream.

Specified by:
getContentModelInfo in interface ObjectSource
Throws:
ObjectSourceException
InvalidContentModelException


Copyright © 2012 DuraSpace. All Rights Reserved.