@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.
|
boolean |
getOkayToUseSiteDiscriminator(Object o)
Given an entity instance, returns true if the object has access to a Site Discriminator.
|
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 boolean getOkayToUseSiteDiscriminator(Object o)
EntityInformationServicegetOkayToUseSiteDiscriminator in interface EntityInformationServiceprotected EntityInformationDto createEntityInformationDto(Object o)
EntityInformationDtopublic List<Catalog> findAllCatalogs()
EntityInformationServicefindAllCatalogs in interface EntityInformationServiceCopyright © 2017. All rights reserved.