Package de.hybris.platform.catalog.impl
Class CatalogUtils
java.lang.Object
de.hybris.platform.catalog.impl.CatalogUtils
Some helper methods for the catalog service.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetCatalogVersionsString(Collection<CatalogVersionModel> catalogVersions) Returns for the given collection ofCatalogVersionModels thegetFullCatalogVersionName(CatalogVersionModel)of each element, separated by ','static StringgetFullCatalogVersionName(CatalogVersionModel catalogVersion) Returns the full qualified catalog/catalogversion name.
-
Method Details
-
getFullCatalogVersionName
Returns the full qualified catalog/catalogversion name.- Parameters:
catalogVersion- the catalog version- Returns:
- as String: CatalogID.CatalogVersion
- Throws:
IllegalArgumentException- ifcatalogVersionis null.
-
getCatalogVersionsString
Returns for the given collection ofCatalogVersionModels thegetFullCatalogVersionName(CatalogVersionModel)of each element, separated by ','- Parameters:
catalogVersions- the collection with the catalog versions- Returns:
- an empty string if the collection contains nothing.
- Throws:
IllegalArgumentException- ifcatalogVersionsis null.
-