public interface ScopedPublisher
| Modifier and Type | Method and Description |
|---|---|
<T extends org.gcube.common.resources.gcore.Resource> |
create(T resource,
List<String> scopes)
The resource is created in all the scopes in the list and the resource is updated in all the other scopes that are presents in the resource
|
<T extends org.gcube.common.resources.gcore.Resource> |
remove(T resource,
List<String> scopes)
Remove a resource from all the scopes in the input list, if and only if all the scopes are defined in the resource
|
<T extends org.gcube.common.resources.gcore.Resource> |
update(T resource)
The resource will be updated on all scopes that are defined in the resource.
|
<T extends org.gcube.common.resources.gcore.Resource> T create(T resource,
List<String> scopes)
throws RegistryNotFoundException
IllegalStateException - if the current scope is incompatible with the scope defined in the resourceIllegalArgumentException - if there are problems to contact the Registry service or the resource is not a valid resourceRegistryNotFoundException<T extends org.gcube.common.resources.gcore.Resource> T update(T resource)
throws RegistryNotFoundException
IllegalStateException - if the current scope is not defined in the resource.IllegalArgumentException - if there are problems with the registry service or the resource is not a valid resourceRegistryNotFoundException<T extends org.gcube.common.resources.gcore.Resource> T remove(T resource,
List<String> scopes)
throws RegistryNotFoundException
IllegalArgumentException - if one or more scopes in the list are not defined in the resourceRegistryNotFoundExceptionCopyright © 2019. All Rights Reserved.