public class ScopedPublisherImpl extends Object implements ScopedPublisher
| Modifier | Constructor and Description |
|---|---|
protected |
ScopedPublisherImpl() |
protected |
ScopedPublisherImpl(RegistryPublisher rp) |
| 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.
|
protected ScopedPublisherImpl()
protected ScopedPublisherImpl(RegistryPublisher rp)
public <T extends org.gcube.common.resources.gcore.Resource> T create(T resource,
List<String> scopes)
throws RegistryNotFoundException
ScopedPublishercreate in interface ScopedPublisherRegistryNotFoundExceptionpublic <T extends org.gcube.common.resources.gcore.Resource> T update(T resource)
throws RegistryNotFoundException
ScopedPublisherupdate in interface ScopedPublisherRegistryNotFoundExceptionpublic <T extends org.gcube.common.resources.gcore.Resource> T remove(T resource,
List<String> scopes)
throws RegistryNotFoundException
ScopedPublisherremove in interface ScopedPublisherRegistryNotFoundExceptionCopyright © 2020. All Rights Reserved.