Class EntityInformationServiceExtensionManager
java.lang.Object
org.broadleafcommerce.common.extension.ExtensionManager<EntityInformationServiceExtensionHandler>
org.broadleafcommerce.common.entity.service.EntityInformationServiceExtensionManager
- All Implemented Interfaces:
InvocationHandler,EntityInformationServiceExtensionHandler,ExtensionHandler
@Service("blEntityInformationServiceExtensionManager")
public class EntityInformationServiceExtensionManager
extends ExtensionManager<EntityInformationServiceExtensionHandler>
implements EntityInformationServiceExtensionHandler
Extension manager that holds the list of
EntityInformationServiceExtensionHandler.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ExtensionManagerOperationstatic final ExtensionManagerOperationstatic final ExtensionManagerOperationstatic final ExtensionManagerOperationstatic final ExtensionManagerOperationstatic final ExtensionManagerOperationstatic final ExtensionManagerOperationstatic final ExtensionManagerOperationstatic final ExtensionManagerOperationFields inherited from class org.broadleafcommerce.common.extension.ExtensionManager
extensionHandler, handlers, handlersSorted, LOCK_OBJECT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionHandler implementations will set the value ofExtensionResultHolderto a list of all catalogs, specifically when running in a Multi-Tenant Broadleaf implementation.getBaseProfileIdForSite(Site site, ExtensionResultHolder<Long> erh) Handler implementations will populate theExtensionResultHolderwith a valid base profile id if one exists for the sitegetChildSiteIdsForProfile(Site profile, ExtensionResultHolder<Set<Long>> erh) Handler implementations will populate theExtensionResultHolderwith a valid child site ids whose base profile is the given profilegetDefaultCatalogIdForSite(Site site, ExtensionResultHolder<Long> erh) Handler implementations will populate theExtensionResultHolderwith a valid default catalog id for the siteHandler implementations will set the value ofExtensionResultHolderto true if the passed in object supports site discriminator usage.getParentSiteForProfile(Site profile, ExtensionResultHolder<Site> erh) Handler implementations will popoulate theExtensionResultHolderwith a valid parent site if one exists for the profilegetTypeForSite(Site site, ExtensionResultHolder<String> erh) booleanIf false, the ExtensionManager should skip this Handler.updateBasicEntityInformationDto(EntityInformationDto dto, Object entityInstance) updateEntityInformationDto(EntityInformationDto dto, Object entityInstance) Handler implementations will override or populate the values on the passed in dto.Methods inherited from class org.broadleafcommerce.common.extension.ExtensionManager
continueOnHandled, execute, getHandlers, getPriority, getProxy, invoke, registerHandler, setHandlers, shouldContinue, sortHandlersMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.broadleafcommerce.common.extension.ExtensionHandler
getPriority
-
Field Details
-
getDefaultCatalogIdForSite
-
updateEntityInformationDto
-
updateBasicEntityInformationDto
-
getBaseProfileIdForSite
-
getTypeForSite
-
getParentSiteForProfile
-
getOkayToUseSiteDiscriminator
-
findAllCatalogs
-
getChildSiteIdsForProfile
-
-
Constructor Details
-
EntityInformationServiceExtensionManager
public EntityInformationServiceExtensionManager()
-
-
Method Details
-
updateEntityInformationDto
public ExtensionResultStatusType updateEntityInformationDto(EntityInformationDto dto, Object entityInstance) Description copied from interface:EntityInformationServiceExtensionHandlerHandler implementations will override or populate the values on the passed in dto.- Specified by:
updateEntityInformationDtoin interfaceEntityInformationServiceExtensionHandler- Parameters:
dto-EntityInformationDtothe dto to add values toentityInstance- the object to be examined
-
updateBasicEntityInformationDto
public ExtensionResultStatusType updateBasicEntityInformationDto(EntityInformationDto dto, Object entityInstance) - Specified by:
updateBasicEntityInformationDtoin interfaceEntityInformationServiceExtensionHandler
-
isEnabled
public boolean isEnabled()Description copied from interface:ExtensionHandlerIf false, the ExtensionManager should skip this Handler.- Specified by:
isEnabledin interfaceExtensionHandler- Returns:
-
getBaseProfileIdForSite
public ExtensionResultStatusType getBaseProfileIdForSite(Site site, ExtensionResultHolder<Long> erh) Description copied from interface:EntityInformationServiceExtensionHandlerHandler implementations will populate theExtensionResultHolderwith a valid base profile id if one exists for the site- Specified by:
getBaseProfileIdForSitein interfaceEntityInformationServiceExtensionHandler- Parameters:
site-Sitethe Site to check for a base profileerh-ExtensionResultHoldera container for the result
-
getParentSiteForProfile
public ExtensionResultStatusType getParentSiteForProfile(Site profile, ExtensionResultHolder<Site> erh) Description copied from interface:EntityInformationServiceExtensionHandlerHandler implementations will popoulate theExtensionResultHolderwith a valid parent site if one exists for the profile- Specified by:
getParentSiteForProfilein interfaceEntityInformationServiceExtensionHandler- Parameters:
profile-Sitethe profile to check for the parent siteerh-ExtensionResultHoldera container for the result
-
getOkayToUseSiteDiscriminator
public ExtensionResultStatusType getOkayToUseSiteDiscriminator(Object o, ExtensionResultHolder<Boolean> erh) Description copied from interface:EntityInformationServiceExtensionHandlerHandler implementations will set the value ofExtensionResultHolderto true if the passed in object supports site discriminator usage. For example, when running in a Multi-Tenant Broadleaf implementation.- Specified by:
getOkayToUseSiteDiscriminatorin interfaceEntityInformationServiceExtensionHandler- Returns:
-
findAllCatalogs
Description copied from interface:EntityInformationServiceExtensionHandlerHandler implementations will set the value ofExtensionResultHolderto a list of all catalogs, specifically when running in a Multi-Tenant Broadleaf implementation.- Specified by:
findAllCatalogsin interfaceEntityInformationServiceExtensionHandler- Returns:
-
getDefaultCatalogIdForSite
public ExtensionResultStatusType getDefaultCatalogIdForSite(Site site, ExtensionResultHolder<Long> erh) Description copied from interface:EntityInformationServiceExtensionHandlerHandler implementations will populate theExtensionResultHolderwith a valid default catalog id for the site- Specified by:
getDefaultCatalogIdForSitein interfaceEntityInformationServiceExtensionHandler- Parameters:
site-Sitethe Site to get the catalog id fromerh-ExtensionResultHoldera container for the result
-
getChildSiteIdsForProfile
public ExtensionResultStatusType getChildSiteIdsForProfile(Site profile, ExtensionResultHolder<Set<Long>> erh) Description copied from interface:EntityInformationServiceExtensionHandlerHandler implementations will populate theExtensionResultHolderwith a valid child site ids whose base profile is the given profile- Specified by:
getChildSiteIdsForProfilein interfaceEntityInformationServiceExtensionHandler- Parameters:
profile-Sitethe profile to check for the child siteserh- a container for the result
-
getTypeForSite
- Specified by:
getTypeForSitein interfaceEntityInformationServiceExtensionHandler
-