public interface EntityInformationService
Modifier and Type | Method and Description |
---|---|
EntityInformationDto |
buildBasicEntityInformationForObject(Object o) |
EntityInformationDto |
buildEntityInformationForObject(Object o)
Given an object, populates
EntityInformationDto with the associated site, profile, and catalog ids. |
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. |
String |
getTypeForSite(Site site) |
EntityInformationDto buildEntityInformationForObject(Object o)
EntityInformationDto
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.o
- EntityInformationDto buildBasicEntityInformationForObject(Object o)
Long getBaseProfileIdForSite(Site site)
site
- Site getParentSiteForProfile(Site profile)
Site
object, returns the parent site, if one exists. This method provides a hook
for Broadleaf MultiTenant functionality.profile
- boolean getOkayToUseSiteDiscriminator(Object o)
o
- List<Catalog> findAllCatalogs()
Copyright © 2022. All rights reserved.