Package de.hybris.platform.catalog.impl
Class DefaultCatalogService
java.lang.Object
de.hybris.platform.servicelayer.internal.service.AbstractService
de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
de.hybris.platform.catalog.impl.DefaultCatalogService
- All Implemented Interfaces:
CatalogService,Serializable,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.InitializingBean
Default implementation of the
CatalogService.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
AbstractService.SerializableDTO -
Field Summary
Fields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
modelService, sessionService, txManagerFields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
tenant -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSessionCatalogVersion(String catalogId, String catalogVersionName) Deprecated, for removal: This API element is subject to removal in a future version.since agesReturns allCatalogModels.<T extends CatalogModel>
Collection<T>getAllCatalogsOfType(Class<T> catalogType) Returns for the givenT(upper bound CatalogModel) all catalogs ofTdefined in the systemReturns the catalog with the specifiedid.getCatalogVersion(String catalogId, String catalogVersionName) Deprecated, for removal: This API element is subject to removal in a future version.since agesReturns the default catalog basing onCatalogModel.DEFAULTCATALOGproperty.voidsetCatalogDao(CatalogDao catalogDao) voidsetCatalogVersionService(CatalogVersionService catalogVersionService) voidsetSessionCatalogVersion(String catalogId, String catalogVersionName) Deprecated, for removal: This API element is subject to removal in a future version.since agesMethods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
getModelService, getSessionService, getTxManager, setModelService, setSessionService, setTxManagerMethods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
afterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, writeReplace
-
Constructor Details
-
DefaultCatalogService
public DefaultCatalogService()
-
-
Method Details
-
setSessionCatalogVersion
@Deprecated(since="ages", forRemoval=true) public void setSessionCatalogVersion(String catalogId, String catalogVersionName) Deprecated, for removal: This API element is subject to removal in a future version.since agesDescription copied from interface:CatalogServiceSets theCatalogVersionModelspecified bycatalogIdandcatalogVersionNameas the active CatalogVersion of the current session. Previous set active CatalogVersions are replaced.- Specified by:
setSessionCatalogVersionin interfaceCatalogService- Parameters:
catalogId- the id of the Catalog the CatalogVersion belongs tocatalogVersionName- the version of the Catalog version
-
addSessionCatalogVersion
@Deprecated(since="ages", forRemoval=true) public void addSessionCatalogVersion(String catalogId, String catalogVersionName) Deprecated, for removal: This API element is subject to removal in a future version.since agesDescription copied from interface:CatalogServiceAdds theCatalogVersionModelspecified bycatalogIdandcatalogVersionNameto the current active Session CatalogVersions.- Specified by:
addSessionCatalogVersionin interfaceCatalogService- Parameters:
catalogId- the id of the Catalog the CatalogVersion belongs tocatalogVersionName- the version of the Catalog version
-
getCatalogVersion
@Deprecated(since="ages", forRemoval=true) public CatalogVersionModel getCatalogVersion(String catalogId, String catalogVersionName) Deprecated, for removal: This API element is subject to removal in a future version.since agesDescription copied from interface:CatalogService- Specified by:
getCatalogVersionin interfaceCatalogService- Parameters:
catalogId- the id for the catalogcatalogVersionName- the version string for the catalog version- Returns:
- the CatalogVersion with the specified catalog id and version
-
getAllCatalogs
Description copied from interface:CatalogServiceReturns allCatalogModels.- Specified by:
getAllCatalogsin interfaceCatalogService- Returns:
- an empty collection if no CatalogModel were found.
-
getAllCatalogsOfType
Description copied from interface:CatalogServiceReturns for the givenT(upper bound CatalogModel) all catalogs ofTdefined in the system- Specified by:
getAllCatalogsOfTypein interfaceCatalogService- Type Parameters:
T- This could be aClassificationSystemModelor aCatalogModel- Returns:
- an empty collection if no
ClassificationSystemModels orCatalogModelwere found.
-
getCatalogForId
Description copied from interface:CatalogServiceReturns the catalog with the specifiedid.- Specified by:
getCatalogForIdin interfaceCatalogService- Returns:
- the catalog with the specified id.
-
getDefaultCatalog
Description copied from interface:CatalogServiceReturns the default catalog basing onCatalogModel.DEFAULTCATALOGproperty. If multiple catalogs the one created the latest will be returned.- Specified by:
getDefaultCatalogin interfaceCatalogService- Returns:
- default
CatalogModel, or null in case no default catalog was found.
-
setCatalogDao
-
setCatalogVersionService
-