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


public interface ISPublisher

Defines the local interface to feed an Information System in a gCube infrastructure.
An implementation of the ISPublisher is in charge of feeding the Information System with the provided GCUBEWSResource and the service's states (GCUBEWSResource)

Author:
Andrea Manzi, Manuele Simi(ISTI-CNR)

Method Summary
 String registerGCUBEResource(GCUBEResource resource, GCUBEScope scope, GCUBESecurityManager manager)
          Registers a GCUBEResource on the Information System
 void registerWSResource(GCUBEWSResource resource, GCUBEScope... scope)
          Publishes GCUBEWSResource registration on a Information System.
 void removeGCUBEResource(String ID, String type, GCUBEScope scope, GCUBESecurityManager manager)
          Removes a GCUBEResource from the Information System
 void removeWSResource(GCUBEWSResource resource, GCUBEScope... scope)
          Unpublishes the registration of a GCUBEWSResource form the Information System
 void updateGCUBEResource(GCUBEResource resource, GCUBEScope scope, GCUBESecurityManager manager)
          Updates a GCUBEResource in the Information System
 void updateWSResource(GCUBEWSResource resource, GCUBEScope... scope)
          Updates GCUBEWSResource registration on a Information System.
 

Method Detail

registerWSResource

void registerWSResource(GCUBEWSResource resource,
                        GCUBEScope... scope)
                        throws ISPublisherException
Publishes GCUBEWSResource registration on a Information System.

Parameters:
resource - the GCUBEWSResource to register
scope - optional GCUBEScope (overrides the scope specified by the GCUBEWSResource)
Throws:
ISPublisherException - Exception

updateWSResource

void updateWSResource(GCUBEWSResource resource,
                      GCUBEScope... scope)
                      throws ISPublisherException
Updates GCUBEWSResource registration on a Information System.

Parameters:
resource - the GCUBEWSResource to register
scope - optional GCUBEScope (overrides the scope specified by the GCUBEWSResource)
Throws:
ISPublisherException - Exception

removeWSResource

void removeWSResource(GCUBEWSResource resource,
                      GCUBEScope... scope)
                      throws ISPublisherException
Unpublishes the registration of a GCUBEWSResource form the Information System

Parameters:
resource - the GCUBEWSResource to unregister
scope - (optional) GCUBEScope (overrides the scope specified by the GCUBEWSResource)
Throws:
ISPublisherException - Exception

registerGCUBEResource

String registerGCUBEResource(GCUBEResource resource,
                             GCUBEScope scope,
                             GCUBESecurityManager manager)
                             throws ISPublisherException
Registers a GCUBEResource on the Information System

Parameters:
resource - the GCUBEResource to register
scope - the GCUBEScope in which to register the resource
manager - the GCUBESecurityManager for contacting the IS
Throws:
ISPublisherException - Exception

removeGCUBEResource

void removeGCUBEResource(String ID,
                         String type,
                         GCUBEScope scope,
                         GCUBESecurityManager manager)
                         throws ISPublisherException
Removes a GCUBEResource from the Information System

Parameters:
ID - the ID related to the GCUBEResource to remove
type - the GCUBEResource type to remove
scope - the registration GCUBEScope
manager - the GCUBESecurityManager for contacting the IS
Throws:
ISPublisherException - Exception

updateGCUBEResource

void updateGCUBEResource(GCUBEResource resource,
                         GCUBEScope scope,
                         GCUBESecurityManager manager)
                         throws ISPublisherException
Updates a GCUBEResource in the Information System

Parameters:
resource - the new GCUBEResource to update
manager - the GCUBESecurityManager for contacting the IS
Throws:
ISPublisherException - Exception


Copyright © 2012. All Rights Reserved.