org.gcube.informationsystem.publisher.stubs.registry
Interface RegistryStub
public interface RegistryStub
A local interface to the resource discovery service.
create
void create(String profile,
String type)
throws InvalidResourceException,
ResourceNotAcceptedException,
CreateException
- Parameters:
profile - the profile in xmltype - the type of the resource to store
- Throws:
InvalidResourceException - if the profile is not valid
ResourceNotAcceptedException - if some filter is applied registry side
CreateException - if something goes wrong on creation
update
void update(String id,
String type,
String profile)
throws InvalidResourceException,
ResourceNotAcceptedException,
UpdateException
- Parameters:
id - the id of the resource to updatetype - the type of the resource to updateprofile - the profile in xml
- Throws:
InvalidResourceException - if the profile is not valid
ResourceNotAcceptedException - if some filter is applied registry side
UpdateException - if something goes wrong on update
remove
void remove(String id,
String type)
throws ResourceDoesNotExistException,
RemoveException
- Parameters:
id - the id of the resource to removetype - the type of the resource to remove
- Throws:
ResourceDoesNotExistException - if the resource is not stored on the Collector
RemoveException - if something goes wrong during deletion
Copyright © 2012. All Rights Reserved.