public class RESTFedora3DataImpl extends Object implements Fedora3DataInterface
| Constructor and Description |
|---|
RESTFedora3DataImpl(String fedoraUrl,
String username,
String password)
Constructor with credentials necessary for a connection to fedora's REST
API.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
doesDatastreamExist(String pid,
String dsid)
Determines if an object with the given pid exists and has a datastream
with the given dsid.
|
boolean |
doesObjectExist(String pid)
Determines if an object with the given pid exists in the fedora 3
repository exposed through this interface.
|
FedoraDatastreamRecord |
getDatastream(String pid,
String dsid)
Gets information about a given datastream for a given pid.
|
FedoraObjectRecord |
getObjectByPid(String pid)
Gets a FedoraObjectRecord that encapsulates a summary of the object with
the given pid in the fedora 3 repository exposed through this interface.
|
List<String> |
getObjectPids(int offset,
int pageSize)
Gets a page of object pids that exist in the repository.
|
long |
getSize()
Gets the size (total number of objects) of the underlying fedora 3
repository.
|
public RESTFedora3DataImpl(String fedoraUrl, String username, String password) throws MalformedURLException, com.yourmediashelf.fedora.client.FedoraClientException
MalformedURLExceptioncom.yourmediashelf.fedora.client.FedoraClientExceptionpublic FedoraObjectRecord getObjectByPid(String pid)
getObjectByPid in interface Fedora3DataInterfacepublic boolean doesObjectExist(String pid)
doesObjectExist in interface Fedora3DataInterfacepublic List<String> getObjectPids(int offset, int pageSize)
select $object
from <#ri>
where $object <info:fedora/fedora-system:def/model#hasModel>
<info:fedora/fedora-system:FedoraObject-3.0>
order by $object
limit -pageSize-
offset -offset-
getObjectPids in interface Fedora3DataInterfacepublic long getSize()
select count(
select $object
from <#ri>
where $object <info:fedora/fedora-system:def/model#hasModel>
<info:fedora/fedora-system:FedoraObject-3.0>)
from <#ri>
where $a $b $c
getSize in interface Fedora3DataInterfacepublic FedoraDatastreamRecord getDatastream(String pid, String dsid)
getDatastream in interface Fedora3DataInterfacepublic boolean doesDatastreamExist(String pid, String dsid)
doesDatastreamExist in interface Fedora3DataInterfaceCopyright © 2013 DuraSpace, Inc.. All rights reserved.