org.gcube.informationsystem.publisher.stubs.registry
Interface RegistryStub


public interface RegistryStub

A local interface to the resource discovery service.


Method Summary
 void create(String profile, String type)
           
 void remove(String id, String type)
           
 void update(String id, String type, String profile)
           
 

Method Detail

create

void create(String profile,
            String type)
            throws InvalidResourceException,
                   ResourceNotAcceptedException,
                   CreateException
Parameters:
profile - the profile in xml
type - 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 update
type - the type of the resource to update
profile - 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 remove
type - 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.