Class CatalogUtils


  • public final class CatalogUtils
    extends java.lang.Object
    Some helper methods for the catalog service.
    • Method Detail

      • getFullCatalogVersionName

        public static java.lang.String getFullCatalogVersionName​(CatalogVersionModel catalogVersion)
        Returns the full qualified catalog/catalogversion name.
        Parameters:
        catalogVersion - the catalog version
        Returns:
        as String: CatalogID.CatalogVersion
        Throws:
        java.lang.IllegalArgumentException - if catalogVersion is null.
      • getCatalogVersionsString

        public static java.lang.String getCatalogVersionsString​(java.util.Collection<CatalogVersionModel> catalogVersions)
        Returns for the given collection of CatalogVersionModels the getFullCatalogVersionName(CatalogVersionModel) of each element, separated by ','
        Parameters:
        catalogVersions - the collection with the catalog versions
        Returns:
        an empty string if the collection contains nothing.
        Throws:
        java.lang.IllegalArgumentException - if catalogVersions is null.