|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.contentmanagement.contentmanager.plugin.delegates.ManagerDelegate
org.gcube.contentmanagement.contentmanager.plugin.delegates.WriteDelegate
public abstract class WriteDelegate
The delegate of a WriteManager.
| Constructor Summary | |
|---|---|
WriteDelegate()
|
|
| Method Summary | |
|---|---|
abstract java.lang.String |
add(GDoc doc)
Adds a gDoc document. |
RemoteIterator<AddOutcome> |
add(GDocRSIterator iterator)
Adds zero or more gDoc documents. |
abstract void |
update(GDoc doc)
Updates a gDoc document. |
RemoteIterator<UpdateFailure> |
update(GDocRSIterator iterator)
Updates a list of gDoc documents. |
| Methods inherited from class org.gcube.contentmanagement.contentmanager.plugin.delegates.ManagerDelegate |
|---|
getCollection, setCollection |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WriteDelegate()
| Method Detail |
|---|
public abstract java.lang.String add(GDoc doc)
throws InvalidDocumentException,
java.lang.Exception
gDoc document.
doc - the document.
InvalidDocumentException - if the document is invalid.
java.lang.Exception - if the document is valid but could not be added.
public RemoteIterator<AddOutcome> add(GDocRSIterator iterator)
throws java.lang.Exception
gDoc documents. It should be overridden in the plugin if the repository support a native bulk operation for add
iterator - an iterator over DOM representations of the documents.
AddOutcomes.
java.lang.Exception - if the iterator could not be returned.
public abstract void update(GDoc doc)
throws UnknownDocumentException,
InvalidDocumentException,
java.lang.Exception
gDoc document.
doc - the updated document.
UnknownDocumentException - if the document is unknown.
InvalidDocumentException - if the document is invalid.
java.lang.Exception - if the document is known and valid but could not be updated.
public RemoteIterator<UpdateFailure> update(GDocRSIterator iterator)
throws UnknownDocumentException,
InvalidDocumentException,
java.lang.Exception
gDoc documents. It should be overridden in the plugin if the repository support a native bulk operation for update
iterator - an iterator over the documents.
UpdateFailures.
UnknownDocumentException - if the document is unknown.
InvalidDocumentException - if the document is invalid.
java.lang.Exception - if the document is known and valid but could not be updated.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||