public interface EntityInformationServiceExtensionHandler extends ExtensionHandler
ExtensionHandler for methods within EntityInformationService
Rather than implementing this interface directly you should extend your implementation from
AbstractEntityInformationServiceExtensionHandler
.
Intended to be used by enterprise and multi-tenant modules to populate a dto so that other modules can have easy access to this information w/out a formal dependency on the multi-tenant or enterprise modules.
AbstractEntityInformationServiceExtensionHandler}
Modifier and Type | Method and Description |
---|---|
ExtensionResultStatusType |
findAllCatalogs(ExtensionResultHolder<List<Catalog>> erh)
Handler implementations will set the value of
ExtensionResultHolder to a list of all catalogs,
specifically when running in a Multi-Tenant Broadleaf implementation. |
ExtensionResultStatusType |
getBaseProfileIdForSite(Site site,
ExtensionResultHolder<Long> erh)
Handler implementations will populate the
ExtensionResultHolder with a valid
base profile id if one exists for the site |
ExtensionResultStatusType |
getChildSiteIdsForProfile(Site profile,
ExtensionResultHolder<Set<Long>> erh)
Handler implementations will populate the
ExtensionResultHolder with a valid
child site ids whose base profile is the given profile |
ExtensionResultStatusType |
getDefaultCatalogIdForSite(Site site,
ExtensionResultHolder<Long> erh)
Handler implementations will populate the
ExtensionResultHolder with a valid default catalog id for the site |
ExtensionResultStatusType |
getOkayToUseSiteDiscriminator(Object o,
ExtensionResultHolder<Boolean> erh)
Handler implementations will set the value of
ExtensionResultHolder to true if the
passed in object supports site discriminator usage. |
ExtensionResultStatusType |
getParentSiteForProfile(Site profile,
ExtensionResultHolder<Site> erh)
Handler implementations will popoulate the
ExtensionResultHolder with a valid
parent site if one exists for the profile |
ExtensionResultStatusType |
getTypeForSite(Site site,
ExtensionResultHolder<String> erh) |
ExtensionResultStatusType |
updateBasicEntityInformationDto(EntityInformationDto dto,
Object entityInstance) |
ExtensionResultStatusType |
updateEntityInformationDto(EntityInformationDto dto,
Object entityInstance)
Handler implementations will override or populate the values on the passed in dto.
|
getPriority, isEnabled
ExtensionResultStatusType updateEntityInformationDto(EntityInformationDto dto, Object entityInstance)
dto
- EntityInformationDto
the dto to add values toentityInstance
- the object to be examinedEntityInformationServiceImpl#buildEntityInformationForObject(Object)}
ExtensionResultStatusType updateBasicEntityInformationDto(EntityInformationDto dto, Object entityInstance)
ExtensionResultStatusType getBaseProfileIdForSite(Site site, ExtensionResultHolder<Long> erh)
ExtensionResultHolder
with a valid
base profile id if one exists for the sitesite
- Site
the Site to check for a base profileerh
- ExtensionResultHolder
a container for the resultExtensionResultStatusType getTypeForSite(Site site, ExtensionResultHolder<String> erh)
ExtensionResultStatusType getChildSiteIdsForProfile(Site profile, ExtensionResultHolder<Set<Long>> erh)
ExtensionResultHolder
with a valid
child site ids whose base profile is the given profileprofile
- Site
the profile to check for the child siteserh
- a container for the resultExtensionResultStatusType getParentSiteForProfile(Site profile, ExtensionResultHolder<Site> erh)
ExtensionResultHolder
with a valid
parent site if one exists for the profileprofile
- Site
the profile to check for the parent siteerh
- ExtensionResultHolder
a container for the resultExtensionResultStatusType getOkayToUseSiteDiscriminator(Object o, ExtensionResultHolder<Boolean> erh)
ExtensionResultHolder
to true if the
passed in object supports site discriminator usage. For example, when running in a Multi-Tenant
Broadleaf implementation.o
- ExtensionResultStatusType findAllCatalogs(ExtensionResultHolder<List<Catalog>> erh)
ExtensionResultHolder
to a list of all catalogs,
specifically when running in a Multi-Tenant Broadleaf implementation.erh
- ExtensionResultStatusType getDefaultCatalogIdForSite(Site site, ExtensionResultHolder<Long> erh)
ExtensionResultHolder
with a valid default catalog id for the sitesite
- Site
the Site to get the catalog id fromerh
- ExtensionResultHolder
a container for the resultCopyright © 2022. All rights reserved.