org.gcube.common.informationsystem.publisher.impl.resources
Class RegistryResourcePublisher

java.lang.Object
  extended by org.gcube.common.informationsystem.publisher.impl.resources.RegistryResourcePublisher

public final class RegistryResourcePublisher
extends Object

Allows registration/unregistration of GCUBEResource in the IS-Registry

Author:
Manuele Simi (ISTI-CNR)

Field Summary
protected  List<org.apache.axis.message.addressing.EndpointReferenceType> ICEprs
           
protected static org.gcube.common.core.utils.logging.GCUBELog logger
           
protected  ISRegistryClient registryClient
           
protected  org.gcube.informationsystem.registry.stubs.RegistryFactoryPortType registryFactoryPortType
           
 
Constructor Summary
RegistryResourcePublisher(org.gcube.common.core.scope.GCUBEScope scope)
          Constructor
 
Method Summary
 void create(org.gcube.common.core.resources.GCUBEResource profile)
          Allows registering a profile into IS
 void remove(String ID, String type)
          Removes from the IS the Profile corresponding to the given ID
 void update(org.gcube.common.core.resources.GCUBEResource profile)
          Updates a GCUBEResource on the IS
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final org.gcube.common.core.utils.logging.GCUBELog logger

registryFactoryPortType

protected org.gcube.informationsystem.registry.stubs.RegistryFactoryPortType registryFactoryPortType

ICEprs

protected List<org.apache.axis.message.addressing.EndpointReferenceType> ICEprs

registryClient

protected ISRegistryClient registryClient
Constructor Detail

RegistryResourcePublisher

public RegistryResourcePublisher(org.gcube.common.core.scope.GCUBEScope scope)
                          throws Exception
Constructor

Throws:
Exception
Method Detail

create

public void create(org.gcube.common.core.resources.GCUBEResource profile)
            throws Exception
Allows registering a profile into IS

Parameters:
profile - the Profile to register into IS
Throws:
Exception - if the registration fails

remove

public void remove(String ID,
                   String type)
            throws Exception
Removes from the IS the Profile corresponding to the given ID

Parameters:
ID - the resource ID
type - the resource type
Throws:
Exception - if the removal fails

update

public void update(org.gcube.common.core.resources.GCUBEResource profile)
            throws Exception
Updates a GCUBEResource on the IS

Parameters:
profile - the Profile
Throws:
Exception


Copyright © 2013. All Rights Reserved.