public class TWriterService extends Object
| Constructor and Description |
|---|
TWriterService() |
| Modifier and Type | Method and Description |
|---|---|
org.gcube.data.tm.stubs.AnyHolder |
add(org.gcube.data.tm.stubs.AnyHolder tree)
Adds a
Tree to the bound source. |
String |
addRS(String locator)
Adds many
Trees to the bound source. |
TWriterResource |
resource()
Returns the state of the service.
|
org.gcube.data.tm.stubs.AnyHolder |
update(org.gcube.data.tm.stubs.AnyHolder delta)
Updates a
Tree in the bound source. |
String |
updateRS(String locator)
Updates
Trees in the bound source. |
public TWriterResource resource() throws Exception
org.gcube.common.core.faults.GCUBEFault - if the operation fails for an unexpected errorExceptionpublic org.gcube.data.tm.stubs.AnyHolder add(org.gcube.data.tm.stubs.AnyHolder tree)
throws org.gcube.data.tm.stubs.UnsupportedOperationFault,
org.gcube.data.tm.stubs.UnsupportedRequestFault,
org.gcube.data.tm.stubs.InvalidTreeFault,
org.gcube.common.core.faults.GCUBEFault
Tree to the bound source.tree - an AnyHolder with the DOM representation of the treeAnyHolder with the DOM representation of the added tree, possibly annotated with metadata
added at the time of addition.org.gcube.data.tm.stubs.UnsupportedOperationFault - if the data source does not support this operationorg.gcube.data.tm.stubs.UnsupportedRequestFault - if the target plugin does not support this particular requestInvalidDocumentFault - if the tree is invalidorg.gcube.common.core.faults.GCUBEFault - if the operation fails for an unexpected errororg.gcube.data.tm.stubs.InvalidTreeFaultpublic String addRS(String locator) throws org.gcube.data.tm.stubs.UnsupportedOperationFault, org.gcube.data.tm.stubs.UnsupportedRequestFault, org.gcube.common.core.faults.GCUBEFault
Trees to the bound source.locator - a locator to a remote Result Set with the treesAddOutcomes.org.gcube.data.tm.stubs.UnsupportedOperationFault - if the data source does not support this operationorg.gcube.data.tm.stubs.UnsupportedRequestFault - if the target plugin does not support this particular requestorg.gcube.common.core.faults.GCUBEFault - if the operation fails for an unexpected errorpublic org.gcube.data.tm.stubs.AnyHolder update(org.gcube.data.tm.stubs.AnyHolder delta)
throws org.gcube.data.tm.stubs.UnsupportedOperationFault,
org.gcube.data.tm.stubs.UnsupportedRequestFault,
org.gcube.data.tm.stubs.UnknownTreeFault,
org.gcube.data.tm.stubs.InvalidTreeFault,
org.gcube.common.core.faults.GCUBEFault
Tree in the bound source.delta - an AnyHolder with the DOM representation of the delta tree that captures the changes to the
treeAnyHolder with the DOM representation of the updated tree, possibly annotated with metadata
added at the time of update.org.gcube.data.tm.stubs.UnsupportedOperationFault - if the data source does not support this operationorg.gcube.data.tm.stubs.UnsupportedRequestFault - if the target plugin does not support this particular requestorg.gcube.data.tm.stubs.UnknownTreeFault - if the tree does not exist in the bound sourceInvalidDocumentFault - if the tree is invalidorg.gcube.common.core.faults.GCUBEFault - if the operation fails for an unexpected errororg.gcube.data.tm.stubs.InvalidTreeFaultpublic String updateRS(String locator) throws org.gcube.data.tm.stubs.UnsupportedOperationFault, org.gcube.data.tm.stubs.UnsupportedRequestFault, org.gcube.common.core.faults.GCUBEFault
Trees in the bound source.locator - a locator to a remote Result Set with the treesUpdateFailuresorg.gcube.data.tm.stubs.UnsupportedOperationFault - if the data source does not support this operationorg.gcube.data.tm.stubs.UnsupportedRequestFault - if the target plugin does not support this particular requestorg.gcube.common.core.faults.GCUBEFault - if the operation fails for an unexpected errorCopyright © 2014. All Rights Reserved.