@Service(value="blEntityInformationService") public class EntityInformationServiceImpl extends Object implements EntityInformationService
| Modifier and Type | Field and Description |
|---|---|
protected EntityInformationServiceExtensionManager |
extensionManager |
| Constructor and Description |
|---|
EntityInformationServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
EntityInformationDto |
buildEntityInformationForObject(Object o)
Given an object, populates
EntityInformationDto with the associated site, profile, and catalog ids. |
protected EntityInformationDto |
createEntityInformationDto(Object o)
Factory method for instantiating the
EntityInformationDto |
List<Catalog> |
findAllCatalogs()
Returns all of the catalogs, using multi-tenant mode
|
Long |
getBaseProfileIdForSite(Site site)
Given a Site object, returns the Base Profile Id if one exists.
|
Set<Long> |
getChildSiteIdsForProfile(Site profile) |
Long |
getDefaultCatalogIdForSite(Site site)
Given a Site object, returns the default catalog id.
|
boolean |
getOkayToUseSiteDiscriminator(Object o)
Given an entity instance, returns true if the object has access to a Site Discriminator.
|
Site |
getParentSiteForProfile(Site profile)
Given a profile
Site object, returns the parent site, if one exists. |
protected EntityInformationServiceExtensionManager extensionManager
public EntityInformationDto buildEntityInformationForObject(Object o)
EntityInformationServiceEntityInformationDto 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.buildEntityInformationForObject in interface EntityInformationServicepublic Long getBaseProfileIdForSite(Site site)
EntityInformationServicegetBaseProfileIdForSite in interface EntityInformationServicepublic Set<Long> getChildSiteIdsForProfile(Site profile)
getChildSiteIdsForProfile in interface EntityInformationServicepublic Site getParentSiteForProfile(Site profile)
EntityInformationServiceSite object, returns the parent site, if one exists. This method provides a hook
for Broadleaf MultiTenant functionality.getParentSiteForProfile in interface EntityInformationServicepublic boolean getOkayToUseSiteDiscriminator(Object o)
EntityInformationServicegetOkayToUseSiteDiscriminator in interface EntityInformationServicepublic Long getDefaultCatalogIdForSite(Site site)
EntityInformationServicegetDefaultCatalogIdForSite in interface EntityInformationServicepublic List<Catalog> findAllCatalogs()
EntityInformationServicefindAllCatalogs in interface EntityInformationServiceprotected EntityInformationDto createEntityInformationDto(Object o)
EntityInformationDtoCopyright © 2019. All rights reserved.