org.gcube.informationsystem.publisher
Class AdvancedPublisher

java.lang.Object
  extended by org.gcube.informationsystem.publisher.AdvancedPublisherCommonUtils
      extended by org.gcube.informationsystem.publisher.AdvancedPublisher
All Implemented Interfaces:
RegistryPublisher

public class AdvancedPublisher
extends AdvancedPublisherCommonUtils
implements RegistryPublisher

Wrapper class of RegistryPublisherImpl class that implements the RegistryPublisher interface

Author:
rcirillo

Constructor Summary
AdvancedPublisher()
           
AdvancedPublisher(RegistryPublisher publisher)
           
 
Method Summary
<T extends org.gcube.common.resources.gcore.Resource>
T
create(T resource)
          The resource is created in the current scope and it is updated in the other scopes that are presents in the resource
<T extends org.gcube.common.resources.gcore.Resource>
T
remove(T resource)
          Remove a resource from the current scope if the current scope is defined in the resource
<T extends org.gcube.common.resources.gcore.Resource>
T
update(T resource)
          The resource will be updated on all scopes that are defined in the resource.
 
Methods inherited from class org.gcube.informationsystem.publisher.AdvancedPublisherCommonUtils
removeFromAllScopes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdvancedPublisher

public AdvancedPublisher()

AdvancedPublisher

public AdvancedPublisher(RegistryPublisher publisher)
Method Detail

create

public <T extends org.gcube.common.resources.gcore.Resource> T create(T resource)
Description copied from interface: RegistryPublisher
The resource is created in the current scope and it is updated in the other scopes that are presents in the resource

Specified by:
create in interface RegistryPublisher

update

public <T extends org.gcube.common.resources.gcore.Resource> T update(T resource)
Description copied from interface: RegistryPublisher
The resource will be updated on all scopes that are defined in the resource. If an updating operation fail. It will be repeated with best-effort approach.

Specified by:
update in interface RegistryPublisher

remove

public <T extends org.gcube.common.resources.gcore.Resource> T remove(T resource)
Description copied from interface: RegistryPublisher
Remove a resource from the current scope if the current scope is defined in the resource

Specified by:
remove in interface RegistryPublisher
Returns:
the resource without the current scope if the remove operation is succesfully


Copyright © 2013. All Rights Reserved.