Class GCatController

  • All Implemented Interfaces:
    org.gcube.data.publishing.gCatFeeder.catalogues.CatalogueController

    public class GCatController
    extends Object
    implements org.gcube.data.publishing.gCatFeeder.catalogues.CatalogueController
    • Constructor Summary

      Constructors 
      Constructor Description
      GCatController​(org.gcube.data.publishing.gCatFeeder.model.CatalogueInstanceDescriptor instance)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void configure​(org.gcube.data.publishing.gCatFeeder.model.ControllerConfiguration config)  
      org.gcube.data.publishing.gCatFeeder.catalogues.model.PublishReport publishItem​(org.gcube.data.publishing.gCatFeeder.model.CatalogueFormatData arg0)
      Expected structure { "profile" : "", "item" : "", "resources" : [ "", "", ....] } NB serialized resources are updated with "package_id" set as the published item id
    • Constructor Detail

      • GCatController

        public GCatController​(org.gcube.data.publishing.gCatFeeder.model.CatalogueInstanceDescriptor instance)
                       throws org.gcube.data.publishing.gCatFeeder.catalogues.model.faults.ControllerInstantiationFault
        Throws:
        org.gcube.data.publishing.gCatFeeder.catalogues.model.faults.ControllerInstantiationFault
    • Method Detail

      • configure

        public void configure​(org.gcube.data.publishing.gCatFeeder.model.ControllerConfiguration config)
        Specified by:
        configure in interface org.gcube.data.publishing.gCatFeeder.catalogues.CatalogueController
      • publishItem

        public org.gcube.data.publishing.gCatFeeder.catalogues.model.PublishReport publishItem​(org.gcube.data.publishing.gCatFeeder.model.CatalogueFormatData arg0)
                                                                                        throws org.gcube.data.publishing.gCatFeeder.catalogues.model.faults.WrongObjectFormatException,
                                                                                               org.gcube.data.publishing.gCatFeeder.catalogues.model.faults.CatalogueInteractionException,
                                                                                               org.gcube.data.publishing.gCatFeeder.catalogues.model.faults.PublicationException,
                                                                                               org.gcube.data.publishing.gCatFeeder.model.InternalConversionException
        Expected structure { "profile" : "", "item" : "", "resources" : [ "", "", ....] } NB serialized resources are updated with "package_id" set as the published item id
        Specified by:
        publishItem in interface org.gcube.data.publishing.gCatFeeder.catalogues.CatalogueController
        Throws:
        org.gcube.data.publishing.gCatFeeder.model.InternalConversionException
        org.gcube.data.publishing.gCatFeeder.catalogues.model.faults.WrongObjectFormatException
        org.gcube.data.publishing.gCatFeeder.catalogues.model.faults.CatalogueInteractionException
        org.gcube.data.publishing.gCatFeeder.catalogues.model.faults.PublicationException