|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DOWriter
Title: DOWriter.java
Description: The standard interface for write operations on a digital object.
A DOWriter instance is a handle on a Fedora digital object,
and is obtained via a getWriter(String) call on a
DOManager.
Call save() to save changes while working with a DOWriter, where the DOWriter handle may be lost but the changes need to be remembered.
Work with a DOWriter ends with either commit() or cancel().
| Method Summary | |
|---|---|
void |
addDatastream(Datastream datastream,
boolean addNewVersion)
Adds a datastream to the object. |
void |
addDisseminator(Disseminator disseminator)
Adds a disseminator to the object. |
void |
commit(java.lang.String logMessage)
Saves the changes thus far to the permanent copy of the digital object. |
void |
invalidate()
Marks this DOWriter handle invalid (unusable). |
boolean |
isCommitted()
Marks whether the object has been successfully committed. |
boolean |
isNew()
Marks whether the object is new. |
java.lang.String |
newAuditRecordID()
Generate a unique id for an audit record. |
java.lang.String |
newDatastreamBindingMapID()
Generate a unique id for a datastreamBindingMap. |
java.lang.String |
newDatastreamID()
Generate a unique id for a datastream. |
java.lang.String |
newDatastreamID(java.lang.String dsID)
Generate a unique id for a datastream version. |
java.lang.String |
newDisseminatorID()
Generate a unique id for a disseminator. |
java.lang.String |
newDisseminatorID(java.lang.String dissID)
Generate a unique id for a disseminator version. |
void |
remove()
Removes the entire digital object. |
java.util.Date[] |
removeDatastream(java.lang.String id,
java.util.Date start,
java.util.Date end)
Removes a range of datastream versions from an object without leaving anything behind. |
java.util.Date[] |
removeDisseminator(java.lang.String id,
java.util.Date start,
java.util.Date end)
Removes a range of disseminator versions from an object without leaving anything behind. |
void |
setDatastreamState(java.lang.String id,
java.lang.String state)
Sets the state for all versions of the specified datastream. |
void |
setDatastreamVersionable(java.lang.String id,
boolean versionable)
Sets the indicator as to whether the datastream is subject to versioning. |
void |
setDisseminatorState(java.lang.String id,
java.lang.String state)
Sets the state for all versions of the specified disseminator. |
void |
setLabel(java.lang.String label)
Sets the label of the digital object. |
void |
setOwnerId(java.lang.String ownerId)
Sets the ownerId for the digital object. |
void |
setState(java.lang.String state)
Sets the state of the entire digital object. |
| Methods inherited from interface fedora.server.storage.DOReader |
|---|
ExportObject, getAuditRecords, GetBehaviorDefs, getContentModelId, getCreateDate, GetDatastream, getDatastream, GetDatastreams, getDatastreamVersions, getDisseminationBindingInfo, GetDisseminator, GetDisseminators, getDisseminatorVersions, GetDSBindingMaps, getFedoraObjectType, getLastModDate, getObjectHistory, GetObjectLabel, getObjectMethodParms, GetObjectPID, GetObjectState, GetObjectXML, getOwnerId, ListDatastreamIDs, ListDisseminatorIDs, listMethods, listMethods |
| Method Detail |
|---|
void setState(java.lang.String state)
throws ServerException
state - The state.
ServerException - If any type of error occurred fulfilling the
request.
void setOwnerId(java.lang.String ownerId)
throws ServerException
ownerId - The ownerId.
ServerException - If any type of error occurred fulfilling the
request.
void setDatastreamState(java.lang.String id,
java.lang.String state)
throws ServerException
id - The datastream id.state - The state.
ServerException - If any type of error occurred fulfilling the
request.
void setDatastreamVersionable(java.lang.String id,
boolean versionable)
throws ServerException
id - The datastream id.versionable - a boolean indicating if versionable
ServerException - If any type of error occurred fulfilling the
request.
void setDisseminatorState(java.lang.String id,
java.lang.String state)
throws ServerException
id - The disseminator id.state - The state.
ServerException - If any type of error occurred fulfilling the
request.
void setLabel(java.lang.String label)
throws ServerException
label - The label.
ServerException - If any type of error occurred fulfilling the
request.
void remove()
throws ServerException
ServerException - If any type of error occurred fulfilling the
request.
void addDatastream(Datastream datastream,
boolean addNewVersion)
throws ServerException
datastream - The datastream.
ServerException - If any type of error occurred fulfilling the
request.
void addDisseminator(Disseminator disseminator)
throws ServerException
disseminator - The disseminator.
ServerException - If any type of error occurred fulfilling the
request.
java.util.Date[] removeDatastream(java.lang.String id,
java.util.Date start,
java.util.Date end)
throws ServerException
id - The id of the datastream.start - The start date (inclusive) of versions to remove. If
null, this is taken to be the smallest possible
value.end - The end date (inclusive) of versions to remove. If
null, this is taken to be the greatest possible
value.
ServerException - If any type of error occurred fulfilling the
request.
java.util.Date[] removeDisseminator(java.lang.String id,
java.util.Date start,
java.util.Date end)
throws ServerException
id - The id of the datastream.start - The start date (inclusive) of versions to remove. If
null, this is taken to be the smallest possible
value.end - The end date (inclusive) of versions to remove. If
null, this is taken to be the greatest possible
value.
ServerException - If any type of error occurred fulfilling the
request.
void commit(java.lang.String logMessage)
throws ServerException
logMessage - An explanation of the change(s).
ServerException - If any type of error occurred fulfilling the
request.void invalidate()
java.lang.String newDatastreamID()
java.lang.String newDatastreamID(java.lang.String dsID)
java.lang.String newDisseminatorID()
java.lang.String newDisseminatorID(java.lang.String dissID)
java.lang.String newDatastreamBindingMapID()
java.lang.String newAuditRecordID()
boolean isCommitted()
boolean isNew()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||