Class CatalogVolumeIngester


  • public class CatalogVolumeIngester
    extends Object
    • Field Detail

      • fileObjCount

        public static int fileObjCount
      • registryCount

        public static int registryCount
      • failCount

        public static int failCount
      • targetAvailable

        public boolean targetAvailable
    • Constructor Detail

      • CatalogVolumeIngester

        public CatalogVolumeIngester()
        Constructor
        Parameters:
        registryURL - The URL to the registry service
    • Method Detail

      • addCatalogObject

        public void addCatalogObject​(CatalogObject catObj)
      • labelExists

        public boolean labelExists​(String filename)
      • setTargetAvailable

        public void setTargetAvailable​(boolean b)
      • getArchiveStatus

        public String getArchiveStatus()
      • setArchiveStatus

        public void setArchiveStatus​(String status)
      • getVolumeId

        public String getVolumeId()
      • setVolumeId

        public void setVolumeId​(String id)
      • ingest

        public void ingest​(CatalogObject catObj)
        Method to ingest given catalog object to the registry service It calls ingestExtrinsicObject() for the product registry. Then, it calls ingestFileObject() for the corresponding file object registry.
        Parameters:
        catObj - a Catalog Object instance
      • createRegistryObject

        public String createRegistryObject​(CatalogObject catObj)
        Ingest an extrinsic object to the registry service
        Parameters:
        catObj - a catalog object
        Returns:
        the guid of the registered extrinsic object
      • setProductReferences

        public void setProductReferences​(List<CatalogObject> catObjs,
                                         CatalogObject catObj,
                                         Map<String,​List<String>> refs)
        Add reference information as slot values then, update the registered product
        Parameters:
        catObj - a CatalogObject of the registered extrinsic object
        refs - Hashmap that holds reference information
      • publishObject

        public void publishObject​(CatalogObject obj)