Class DefaultContentCatalogService
- java.lang.Object
-
- de.hybris.platform.servicelayer.internal.service.AbstractService
-
- de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
-
- de.hybris.platform.cms2.servicelayer.services.impl.AbstractCMSService
-
- de.hybris.platform.cms2.services.impl.DefaultContentCatalogService
-
- All Implemented Interfaces:
ContentCatalogService,java.io.Serializable,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.InitializingBean
public class DefaultContentCatalogService extends AbstractCMSService implements ContentCatalogService
Default implementation ofContentCatalogServiceinterface.- 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.cms2.servicelayer.services.impl.AbstractCMSService
CURRENTCATALOGVERSION, CURRENTSITE
-
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 DefaultContentCatalogService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<ContentCatalogModel>getContentCatalogs()Gets the content catalogs.java.util.Collection<ContentCatalogModel>getContentCatalogs(java.lang.String orderField)returns all content catalogs, ordered by the given orderFieldbooleanhasCatalogPages()Checks for catalog pages.booleanhasCategoryPages()Checks for category pages.booleanhasCMSItems(CatalogVersionModel versionModel)Checks for cms items.booleanhasCMSRelations(CatalogVersionModel versionModel)Checks for cms relations.booleanhasContentPages()Checks for content pages.booleanhasDefaultCatalogPage()Checks for default catalog page.booleanhasDefaultCategoryPage()Checks for default category page.protected booleanhasDefaultPage(java.lang.String composedTypeCode)booleanhasDefaultProductPage()Checks for default product page.protected booleanhasPagesOfType(ComposedTypeModel composedType)booleanhasProductPages()Checks for product pages.booleanisContentCatalog(CatalogModel catalog)Checks if passed as parameterCatalogModelobject is content catalog.booleanisContentCatalog(CatalogVersionModel catalogVersion)Checks if passed as parameterCatalogVersionModelobject is content catalog.booleanisProductCatalog(CatalogModel catalog)Checks if passed as parameterCatalogModelobject is product catalog.booleanisProductCatalog(CatalogVersionModel catalogVersion)Checks if passed as parameterCatalogVersionModelobject is product catalog.voidsetCatalogVersionService(CatalogVersionService catalogVersionService)voidsetCmsContentCatalogDao(CMSContentCatalogDao cmsContentCatalogDao)voidsetCmsPageDao(CMSPageDao cmsPageDao)voidsetTypeService(TypeService typeService)-
Methods inherited from class de.hybris.platform.cms2.servicelayer.services.impl.AbstractCMSService
getBaseSiteService, getCurrentCatalogVersion, getCurrentSite, getSearchRestrictionService, getUserService, setBaseSiteService, setSearchRestrictionService, setUserService
-
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
-
getContentCatalogs
public java.util.Collection<ContentCatalogModel> getContentCatalogs()
Gets the content catalogs.- Specified by:
getContentCatalogsin interfaceContentCatalogService- Returns:
- the content catalogs
-
getContentCatalogs
public java.util.Collection<ContentCatalogModel> getContentCatalogs(java.lang.String orderField)
returns all content catalogs, ordered by the given orderField- Specified by:
getContentCatalogsin interfaceContentCatalogService- Parameters:
orderField- the field to order the content catalogs by- Returns:
- all content catalogs
-
hasCatalogPages
public boolean hasCatalogPages()
Checks for catalog pages.- Specified by:
hasCatalogPagesin interfaceContentCatalogService- Returns:
- true, if successful
-
hasCategoryPages
public boolean hasCategoryPages()
Checks for category pages.- Specified by:
hasCategoryPagesin interfaceContentCatalogService- Returns:
- true, if successful
-
hasCMSItems
public boolean hasCMSItems(CatalogVersionModel versionModel)
Checks for cms items.- Specified by:
hasCMSItemsin interfaceContentCatalogService- Parameters:
versionModel- the version model- Returns:
- true, if successful
-
hasCMSRelations
public boolean hasCMSRelations(CatalogVersionModel versionModel)
Checks for cms relations.- Specified by:
hasCMSRelationsin interfaceContentCatalogService- Parameters:
versionModel- the version model- Returns:
- true, if successful
-
hasContentPages
public boolean hasContentPages()
Checks for content pages.- Specified by:
hasContentPagesin interfaceContentCatalogService- Returns:
- true, if successful
-
hasDefaultCatalogPage
public boolean hasDefaultCatalogPage()
Checks for default catalog page.- Specified by:
hasDefaultCatalogPagein interfaceContentCatalogService- Returns:
- true, if successful
-
hasDefaultCategoryPage
public boolean hasDefaultCategoryPage()
Checks for default category page.- Specified by:
hasDefaultCategoryPagein interfaceContentCatalogService- Returns:
- true, if successful
-
hasDefaultProductPage
public boolean hasDefaultProductPage()
Checks for default product page.- Specified by:
hasDefaultProductPagein interfaceContentCatalogService- Returns:
- true, if successful
-
hasProductPages
public boolean hasProductPages()
Checks for product pages.- Specified by:
hasProductPagesin interfaceContentCatalogService- Returns:
- true, if successful
-
isContentCatalog
public boolean isContentCatalog(CatalogModel catalog)
Checks if passed as parameterCatalogModelobject is content catalog.- Specified by:
isContentCatalogin interfaceContentCatalogService- Parameters:
catalog- the catalog to check- Returns:
- true, if is content catalog
-
isContentCatalog
public boolean isContentCatalog(CatalogVersionModel catalogVersion)
Checks if passed as parameterCatalogVersionModelobject is content catalog.- Specified by:
isContentCatalogin interfaceContentCatalogService- Parameters:
catalogVersion- the catalog version- Returns:
- true, if is content catalog
-
isProductCatalog
public boolean isProductCatalog(CatalogModel catalog)
Checks if passed as parameterCatalogModelobject is product catalog.- Specified by:
isProductCatalogin interfaceContentCatalogService- Parameters:
catalog- the catalog- Returns:
- true, if is product catalog
-
isProductCatalog
public boolean isProductCatalog(CatalogVersionModel catalogVersion)
Checks if passed as parameterCatalogVersionModelobject is product catalog.- Specified by:
isProductCatalogin interfaceContentCatalogService- Parameters:
catalogVersion- the catalog version- Returns:
- true, if is product catalog
-
setCatalogVersionService
public void setCatalogVersionService(CatalogVersionService catalogVersionService)
-
setCmsContentCatalogDao
public void setCmsContentCatalogDao(CMSContentCatalogDao cmsContentCatalogDao)
-
setCmsPageDao
public void setCmsPageDao(CMSPageDao cmsPageDao)
-
setTypeService
public void setTypeService(TypeService typeService)
-
hasDefaultPage
protected boolean hasDefaultPage(java.lang.String composedTypeCode)
-
hasPagesOfType
protected boolean hasPagesOfType(ComposedTypeModel composedType)
-
-