Package de.hybris.platform.catalog
Interface CatalogService
-
- All Known Implementing Classes:
DefaultCatalogService
public interface CatalogServiceProvides access to Catalogs, CatalogVersions and Session CatalogVersions- Spring Bean ID:
- catalogService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidaddSessionCatalogVersion(java.lang.String catalogId, java.lang.String catalogVersionName)Deprecated.java.util.Collection<CatalogModel>getAllCatalogs()Returns allCatalogModels.<T extends CatalogModel>
java.util.Collection<T>getAllCatalogsOfType(java.lang.Class<T> catalogType)Returns for the givenT(upper bound CatalogModel) all catalogs ofTdefined in the systemCatalogModelgetCatalogForId(java.lang.String id)Returns the catalog with the specifiedid.CatalogVersionModelgetCatalogVersion(java.lang.String catalogId, java.lang.String catalogVersionName)Deprecated.since ages - UseCatalogVersionService.getCatalogVersion(String, String)CatalogModelgetDefaultCatalog()Returns the default catalog basing onCatalogModel.DEFAULTCATALOGproperty.voidsetSessionCatalogVersion(java.lang.String catalogId, java.lang.String catalogVersionName)Deprecated.since ages - useCatalogVersionService.setSessionCatalogVersion(String, String)instead.
-
-
-
Method Detail
-
setSessionCatalogVersion
@Deprecated void setSessionCatalogVersion(java.lang.String catalogId, java.lang.String catalogVersionName)Deprecated.since ages - useCatalogVersionService.setSessionCatalogVersion(String, String)instead.Sets theCatalogVersionModelspecified bycatalogIdandcatalogVersionNameas the active CatalogVersion of the current session. Previous set active CatalogVersions are replaced.- Parameters:
catalogId- the id of the Catalog the CatalogVersion belongs tocatalogVersionName- the version of the Catalog version- Throws:
UnknownIdentifierException- if no CatalogVersion with the specified catalog id and version existsAmbiguousIdentifierException- if more than one CatalogVersion is found with the specified catalog id and versionjava.lang.IllegalArgumentException- ifcatalogIdorcatalogVersionNameisnull
-
addSessionCatalogVersion
@Deprecated void addSessionCatalogVersion(java.lang.String catalogId, java.lang.String catalogVersionName)Deprecated.Adds theCatalogVersionModelspecified bycatalogIdandcatalogVersionNameto the current active Session CatalogVersions.- Parameters:
catalogId- the id of the Catalog the CatalogVersion belongs tocatalogVersionName- the version of the Catalog version- Throws:
UnknownIdentifierException- if no CatalogVersion with the specified catalog id and version existsAmbiguousIdentifierException- if more than one CatalogVersion is found with the specified catalog id and versionjava.lang.IllegalArgumentException- ifcatalogIdorcatalogVersionNameisnull
-
getCatalogVersion
@Deprecated CatalogVersionModel getCatalogVersion(java.lang.String catalogId, java.lang.String catalogVersionName)
Deprecated.since ages - UseCatalogVersionService.getCatalogVersion(String, String)- Parameters:
catalogId- the id for the catalogcatalogVersionName- the version string for the catalog version- Returns:
- the CatalogVersion with the specified catalog id and version
- Throws:
UnknownIdentifierException- if no CatalogVersion with the specified catalog id and version existsAmbiguousIdentifierException- if more than one CatalogVersion is found with the specified catalog id and versionjava.lang.IllegalArgumentException- ifcatalogIdorcatalogVersionNameisnull
-
getAllCatalogs
java.util.Collection<CatalogModel> getAllCatalogs()
Returns allCatalogModels.- Returns:
- an empty collection if no CatalogModel were found.
-
getAllCatalogsOfType
<T extends CatalogModel> java.util.Collection<T> getAllCatalogsOfType(java.lang.Class<T> catalogType)
Returns for the givenT(upper bound CatalogModel) all catalogs ofTdefined in the system- Type Parameters:
T- This could be aClassificationSystemModelor aCatalogModel- Returns:
- an empty collection if no
ClassificationSystemModels orCatalogModelwere found. - Throws:
java.lang.IllegalArgumentException- ifcatalogTypeisnull
-
getCatalogForId
CatalogModel getCatalogForId(java.lang.String id)
Returns the catalog with the specifiedid.- Returns:
- the catalog with the specified id.
- Throws:
UnknownIdentifierException- if no Catalog with the specifiedidis foundAmbiguousIdentifierException- if more than one Catalog is found with the specifiedidjava.lang.IllegalArgumentException- ifidisnull
-
getDefaultCatalog
CatalogModel getDefaultCatalog()
Returns the default catalog basing onCatalogModel.DEFAULTCATALOGproperty. If multiple catalogs the one created the latest will be returned.- Returns:
- default
CatalogModel, or null in case no default catalog was found.
-
-