Interface EntityInformationService
- All Known Implementing Classes:
EntityInformationServiceImpl
public interface EntityInformationService
Class that provides guidance to modules that need to react when running in a multi-tenant mode. Especially,
when an entity is associated with a Profile or Catalog.
- Author:
- bpolster
-
Method Summary
Modifier and TypeMethodDescriptionGiven an object, populatesEntityInformationDtowith the associated site, profile, and catalog ids.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.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)
-
Method Details
-
buildEntityInformationForObject
Given 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.- Parameters:
o-- Returns:
-
buildBasicEntityInformationForObject
-
getBaseProfileIdForSite
Given a Site object, returns the Base Profile Id if one exists. This method provides a hook for Broadleaf MultiTenant functionality- Parameters:
site-- Returns:
-
getTypeForSite
-
getChildSiteIdsForProfile
-
getParentSiteForProfile
Given a profileSiteobject, returns the parent site, if one exists. This method provides a hook for Broadleaf MultiTenant functionality.- Parameters:
profile-- Returns:
-
getOkayToUseSiteDiscriminator
Given an entity instance, returns true if the object has access to a Site Discriminator.- Parameters:
o-- Returns:
-
findAllCatalogs
Returns all of the catalogs, using multi-tenant mode- Returns:
-
getDefaultCatalogIdForSite
Given a Site object, returns the default catalog id. This method provides a hook for Broadleaf MultiTenant functionality- Parameters:
site-- Returns:
- the default Catalog id
-