org.gcube.informationsystem.publisher
Class RegistryPublisherImpl
java.lang.Object
org.gcube.informationsystem.publisher.RegistryPublisherImpl
- All Implemented Interfaces:
- RegistryPublisher
public class RegistryPublisherImpl
- extends Object
- implements RegistryPublisher
|
Method Summary |
<T extends org.gcube.common.resources.gcore.Resource>
T |
|
create(T resource)
|
void |
remove(String id,
org.gcube.common.resources.gcore.Resource.Type type)
|
<T extends org.gcube.common.resources.gcore.Resource>
T |
|
remove(T resource)
|
<T extends org.gcube.common.resources.gcore.Resource>
T |
|
update(T resource)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RegistryPublisherImpl
protected RegistryPublisherImpl()
create
public <T extends org.gcube.common.resources.gcore.Resource> T create(T resource)
- Specified by:
create in interface RegistryPublisher
- Throws:
RegistryNotFoundException - if no service endpoints can be discovered
InvalidResourceExceptionwhen - the resource type is invalid service.
ResourceNotAcceptedException - when the resource is not accepted cause it doesn't satisfy a requirement
CreateException - when something is failed on creation
update
public <T extends org.gcube.common.resources.gcore.Resource> T update(T resource)
- Specified by:
update in interface RegistryPublisher
- Throws:
RegistryNotFoundException - if no service endpoints can be discovered
InvalidResourceExceptionwhen - the resource type is invalid service.
ResourceNotAcceptedException - when the resource is not accepted cause it doesn't satisfy a requirement
CreateException - when something is failed on creation
remove
public void remove(String id,
org.gcube.common.resources.gcore.Resource.Type type)
- Specified by:
remove in interface RegistryPublisher
- Throws:
RegistryNotFoundException - if no service endpoints can be discovered
ResourceDoesNotExistException - when the resource does not exist in the collector
RemoveException - when something is failed on remove
remove
public <T extends org.gcube.common.resources.gcore.Resource> T remove(T resource)
- Specified by:
remove in interface RegistryPublisher
- Throws:
RegistryNotFoundException - if no service endpoints can be discovered
ResourceDoesNotExistException - when the resource does not exist in the collector
RemoveException - when something is failed on remove
Copyright © 2013. All Rights Reserved.