org.gcube.common.informationsystem.publisher.impl.generic
Class GCUBEGenericPublisher

java.lang.Object
  extended by org.gcube.common.informationsystem.publisher.impl.generic.GCUBEGenericPublisher
All Implemented Interfaces:
org.gcube.common.core.informationsystem.publisher.ISGenericPublisher

public class GCUBEGenericPublisher
extends Object
implements org.gcube.common.core.informationsystem.publisher.ISGenericPublisher

Reference implementation of the ISGenericPublisher for WS-DAIX

Author:
Manuele Simi (ISTI-CNR)

Field Summary
protected static org.gcube.common.core.utils.logging.GCUBELog logger
           
 
Constructor Summary
GCUBEGenericPublisher()
           
 
Method Summary
 void register(org.gcube.common.core.informationsystem.publisher.ISResource resource, org.gcube.common.core.scope.GCUBEScope scope)
           
 void register(org.gcube.common.core.informationsystem.publisher.ISResource resource, org.gcube.common.core.scope.GCUBEScope scope, Document metadata)
          Registers a new resource
 void register(List<org.gcube.common.core.informationsystem.publisher.ISResource> resources, org.gcube.common.core.scope.GCUBEScope scope)
           
 void remove(org.gcube.common.core.informationsystem.publisher.ISResource resource, org.gcube.common.core.scope.GCUBEScope scope)
          Removes a registered resource
 void remove(List<org.gcube.common.core.informationsystem.publisher.ISResource> resources, org.gcube.common.core.scope.GCUBEScope scope)
           
 void update(org.gcube.common.core.informationsystem.publisher.ISResource resource, org.gcube.common.core.scope.GCUBEScope scope)
          Updates the resource
 void update(List<org.gcube.common.core.informationsystem.publisher.ISResource> resources, org.gcube.common.core.scope.GCUBEScope scope)
           
 
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
Constructor Detail

GCUBEGenericPublisher

public GCUBEGenericPublisher()
Method Detail

register

public void register(org.gcube.common.core.informationsystem.publisher.ISResource resource,
                     org.gcube.common.core.scope.GCUBEScope scope,
                     Document metadata)
              throws org.gcube.common.core.informationsystem.publisher.ISPublisherException
Registers a new resource

Parameters:
resource - the resource to register
scope - the registration scope
type - the type of the resource
metadata - the optional metadata document
Throws:
Exception
org.gcube.common.core.informationsystem.publisher.ISPublisherException

register

public void register(org.gcube.common.core.informationsystem.publisher.ISResource resource,
                     org.gcube.common.core.scope.GCUBEScope scope)
              throws org.gcube.common.core.informationsystem.publisher.ISPublisherException
Specified by:
register in interface org.gcube.common.core.informationsystem.publisher.ISGenericPublisher
Throws:
org.gcube.common.core.informationsystem.publisher.ISPublisherException

register

public void register(List<org.gcube.common.core.informationsystem.publisher.ISResource> resources,
                     org.gcube.common.core.scope.GCUBEScope scope)
              throws org.gcube.common.core.informationsystem.publisher.ISPublisherException
Specified by:
register in interface org.gcube.common.core.informationsystem.publisher.ISGenericPublisher
Throws:
org.gcube.common.core.informationsystem.publisher.ISPublisherException

remove

public void remove(org.gcube.common.core.informationsystem.publisher.ISResource resource,
                   org.gcube.common.core.scope.GCUBEScope scope)
            throws org.gcube.common.core.informationsystem.publisher.ISPublisherException
Removes a registered resource

Specified by:
remove in interface org.gcube.common.core.informationsystem.publisher.ISGenericPublisher
Parameters:
resource - the resource to remove
type - the type of the resource
scope - the unregistration scope
Throws:
org.gcube.common.core.informationsystem.publisher.ISPublisherException

update

public void update(org.gcube.common.core.informationsystem.publisher.ISResource resource,
                   org.gcube.common.core.scope.GCUBEScope scope)
            throws org.gcube.common.core.informationsystem.publisher.ISPublisherException
Updates the resource

Specified by:
update in interface org.gcube.common.core.informationsystem.publisher.ISGenericPublisher
Throws:
org.gcube.common.core.informationsystem.publisher.ISPublisherException

update

public void update(List<org.gcube.common.core.informationsystem.publisher.ISResource> resources,
                   org.gcube.common.core.scope.GCUBEScope scope)
            throws org.gcube.common.core.informationsystem.publisher.ISPublisherException
Specified by:
update in interface org.gcube.common.core.informationsystem.publisher.ISGenericPublisher
Throws:
org.gcube.common.core.informationsystem.publisher.ISPublisherException

remove

public void remove(List<org.gcube.common.core.informationsystem.publisher.ISResource> resources,
                   org.gcube.common.core.scope.GCUBEScope scope)
            throws org.gcube.common.core.informationsystem.publisher.ISPublisherException
Specified by:
remove in interface org.gcube.common.core.informationsystem.publisher.ISGenericPublisher
Throws:
org.gcube.common.core.informationsystem.publisher.ISPublisherException


Copyright © 2013. All Rights Reserved.