|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.data.oai.tmplugin.repository.BaseRepository
public class BaseRepository
Default Repository implementation
| Constructor Summary | |
|---|---|
BaseRepository(Request request)
|
|
| Method Summary | |
|---|---|
String |
description()
Returns the description of the repository. |
org.gcube.data.trees.data.Tree |
get(String id,
List<Set> sets)
Retrieves a Tree with a given identifier from one of a number of
sets in the repository. |
org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> |
getAllIn(List<Set> sets)
Retrieves all trees in a number of sets of the repository. |
List<Set> |
getSetsWith(List<String> setIds)
Retrieve sets of the repository with given identifiers |
String |
metadataFormat()
|
String |
name()
Returns the name of the repository. |
Summary |
summary(List<Set> sets)
Returns a Summary of a number of sets of the repository. |
String |
url()
Returns the URL of the repository. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BaseRepository(Request request)
throws Exception
Exception| Method Detail |
|---|
public String url()
url in interface Repositorypublic String metadataFormat()
public String name()
name in interface Repositorypublic String description()
description in interface Repository
public org.gcube.data.trees.data.Tree get(String id,
List<Set> sets)
throws org.gcube.data.tmf.api.exceptions.UnknownTreeException,
Exception
Tree with a given identifier from one of a number of
sets in the repository.
get in interface Repositoryid - the identifiersets - the sets
org.gcube.data.tmf.api.exceptions.UnknownTreeException - if there is no tree in the sets with the given identifier
Exception - if the operation fails for any other errorpublic org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> getAllIn(List<Set> sets)
getAllIn in interface Repositorysets - the sets
public Summary summary(List<Set> sets)
throws Exception
Summary of a number of sets of the repository.
summary in interface Repositorysets - the sets
Exception - if the summary cannot be returnedpublic List<Set> getSetsWith(List<String> setIds)
getSetsWith in interface RepositorysetIds - the identifiers
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||