Class EntityInformationServiceImpl
java.lang.Object
org.broadleafcommerce.common.entity.service.EntityInformationServiceImpl
- All Implemented Interfaces:
EntityInformationService
@Service("blEntityInformationService")
public class EntityInformationServiceImpl
extends Object
implements EntityInformationService
- Author:
- bpolster
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGiven an object, populatesEntityInformationDtowith the associated site, profile, and catalog ids.protected EntityInformationDtoFactory method for instantiating theEntityInformationDtoReturns all of the catalogs, using multi-tenant modegetBaseProfileIdForSite(Site site) Given a Site object, returns the Base Profile Id if one exists.getChildSiteIdsForProfile(Site profile) Given a Site object, returns the default catalog id.booleanGiven an entity instance, returns true if the object has access to a Site Discriminator.getParentSiteForProfile(Site profile) Given a profileSiteobject, returns the parent site, if one exists.getTypeForSite(Site site)
-
Field Details
-
extensionManager
-
-
Constructor Details
-
EntityInformationServiceImpl
public EntityInformationServiceImpl()
-
-
Method Details
-
buildEntityInformationForObject
Description copied from interface:EntityInformationServiceGiven an object, populatesEntityInformationDtowith the associated site, profile, and catalog ids.This method does nothing by default and instead relies on the
EntityInformationServiceExtensionManagerto populate the correct values. Designed for use with the commercial "workflow" and "multi-tenant" modules.- Specified by:
buildEntityInformationForObjectin interfaceEntityInformationService- Returns:
-
buildBasicEntityInformationForObject
- Specified by:
buildBasicEntityInformationForObjectin interfaceEntityInformationService
-
getBaseProfileIdForSite
Description copied from interface:EntityInformationServiceGiven a Site object, returns the Base Profile Id if one exists. This method provides a hook for Broadleaf MultiTenant functionality- Specified by:
getBaseProfileIdForSitein interfaceEntityInformationService- Returns:
-
getTypeForSite
- Specified by:
getTypeForSitein interfaceEntityInformationService
-
getChildSiteIdsForProfile
- Specified by:
getChildSiteIdsForProfilein interfaceEntityInformationService
-
getParentSiteForProfile
Description copied from interface:EntityInformationServiceGiven a profileSiteobject, returns the parent site, if one exists. This method provides a hook for Broadleaf MultiTenant functionality.- Specified by:
getParentSiteForProfilein interfaceEntityInformationService- Returns:
-
getOkayToUseSiteDiscriminator
Description copied from interface:EntityInformationServiceGiven an entity instance, returns true if the object has access to a Site Discriminator.- Specified by:
getOkayToUseSiteDiscriminatorin interfaceEntityInformationService- Returns:
-
getDefaultCatalogIdForSite
Description copied from interface:EntityInformationServiceGiven a Site object, returns the default catalog id. This method provides a hook for Broadleaf MultiTenant functionality- Specified by:
getDefaultCatalogIdForSitein interfaceEntityInformationService- Returns:
- the default Catalog id
-
findAllCatalogs
Description copied from interface:EntityInformationServiceReturns all of the catalogs, using multi-tenant mode- Specified by:
findAllCatalogsin interfaceEntityInformationService- Returns:
-
createEntityInformationDto
Factory method for instantiating theEntityInformationDto- Returns:
-