org.gcube.common.core.informationsystem.publisher
Interface ISGenericPublisher


public interface ISGenericPublisher

Generic publisher for ISResource

Author:
Manuele Simi (ISTI-CNR)

Method Summary
 void register(ISResource resource, GCUBEScope scope)
          Registers the resource in the IS
 void register(List<ISResource> resources, GCUBEScope scope)
          Registers a list of resources in the IS
 void remove(ISResource resource, GCUBEScope scope)
          Removes the resource from the IS
 void remove(List<ISResource> resources, GCUBEScope scope)
          Removes a list of resources from the IS
 void update(ISResource resource, GCUBEScope scope)
          Updates the resource in the IS
 void update(List<ISResource> resources, GCUBEScope scope)
          Updates a list of resources in the IS
 

Method Detail

register

void register(ISResource resource,
              GCUBEScope scope)
              throws ISPublisherException
Registers the resource in the IS

Parameters:
resource - the resource to register
scope - the scope in which to perform the operation
Throws:
ISPublisherException - if the registration fails

register

void register(List<ISResource> resources,
              GCUBEScope scope)
              throws ISPublisherException
Registers a list of resources in the IS

Parameters:
resources - the resources to register
scope - the scope in which to perform the operation
Throws:
ISPublisherException - if the registration fails

update

void update(ISResource resource,
            GCUBEScope scope)
            throws ISPublisherException
Updates the resource in the IS

Parameters:
resource - the resource to update
scope - the scope in which to perform the operation
Throws:
ISPublisherException - if the update fails

update

void update(List<ISResource> resources,
            GCUBEScope scope)
            throws ISPublisherException
Updates a list of resources in the IS

Parameters:
resources - the resources to update
scope - the scope in which to perform the operation
Throws:
ISPublisherException - if the update fails

remove

void remove(ISResource resource,
            GCUBEScope scope)
            throws ISPublisherException
Removes the resource from the IS

Parameters:
resource - the resource to remove
scope - the scope in which to perform the operation
Throws:
ISPublisherException - if the remove fails

remove

void remove(List<ISResource> resources,
            GCUBEScope scope)
            throws ISPublisherException
Removes a list of resources from the IS

Parameters:
resources - the resources to remove
scope - the scope in which to perform the operation
Throws:
ISPublisherException - if the remove fails


Copyright © 2012. All Rights Reserved.