public class AbstractEntityInformationServiceExtensionHandler extends AbstractExtensionHandler implements EntityInformationServiceExtensionHandler
enabled, priority
Constructor and Description |
---|
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, setEnabled, setPriority
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPriority, isEnabled
public AbstractEntityInformationServiceExtensionHandler()
public ExtensionResultStatusType updateEntityInformationDto(EntityInformationDto dto, Object entityInstance)
EntityInformationServiceExtensionHandler
updateEntityInformationDto
in interface EntityInformationServiceExtensionHandler
dto
- EntityInformationDto
the dto to add values toentityInstance
- the object to be examinedEntityInformationServiceImpl#buildEntityInformationForObject(Object)}
public ExtensionResultStatusType updateBasicEntityInformationDto(EntityInformationDto dto, Object entityInstance)
updateBasicEntityInformationDto
in interface EntityInformationServiceExtensionHandler
public ExtensionResultStatusType getBaseProfileIdForSite(Site site, ExtensionResultHolder<Long> erh)
EntityInformationServiceExtensionHandler
ExtensionResultHolder
with a valid
base profile id if one exists for the sitegetBaseProfileIdForSite
in interface EntityInformationServiceExtensionHandler
site
- Site
the Site to check for a base profileerh
- ExtensionResultHolder
a container for the resultpublic ExtensionResultStatusType getTypeForSite(Site site, ExtensionResultHolder<String> erh)
getTypeForSite
in interface EntityInformationServiceExtensionHandler
public ExtensionResultStatusType getChildSiteIdsForProfile(Site profile, ExtensionResultHolder<Set<Long>> erh)
EntityInformationServiceExtensionHandler
ExtensionResultHolder
with a valid
child site ids whose base profile is the given profilegetChildSiteIdsForProfile
in interface EntityInformationServiceExtensionHandler
profile
- Site
the profile to check for the child siteserh
- a container for the resultpublic ExtensionResultStatusType getParentSiteForProfile(Site profile, ExtensionResultHolder<Site> erh)
EntityInformationServiceExtensionHandler
ExtensionResultHolder
with a valid
parent site if one exists for the profilegetParentSiteForProfile
in interface EntityInformationServiceExtensionHandler
profile
- Site
the profile to check for the parent siteerh
- ExtensionResultHolder
a container for the resultpublic ExtensionResultStatusType getOkayToUseSiteDiscriminator(Object o, ExtensionResultHolder<Boolean> erh)
EntityInformationServiceExtensionHandler
ExtensionResultHolder
to true if the
passed in object supports site discriminator usage. For example, when running in a Multi-Tenant
Broadleaf implementation.getOkayToUseSiteDiscriminator
in interface EntityInformationServiceExtensionHandler
public ExtensionResultStatusType getDefaultCatalogIdForSite(Site site, ExtensionResultHolder<Long> erh)
EntityInformationServiceExtensionHandler
ExtensionResultHolder
with a valid default catalog id for the sitegetDefaultCatalogIdForSite
in interface EntityInformationServiceExtensionHandler
site
- Site
the Site to get the catalog id fromerh
- ExtensionResultHolder
a container for the resultpublic ExtensionResultStatusType findAllCatalogs(ExtensionResultHolder<List<Catalog>> erh)
EntityInformationServiceExtensionHandler
ExtensionResultHolder
to a list of all catalogs,
specifically when running in a Multi-Tenant Broadleaf implementation.findAllCatalogs
in interface EntityInformationServiceExtensionHandler
Copyright © 2022. All rights reserved.