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,java.io.Serializable,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.InitializingBean
public class DefaultCatalogService extends AbstractBusinessService implements CatalogService
Default implementation of theCatalogService.- See Also:
- Serialized Form
-
-
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, txManager
-
Fields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
tenant
-
-
Constructor Summary
Constructors Constructor Description DefaultCatalogService()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddSessionCatalogVersion(java.lang.String catalogId, java.lang.String catalogVersionName)Deprecated, for removal: This API element is subject to removal in a future version.since agesjava.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, for removal: This API element is subject to removal in a future version.since agesCatalogModelgetDefaultCatalog()Returns the default catalog basing onCatalogModel.DEFAULTCATALOGproperty.voidsetCatalogDao(CatalogDao catalogDao)voidsetCatalogVersionService(CatalogVersionService catalogVersionService)voidsetSessionCatalogVersion(java.lang.String catalogId, java.lang.String catalogVersionName)Deprecated, for removal: This API element is subject to removal in a future version.since ages-
Methods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
getModelService, getSessionService, getTxManager, setModelService, setSessionService, setTxManager
-
Methods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
afterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, writeReplace
-
-
-
-
Method Detail
-
setSessionCatalogVersion
@Deprecated(since="ages", forRemoval=true) public void setSessionCatalogVersion(java.lang.String catalogId, java.lang.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(java.lang.String catalogId, java.lang.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(java.lang.String catalogId, java.lang.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
public java.util.Collection<CatalogModel> getAllCatalogs()
Description copied from interface:CatalogServiceReturns allCatalogModels.- Specified by:
getAllCatalogsin interfaceCatalogService- Returns:
- an empty collection if no CatalogModel were found.
-
getAllCatalogsOfType
public <T extends CatalogModel> java.util.Collection<T> getAllCatalogsOfType(java.lang.Class<T> catalogType)
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
public CatalogModel getCatalogForId(java.lang.String id)
Description copied from interface:CatalogServiceReturns the catalog with the specifiedid.- Specified by:
getCatalogForIdin interfaceCatalogService- Returns:
- the catalog with the specified id.
-
getDefaultCatalog
public CatalogModel 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
public void setCatalogDao(CatalogDao catalogDao)
-
setCatalogVersionService
public void setCatalogVersionService(CatalogVersionService catalogVersionService)
-
-