public class RESTFedoraDatastreamRecordImpl extends Object implements FedoraDatastreamRecord
FedoraDatastreamRecord that gets all of its
information using the fedora 3 REST API.| Modifier | Constructor and Description |
|---|---|
protected |
RESTFedoraDatastreamRecordImpl(com.yourmediashelf.fedora.client.FedoraClient fc,
List<com.yourmediashelf.fedora.generated.management.DatastreamProfile> dsProfiles)
This part of object construction is only separated into a protected
constructor for unit testing as it allows mock DatastreamProfile
objects to be provided and used (which allows most calls to be tested
with a null FedoraClient.
|
|
RESTFedoraDatastreamRecordImpl(com.yourmediashelf.fedora.client.FedoraClient fc,
String pid,
String dsid)
A constructor that takes as a parameter the DatastreamType object that
was returned by the FedoraClient as its source for information about the
fedora 3 datastream to be described by this object.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getControlGroup()
Get the control group for the datastream described by this record.
|
FedoraDatastreamVersionRecord |
getCurrentVersion()
Gets the most recent version of the datastream.
|
List<FedoraDatastreamVersionRecord> |
getHistory()
Returns a non-null, non-empty list of FedoraDatastreamVersionRecord
objects representing the ordered history of this datastream from most
recent to oldest.
|
String |
getId()
Gets the DSID for the datastream described by this record.
|
String |
getPid()
Gets the pid of the object whose datastream is described by this record.
|
protected static byte[] |
getSha1BytesFromHexString(String hexStr)
Converts a String of hexidecimal digits (0-F) into the bytes that would
be expressed by such a String.
|
String |
getState()
Gets the state for the datastream described by this record.
|
boolean |
getVersionable()
Gets the 'versionable' value for the datastream described by this
record.
|
public RESTFedoraDatastreamRecordImpl(com.yourmediashelf.fedora.client.FedoraClient fc,
String pid,
String dsid)
throws com.yourmediashelf.fedora.client.FedoraClientException
com.yourmediashelf.fedora.client.FedoraClientExceptionprotected RESTFedoraDatastreamRecordImpl(com.yourmediashelf.fedora.client.FedoraClient fc,
List<com.yourmediashelf.fedora.generated.management.DatastreamProfile> dsProfiles)
public String getPid()
getPid in interface FedoraDatastreamRecordpublic String getId()
getId in interface FedoraDatastreamRecordpublic String getControlGroup()
getControlGroup in interface FedoraDatastreamRecordpublic String getState()
getState in interface FedoraDatastreamRecordpublic boolean getVersionable()
getVersionable in interface FedoraDatastreamRecordpublic List<FedoraDatastreamVersionRecord> getHistory()
getHistory in interface FedoraDatastreamRecordpublic FedoraDatastreamVersionRecord getCurrentVersion()
getCurrentVersion in interface FedoraDatastreamRecordprotected static byte[] getSha1BytesFromHexString(String hexStr)
Copyright © 2013 DuraSpace, Inc.. All rights reserved.