org.gcube.smartgears.provider
Class OfflinePublisher

java.lang.Object
  extended by org.gcube.smartgears.provider.OfflinePublisher
All Implemented Interfaces:
org.gcube.informationsystem.publisher.ScopedPublisher

public class OfflinePublisher
extends Object
implements org.gcube.informationsystem.publisher.ScopedPublisher

An implementation of ScopedPublisher that simulates remote publication.

Used for applications and or containers that operate in Mode.offline.

Author:
Fabio Simeoni

Constructor Summary
OfflinePublisher()
           
 
Method Summary
<T extends org.gcube.common.resources.gcore.Resource>
T
create(T resource, List<String> scopes)
           
<T extends org.gcube.common.resources.gcore.Resource>
T
remove(T resource, List<String> scopes)
           
<T extends org.gcube.common.resources.gcore.Resource>
T
update(T resource)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OfflinePublisher

public OfflinePublisher()
Method Detail

create

public <T extends org.gcube.common.resources.gcore.Resource> T create(T resource,
                                                                      List<String> scopes)
                                                           throws org.gcube.informationsystem.publisher.exception.RegistryNotFoundException
Specified by:
create in interface org.gcube.informationsystem.publisher.ScopedPublisher
Throws:
org.gcube.informationsystem.publisher.exception.RegistryNotFoundException

remove

public <T extends org.gcube.common.resources.gcore.Resource> T remove(T resource,
                                                                      List<String> scopes)
                                                           throws org.gcube.informationsystem.publisher.exception.RegistryNotFoundException
Specified by:
remove in interface org.gcube.informationsystem.publisher.ScopedPublisher
Throws:
org.gcube.informationsystem.publisher.exception.RegistryNotFoundException

update

public <T extends org.gcube.common.resources.gcore.Resource> T update(T resource)
                                                           throws org.gcube.informationsystem.publisher.exception.RegistryNotFoundException
Specified by:
update in interface org.gcube.informationsystem.publisher.ScopedPublisher
Throws:
org.gcube.informationsystem.publisher.exception.RegistryNotFoundException


Copyright © 2013. All Rights Reserved.