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, populatesEntityInformationDto
with the associated site, profile, and catalog ids.protected EntityInformationDto
Factory method for instantiating theEntityInformationDto
Returns 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.boolean
Given an entity instance, returns true if the object has access to a Site Discriminator.getParentSiteForProfile
(Site profile) Given a profileSite
object, 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:EntityInformationService
Given an object, populatesEntityInformationDto
with the associated site, profile, and catalog ids.This method does nothing by default and instead relies on the
EntityInformationServiceExtensionManager
to populate the correct values. Designed for use with the commercial "workflow" and "multi-tenant" modules.- Specified by:
buildEntityInformationForObject
in interfaceEntityInformationService
- Returns:
-
buildBasicEntityInformationForObject
- Specified by:
buildBasicEntityInformationForObject
in interfaceEntityInformationService
-
getBaseProfileIdForSite
Description copied from interface:EntityInformationService
Given a Site object, returns the Base Profile Id if one exists. This method provides a hook for Broadleaf MultiTenant functionality- Specified by:
getBaseProfileIdForSite
in interfaceEntityInformationService
- Returns:
-
getTypeForSite
- Specified by:
getTypeForSite
in interfaceEntityInformationService
-
getChildSiteIdsForProfile
- Specified by:
getChildSiteIdsForProfile
in interfaceEntityInformationService
-
getParentSiteForProfile
Description copied from interface:EntityInformationService
Given a profileSite
object, returns the parent site, if one exists. This method provides a hook for Broadleaf MultiTenant functionality.- Specified by:
getParentSiteForProfile
in interfaceEntityInformationService
- Returns:
-
getOkayToUseSiteDiscriminator
Description copied from interface:EntityInformationService
Given an entity instance, returns true if the object has access to a Site Discriminator.- Specified by:
getOkayToUseSiteDiscriminator
in interfaceEntityInformationService
- Returns:
-
getDefaultCatalogIdForSite
Description copied from interface:EntityInformationService
Given a Site object, returns the default catalog id. This method provides a hook for Broadleaf MultiTenant functionality- Specified by:
getDefaultCatalogIdForSite
in interfaceEntityInformationService
- Returns:
- the default Catalog id
-
findAllCatalogs
Description copied from interface:EntityInformationService
Returns all of the catalogs, using multi-tenant mode- Specified by:
findAllCatalogs
in interfaceEntityInformationService
- Returns:
-
createEntityInformationDto
Factory method for instantiating theEntityInformationDto
- Returns:
-