public interface RegistryPublisher
| Modifier and Type | Method and Description |
|---|---|
<T extends org.gcube.common.resources.gcore.Resource> |
create(T resource)
The resource is created in the current scope and it is updated in the other scopes that are presents in the resource.
|
<T extends org.gcube.common.resources.gcore.Resource> |
remove(T resource)
The resource will be removed from current scope.
|
<T extends org.gcube.common.resources.gcore.Resource> |
update(T resource)
The resource will be updated on all the scopes that are defined in the resource.
|
<T extends org.gcube.common.resources.gcore.Resource> T create(T resource)
IllegalStateException - if the current scope is incompatible with the scope defined in the resource or if the scope is already defined in the resourceIllegalArgumentException - if there are problems to contact the Registry service or the resource is not a valid resource<T extends org.gcube.common.resources.gcore.Resource> T update(T resource)
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 resource<T extends org.gcube.common.resources.gcore.Resource> T remove(T resource)
IllegalArgumentException - if the current scope is not defined in the resource or if there is another VRE scope defined in the resourceCopyright © 2014. All Rights Reserved.