Package org.gcube.smartgears.provider
Class OfflinePublisher
- java.lang.Object
-
- 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 ofScopedPublisherthat simulates remote publication.Used for applications and or containers that operate in
Mode.offline.- Author:
- Fabio Simeoni
-
-
Constructor Summary
Constructors Constructor Description OfflinePublisher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends org.gcube.common.resources.gcore.Resource>
Tcreate(T resource, List<String> scopes)<T extends org.gcube.common.resources.gcore.Resource>
Tremove(T resource, List<String> scopes)<T extends org.gcube.common.resources.gcore.Resource>
Tupdate(T resource)
-
-
-
Method Detail
-
update
public <T extends org.gcube.common.resources.gcore.Resource> T update(T resource)
- Specified by:
updatein interfaceorg.gcube.informationsystem.publisher.ScopedPublisher
-
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:
createin interfaceorg.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:
removein interfaceorg.gcube.informationsystem.publisher.ScopedPublisher- Throws:
org.gcube.informationsystem.publisher.exception.RegistryNotFoundException
-
-