public class RegistryPublisherImpl extends Object implements RegistryPublisher
| Modifier | Constructor and Description |
|---|---|
protected |
RegistryPublisherImpl() |
| 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
if the scope is the last scope in the resource, the profile will be deleted from IS else
if it is a VRE scope then the profile will be updated without the VRE scope,
if it is a VO scope but there is another VRE scope, belong to the VO, defined in the resource then throw IllegalArgumentException
|
<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.
|
public <T extends org.gcube.common.resources.gcore.Resource> T create(T resource)
create in interface RegistryPublisherRegistryNotFoundException - if no service endpoints can be discoveredInvalidResourceExceptionwhen - the resource type is invalid service.ResourceNotAcceptedException - when the resource is not accepted cause it doesn't satisfy a requirementCreateException - when something is failed on creationpublic <T extends org.gcube.common.resources.gcore.Resource> T update(T resource)
update in interface RegistryPublisherRegistryNotFoundException - if no service endpoints can be discoveredInvalidResourceException - when the resource type is invalid service.ResourceNotAcceptedException - when the resource is not accepted cause it doesn't satisfy a requirementCreateException - when something is failed on creationpublic <T extends org.gcube.common.resources.gcore.Resource> T remove(T resource)
remove in interface RegistryPublisherIllegalArgumentException - if no service endpoints can be discovered or if there is another VRE scope defined in the resourceCopyright © 2020. All Rights Reserved.