|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gcube.contentmanagement.contentmanager.state.CollectionManager
org.gcube.contentmanagement.contentmanager.state.ReadManager
public class ReadManager
CollectionResource manager for read-only operations.
Constructor Summary | |
---|---|
ReadManager()
|
Method Summary | |
---|---|
java.net.URI |
get(Predicate projection)
Returns all the gDoc documents, requesting the application of a projection over each of them. |
GDoc |
get(java.lang.String id,
Predicate projection)
Returns a gDoc document from its identifier,
requesting the preliminary application of a filter and a projection over it. |
java.net.URI |
get(java.net.URI locator,
Predicate projection)
Returns zero or more gDoc documents from their identifiers,
requesting the preliminary application of a filter and a projection over each of them. |
Node |
getNode(java.lang.String... path)
Returns a gDoc document node from the path of identifiers which connects it to the root. |
java.net.URI |
getNodes(java.net.URI paths)
Returns the document nodes identified by corresponding Path s into documents of the target collection. |
java.lang.String |
getType()
Returns the type of the resource. |
Methods inherited from class org.gcube.contentmanagement.contentmanager.state.CollectionManager |
---|
getCardinality, getCollectionID, getLastUpdate, getPlugin, onEvent |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReadManager()
Method Detail |
---|
public java.lang.String getType()
getType
in class CollectionManager
public GDoc get(java.lang.String id, Predicate projection) throws UnknownDocumentException, java.lang.Exception, GCUBEException
gDoc
document from its identifier,
requesting the preliminary application of a filter and a projection over it.
id
- the identifier.projection
- the projection predicate.filter
- the filter predicate.
UnknownDocumentException
- if the document is unknown.
java.lang.Exception
- if the document could not be returned for a local error.
GCUBEException
- if the document could not be returned for a remote error.public java.net.URI get(java.net.URI locator, Predicate projection) throws java.lang.Exception, GCUBEException
gDoc
documents from their identifiers,
requesting the preliminary application of a filter and a projection over each of them.
a
- locator to a resultset of document identifiers.projection
- the projection predicate.filter
- the filter predicate.
java.lang.Exception
- if the locator to the remote resultset could not be returned for a local error.
GCUBEException
- if the locator to the remote resultset could not be returned for a remote error.public java.net.URI get(Predicate projection) throws java.lang.Exception, GCUBEException
gDoc
documents, requesting the application of a projection over each of them.
projection
- the projection predicate.
java.lang.Exception
- if the locator to the remote resultset could not be returned for a local error.
GCUBEException
- if the locator to the remote resultset could not be returned for a remote error.public Node getNode(java.lang.String... path) throws UnknownPathException, java.lang.Exception
gDoc
document node from the path of identifiers which connects it to the root.
path
- the identifiers that form of the path.
UnknownPathException
- if the path does not lead to a document node.
java.lang.Exception
- if the document node could not be returned.public java.net.URI getNodes(java.net.URI paths) throws java.lang.Exception, GCUBEException
Path
s into documents of the target collection.
a
- locator to a ResultSet of paths.
GCUBEException
- if the document nodes could not be returned for a generic remote error.
java.lang.Exception
- if the document nodes could not be returned for a generic local error.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |