public class ResourceRegistryPublisherImpl extends Object implements ResourceRegistryPublisher
| Modifier and Type | Field and Description |
|---|---|
protected String |
address |
protected org.gcube.informationsystem.resourceregistry.api.rest.httputils.HTTPCall |
httpCall |
static String |
PATH_SEPARATOR |
| Constructor and Description |
|---|
ResourceRegistryPublisherImpl(String address) |
| Modifier and Type | Method and Description |
|---|---|
<F extends org.gcube.informationsystem.model.entity.Facet> |
addFacetToContext(F facet) |
boolean |
addFacetToContext(UUID uuid) |
<R extends org.gcube.informationsystem.model.entity.Resource> |
addResourceToContext(R resource) |
boolean |
addResourceToContext(UUID uuid) |
<C extends org.gcube.informationsystem.model.relation.ConsistsOf<? extends org.gcube.informationsystem.model.entity.Resource,? extends org.gcube.informationsystem.model.entity.Facet>> |
createConsistsOf(Class<C> consistsOfClass,
C consistsOf) |
<F extends org.gcube.informationsystem.model.entity.Facet> |
createFacet(Class<F> facetClass,
F facet) |
<I extends org.gcube.informationsystem.model.relation.IsRelatedTo<? extends org.gcube.informationsystem.model.entity.Resource,? extends org.gcube.informationsystem.model.entity.Resource>> |
createIsRelatedTo(Class<I> isRelatedToClass,
I isRelatedTo) |
<R extends org.gcube.informationsystem.model.entity.Resource> |
createResource(Class<R> resourceClass,
R resource) |
<C extends org.gcube.informationsystem.model.relation.ConsistsOf<? extends org.gcube.informationsystem.model.entity.Resource,? extends org.gcube.informationsystem.model.entity.Facet>> |
deleteConsistsOf(C consistsOf) |
boolean |
deleteConsistsOf(UUID uuid) |
<F extends org.gcube.informationsystem.model.entity.Facet> |
deleteFacet(F facet) |
boolean |
deleteFacet(UUID uuid) |
<I extends org.gcube.informationsystem.model.relation.IsRelatedTo<? extends org.gcube.informationsystem.model.entity.Resource,? extends org.gcube.informationsystem.model.entity.Resource>> |
deleteIsRelatedTo(I isRelatedTo) |
boolean |
deleteIsRelatedTo(UUID uuid) |
<R extends org.gcube.informationsystem.model.entity.Resource> |
deleteResource(R resource) |
boolean |
deleteResource(UUID uuid) |
protected org.gcube.informationsystem.resourceregistry.api.rest.httputils.HTTPCall |
getHTTPCall() |
<F extends org.gcube.informationsystem.model.entity.Facet> |
removeFacetFromContext(F facet) |
boolean |
removeFacetFromContext(UUID uuid) |
<R extends org.gcube.informationsystem.model.entity.Resource> |
removeResourceFromContext(R resource) |
boolean |
removeResourceFromContext(UUID uuid) |
<F extends org.gcube.informationsystem.model.entity.Facet> |
updateFacet(Class<F> facetClass,
F facet) |
<R extends org.gcube.informationsystem.model.entity.Resource> |
updateResource(Class<R> resourceClass,
R resource) |
public static final String PATH_SEPARATOR
protected final String address
protected org.gcube.informationsystem.resourceregistry.api.rest.httputils.HTTPCall httpCall
public ResourceRegistryPublisherImpl(String address)
protected org.gcube.informationsystem.resourceregistry.api.rest.httputils.HTTPCall getHTTPCall()
throws MalformedURLException
MalformedURLExceptionpublic <F extends org.gcube.informationsystem.model.entity.Facet> F createFacet(Class<F> facetClass, F facet) throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.facet.FacetAlreadyPresentException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
createFacet in interface ResourceRegistryPublisherorg.gcube.informationsystem.resourceregistry.api.exceptions.entity.facet.FacetAlreadyPresentExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic <F extends org.gcube.informationsystem.model.entity.Facet> F updateFacet(Class<F> facetClass, F facet) throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.facet.FacetNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
updateFacet in interface ResourceRegistryPublisherorg.gcube.informationsystem.resourceregistry.api.exceptions.entity.facet.FacetNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic <F extends org.gcube.informationsystem.model.entity.Facet> boolean deleteFacet(F facet)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.facet.FacetNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
deleteFacet in interface ResourceRegistryPublisherorg.gcube.informationsystem.resourceregistry.api.exceptions.entity.facet.FacetNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic boolean deleteFacet(UUID uuid) throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.facet.FacetNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
deleteFacet in interface ResourceRegistryPublisherorg.gcube.informationsystem.resourceregistry.api.exceptions.entity.facet.FacetNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic <R extends org.gcube.informationsystem.model.entity.Resource> R createResource(Class<R> resourceClass, R resource) throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource.ResourceAlreadyPresentException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
createResource in interface ResourceRegistryPublisherorg.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource.ResourceAlreadyPresentExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic <R extends org.gcube.informationsystem.model.entity.Resource> R updateResource(Class<R> resourceClass, R resource) throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource.ResourceNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
updateResource in interface ResourceRegistryPublisherorg.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource.ResourceNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic <R extends org.gcube.informationsystem.model.entity.Resource> boolean deleteResource(R resource)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource.ResourceNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
deleteResource in interface ResourceRegistryPublisherorg.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource.ResourceNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic boolean deleteResource(UUID uuid) throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource.ResourceNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
deleteResource in interface ResourceRegistryPublisherorg.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource.ResourceNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic <C extends org.gcube.informationsystem.model.relation.ConsistsOf<? extends org.gcube.informationsystem.model.entity.Resource,? extends org.gcube.informationsystem.model.entity.Facet>> C createConsistsOf(Class<C> consistsOfClass, C consistsOf) throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.facet.FacetNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource.ResourceNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
createConsistsOf in interface ResourceRegistryPublisherorg.gcube.informationsystem.resourceregistry.api.exceptions.entity.facet.FacetNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource.ResourceNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic <C extends org.gcube.informationsystem.model.relation.ConsistsOf<? extends org.gcube.informationsystem.model.entity.Resource,? extends org.gcube.informationsystem.model.entity.Facet>> boolean deleteConsistsOf(C consistsOf)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
deleteConsistsOf in interface ResourceRegistryPublisherorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic boolean deleteConsistsOf(UUID uuid) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
deleteConsistsOf in interface ResourceRegistryPublisherorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic <I extends org.gcube.informationsystem.model.relation.IsRelatedTo<? extends org.gcube.informationsystem.model.entity.Resource,? extends org.gcube.informationsystem.model.entity.Resource>> I createIsRelatedTo(Class<I> isRelatedToClass, I isRelatedTo) throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource.ResourceNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
createIsRelatedTo in interface ResourceRegistryPublisherorg.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource.ResourceNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic <I extends org.gcube.informationsystem.model.relation.IsRelatedTo<? extends org.gcube.informationsystem.model.entity.Resource,? extends org.gcube.informationsystem.model.entity.Resource>> boolean deleteIsRelatedTo(I isRelatedTo)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
deleteIsRelatedTo in interface ResourceRegistryPublisherorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic boolean deleteIsRelatedTo(UUID uuid) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
deleteIsRelatedTo in interface ResourceRegistryPublisherorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic boolean addResourceToContext(UUID uuid) throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource.ResourceNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
addResourceToContext in interface ResourceRegistryPublisherorg.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource.ResourceNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic <R extends org.gcube.informationsystem.model.entity.Resource> boolean addResourceToContext(R resource)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource.ResourceNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
addResourceToContext in interface ResourceRegistryPublisherorg.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource.ResourceNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic boolean addFacetToContext(UUID uuid) throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.facet.FacetNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
addFacetToContext in interface ResourceRegistryPublisherorg.gcube.informationsystem.resourceregistry.api.exceptions.entity.facet.FacetNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic <F extends org.gcube.informationsystem.model.entity.Facet> boolean addFacetToContext(F facet)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.facet.FacetNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
addFacetToContext in interface ResourceRegistryPublisherorg.gcube.informationsystem.resourceregistry.api.exceptions.entity.facet.FacetNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic boolean removeResourceFromContext(UUID uuid) throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource.ResourceNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
removeResourceFromContext in interface ResourceRegistryPublisherorg.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource.ResourceNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic <R extends org.gcube.informationsystem.model.entity.Resource> boolean removeResourceFromContext(R resource)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource.ResourceNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
removeResourceFromContext in interface ResourceRegistryPublisherorg.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource.ResourceNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic boolean removeFacetFromContext(UUID uuid) throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.facet.FacetNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
removeFacetFromContext in interface ResourceRegistryPublisherorg.gcube.informationsystem.resourceregistry.api.exceptions.entity.facet.FacetNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic <F extends org.gcube.informationsystem.model.entity.Facet> boolean removeFacetFromContext(F facet)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.facet.FacetNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
removeFacetFromContext in interface ResourceRegistryPublisherorg.gcube.informationsystem.resourceregistry.api.exceptions.entity.facet.FacetNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionCopyright © 2017. All Rights Reserved.