Class 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 Detail

      • OfflinePublisher

        public OfflinePublisher()
    • Method Detail

      • update

        public <T extends org.gcube.common.resources.gcore.Resource> T update​(T resource)
        Specified by:
        update in interface org.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:
        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