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 void
addSessionCatalogVersion(java.lang.String catalogId, java.lang.String catalogVersionName)
Deprecated.since agesjava.util.Collection<CatalogModel>
getAllCatalogs()
Returns allCatalogModel
s.<T extends CatalogModel>
java.util.Collection<T>getAllCatalogsOfType(java.lang.Class<T> catalogType)
Returns for the givenT
(upper bound CatalogModel) all catalogs ofT
defined in the systemCatalogModel
getCatalogForId(java.lang.String id)
Returns the catalog with the specifiedid
.CatalogVersionModel
getCatalogVersion(java.lang.String catalogId, java.lang.String catalogVersionName)
Deprecated.since agesCatalogModel
getDefaultCatalog()
Returns the default catalog basing onCatalogModel.DEFAULTCATALOG
property.void
setCatalogDao(CatalogDao catalogDao)
void
setCatalogVersionService(CatalogVersionService catalogVersionService)
void
setSessionCatalogVersion(java.lang.String catalogId, java.lang.String catalogVersionName)
Deprecated.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 public void setSessionCatalogVersion(java.lang.String catalogId, java.lang.String catalogVersionName)
Deprecated.since agesDescription copied from interface:CatalogService
Sets theCatalogVersionModel
specified bycatalogId
andcatalogVersionName
as the active CatalogVersion of the current session. Previous set active CatalogVersions are replaced.- Specified by:
setSessionCatalogVersion
in interfaceCatalogService
- Parameters:
catalogId
- the id of the Catalog the CatalogVersion belongs tocatalogVersionName
- the version of the Catalog version
-
addSessionCatalogVersion
@Deprecated public void addSessionCatalogVersion(java.lang.String catalogId, java.lang.String catalogVersionName)
Deprecated.since agesDescription copied from interface:CatalogService
Adds theCatalogVersionModel
specified bycatalogId
andcatalogVersionName
to the current active Session CatalogVersions.- Specified by:
addSessionCatalogVersion
in interfaceCatalogService
- Parameters:
catalogId
- the id of the Catalog the CatalogVersion belongs tocatalogVersionName
- the version of the Catalog version
-
getCatalogVersion
@Deprecated public CatalogVersionModel getCatalogVersion(java.lang.String catalogId, java.lang.String catalogVersionName)
Deprecated.since agesDescription copied from interface:CatalogService
- Specified by:
getCatalogVersion
in 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:CatalogService
Returns allCatalogModel
s.- Specified by:
getAllCatalogs
in 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:CatalogService
Returns for the givenT
(upper bound CatalogModel) all catalogs ofT
defined in the system- Specified by:
getAllCatalogsOfType
in interfaceCatalogService
- Type Parameters:
T
- This could be aClassificationSystemModel
or aCatalogModel
- Returns:
- an empty collection if no
ClassificationSystemModel
s orCatalogModel
were found.
-
getCatalogForId
public CatalogModel getCatalogForId(java.lang.String id)
Description copied from interface:CatalogService
Returns the catalog with the specifiedid
.- Specified by:
getCatalogForId
in interfaceCatalogService
- Returns:
- the catalog with the specified id.
-
getDefaultCatalog
public CatalogModel getDefaultCatalog()
Description copied from interface:CatalogService
Returns the default catalog basing onCatalogModel.DEFAULTCATALOG
property. If multiple catalogs the one created the latest will be returned.- Specified by:
getDefaultCatalog
in 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)
-
-