Deprecated API
Contents
-
Terminally Deprecated ElementsElementDescriptionorg.broadleafcommerce.core.catalog.dao.ProductDao.readActiveProductsByCategory
(Long, Date, int, int) UseProductDao.readFilteredActiveProductsByCategory(Long, SearchCriteria)
Find all products whose start and end dates are before and after the passed in date, who are related to the given category, match the given search criteria, and are not marked as archived.
UseProductDao.readFilteredActiveProductsByQuery(String, SearchCriteria)
Find all products whose start and end dates are before and after the passed in date, who match the search string, match the given search criteria, and are not marked as archived.use getProductXrefs insteaduse setProductXrefs insteadUse {@link #findActiveProductsByCategory(Category, limit, offset}in favor of the other findSearchResults() method
-
Deprecated InterfacesInterfaceDescriptionThis interface is intended for use by processors that will determine whether a given URL requires special treatment.
Specifically, certain URLs refer to custom managed content pages. Others are setup as SEO friendly URLs for products.
The
ProcessURLFilter
will check it's internal cache to determine which URL processor should be invoked for a passed in URL. If it is unable to find a matching processor in cache, then it will call each processor in turn to provide an attempt to process the URL.Created by bpolster.
in favor ofNotificationDispatcher
ImplementEntityDuplicationHelper
insteadthis has been replaced by invoking the merge cart service explicitly within the cart state request processorinstead, use the ProductType Module's Product Add-Ons to build and configure bundlesinstead, use the ProductType Module's Product Add-Ons to build and configure bundlesThis is no longer required and is instead implemented as a third-party inventory moduleinstead, see the ProductType Module's Product Add-On's usage ofDiscreteOrderItem
sReplaced in functionality bySearchRedirectDao
Replaced in functionality bySearchRedirect
-
Deprecated ClassesClassDescriptionthis was originally designed to search for Skus by the default Sku property if it was not set on an additional sku. In practice this led to a lot of performance issues to actually make it work correctly. Rather than filter directly on Skus then Sku searches/filters should instead go through a Product firstUse
SimpleUrlHandlerMapping
insteadIn favor of org.broadleafcommerce.common.web.BroadleafRequestFilter. formally component name "blProcessURLFilter"This filter sets up the CMS system by setting the current sandbox, locale, time of day, and languageCode that used by content items.
After setting up content variables, it checks to see if a request can be processed by an instance of URLProcessor and if so, delegates the request to that processor.This filter creates an internal cache to quickly determine if the request should be processed by an instance of URLProcessor or be passed to the next filter in the filter chain. The cache settings (including expiration seconds, maximum elements, and concurrency) can be configured via Spring at startup. See
com.google.common.cache.CacheBuilder
for more information on these parameters.do not use this class, useDirectCopyClassTransformer
insteadin favor ofLog4j2ManagementBean
(following Apache's EOL declaration for log4j 1.x)UseSecurityFilter
insteadNO LONGER REQUIRED AND SHOULD NOT BE USED. SEE BroadleafAdminLdapUserDetailsMapper.this class should not be used to statically retrieve localized messages.MessageService
should be used insteadthis class should not be used to statically obtain referenes to properties. Instead, you should either inject an instead of theSystemPropertiesService
directly _or_ inject anEnvironment
to get properties that way, sinceSystemPropertiesPropertySourceRegistrar
adds aSystemPropertiesService
PropertySource
instead, use the ProductType Module's Product Add-Ons to build and configure bundlesinstead, use the ProductType Module's Product Add-Ons to build and configure bundlesThis is no longer required and is instead implemented as a third-party inventory moduleThis is no longer required and is instead implemented as a third-party inventory moduleorg.broadleafcommerce.core.order.domain.weave.OptionalEnterpriseBandedPriceFulfillmentOptionTemplateReplaced in functionality bySearchRedirectDaoImpl
Replaced in functionality bySearchRedirectImpl
this has been replaced by invokingMergeCartService
explicitly within theCartStateRequestProcessor
useGoogleAnalytics4Processor
insteadUseAdminSecurityFilter
insteadNO LONGER REQUIRED AND SHOULD NOT BE USED. SEE BroadleafAdminLdapUserDetailsMapper.- This email approach is no longer recommended. See documentation for BroadleafCommerceUseSessionFixationProtectionStrategy
insteadUseSessionFixationProtectionStrategy
instead
-
Deprecated Enum ClassesEnum ClassDescriptionin favor of Spring MVC mechanisms (@see PageHandlerMapping) Enum that indicates the action to take when processing a URL.
- PAGE - indicates that the URL will be handled as a CMS managed page
- PRODUCT - indicates that the URL is an SEO manged product page
- CATEGORY - indicate that the URL is an SEO managed category URL
- PROCEED - indicates that the URL should be passed through and is not handled by BLC custom filters
- REDIRECT - indicates that the URL should be redirected to another URL
- UNKNOWN - indicates that it has not yet been determined how to process the URL
Created by bpolster.
-
Deprecated FieldsFieldDescriptionorg.broadleafcommerce.common.presentation.override.PropertyType.AdminPresentationCollection.TABORDERAdd
EntityDuplicateModifier
s toblEntityDuplicationHelpers
uses the phonePrimary property on AddressImpl insteadPrefer usingTranslationForm.fieldType
to explicitly specify the field type for more advanced logic. Note thatTranslationForm.getIsRte()
will remain as a shorthand way of determining if the field type should be rendered as HTML/rich-text
-
Deprecated MethodsMethodDescriptionMoved method to superclass- Use
StaticAsset.getTitle()
orStaticAsset.getAltText()
getAltText() instead.- UseStaticAsset.setTitle(String)
orStaticAsset.setAltText(String)
instead.since 3.1.0.org.broadleafcommerce.cms.file.service.StaticAssetService.getStaticAssetEnvironmentSecureUrlPrefix()since 3.1.0.since 3.1.0.since 3.1.0.Use createStaticAssetStorageFromFile instead.Use createStaticAssetStorageFromFile instead.in favor of translating individual fieldsin favor of translating individual fields- no longer supported - simplifying interfaceFunctionality removed as of BLC 3.2
- Not supported - simplifying interfaceFunctionality removed as of BLC 3.2
- no longer supported - simplifying interfaceFunctionality removed as of BLC 3.2
- Not supported - simplifying interfaceFunctionality removed as of BLC 3.2
useDataDrivenEnumeration.getEnumValues()
insteaduseDataDrivenEnumeration.getEnumValues()
insteaduseJCacheConfigurationBuilder.buildConfiguration(JCacheRegionConfiguration)
as this will be removed in the futureuseAbstractMergeBeanPostProcessor.getSourceRef()
insteadIt's difficult to determine this efficiently at runtime. The current implementation will no longer check the use case described above.this is now just a pass-through to#addLeadingUnixSlash(String, String)
. The original method was a misnomer.this is now just a pass-through toBroadleafFileUtils.appendUnixPaths(String, String)
. The original method was a misnomer.this is now just a pass-through to#removeLeadingUnixSlash(String, String)
. The original method was a misnomer.useEntityDuplicator.copy(Class, Long)
. Modifiers have been moved to a list bean to allow easier inclusion (seeEntityDuplicationHelpers
) and copy hints can be added to implementations ofEntityDuplicationHelper
suseEntityDuplicator.copy(MultiTenantCopyContext, MultiTenantCloneable)
. Modifiers have been moved to a list bean to allow easier inclusion (seeEntityDuplicationHelpers
) and copy hints can be added to implementations ofEntityDuplicationHelper
snot supportednot supportedNot used in BLC. In a Multi-site context, may return results outside of a given tenant. Reads all SandBoxes that are of typeSandBoxType.USER
and belong to the given user.Not used in BLC. May return incorrect results in MT installations. Reads all SandBoxes that are of typeSandBoxType.USER
and belong to the given user.Not used by Broadleaf - scheduled to remove on or after 3.3useSite.getSiteResolutionType()
Intended to be used along with the #getSiteIdentifierValue() by the SiteResolver to determine if this is the current site.Not used by Broadleaf - scheduled to remove on or after 3.3Not used by Broadleaf - scheduled to remove on or after 3.3UseSite.setSiteResolutionType(SiteResolutionType)
Sets the site identifier type.useSiteService.findAllNonPersistentActiveSites()
insteaduseSiteService.retrieveNonPersistentDefaultSite()
insteaduseSiteService.retrieveNonPersistentSiteById(Long)
insteaduseSiteService.saveAndReturnNonPersisted(Site)
insteadHighly recommended not to use this method. This method results in global L2 cache region clearing. UseUpdateExecutor.executeUpdateQuery(EntityManager, String, String, Object[], Type[], List)
instead.this has been changed toBroadleafRequestContext.getNonPersistentSite()
to explicitly indicate that the site being returned is not attached to a Hibernate sessionthis has been changed to#setNonPersistentSite()
to explicitly indicate that the site being set is not attached to an active Hibernate sessionUseBroadleafSiteResolver.resolveSite(WebRequest)
insteadUseBroadleafThemeResolver.resolveTheme(WebRequest)
insteadas of 4.2, this is deprecated in favor of the overloaded method that also accepts a controllerType argumentorg.broadleafcommerce.core.catalog.dao.ProductDao.readActiveProductsByCategory(Long, Date, int, int) UseProductDao.readFilteredActiveProductsByCategory(Long, SearchCriteria)
Find all products whose start and end dates are before and after the passed in date, who are related to the given category, match the given search criteria, and are not marked as archived.
UseProductDao.readFilteredActiveProductsByQuery(String, SearchCriteria)
Find all products whose start and end dates are before and after the passed in date, who match the search string, match the given search criteria, and are not marked as archived.Use getActiveProductXrefs() instead.use getAllChildCategoryXrefs() instead.Use getAllParentCategoryXrefs() instead.Use getAllProductXrefs() instead.This will be removed in 3.1.0This will be replaced withCategory.getCategoryAttributesMap()
in 3.1.0.useCategory.getCategoryMediaXref()
insteadUse getChildCategoryXrefs() instead.This approach is inherently inefficient and should no longer be useduseCategory.getParentCategory()
insteadThis will be removed in 3.1.0Use setAllChildCategoryXrefs() instead.Use setAllParentCategoryXrefs() instead.Use setAllProductXrefs() instead.This will be replaced with#setCategoryAttributesMap()
in 3.1.0.useCategory.setCategoryMediaXref(Map)
insteadUse setChildCategoryXrefs() instead.This approach is inherently inefficient and should no longer be useduseCategory.setParentCategory(Category)
insteadUse getAllParentCategoryXrefs() instead.useProduct.getCategory()
insteaduse getProductOptionXrefs insteaduse#getAdditionalSkusXrefs()
insteadUse setAllParentCategoryXrefs() instead.useProduct.setCategory(Category)
insteaduse setProductOptionXrefs insteaduse getProductXrefs insteaduse setProductXrefs insteaduseSku.getInventoryType()
insteaduseSku.getProductOptionValuesCollection()
insteaduseSku.getProductOptionValueXrefs()
insteaduseSku.getMultiValueSkuAttributes()
instead.useSku.getSkuMediaXref()
insteaduseSku.getInventoryType()
orInventoryService.isAvailable(Sku, int)
instead.useSku.getIsMachineSortable()
instead since that is the correct bean notationuseSku.setInventoryType(InventoryType)
insteaduseSku.setIsMachineSortable(Boolean)
instead since that is the correct bean notationuseSku.setProductOptionValueXrefs(Set)
insteaduseSku.setSkuMediaXref(java.util.Map)
insteadUse {@link #findActiveProductsByCategory(Category, limit, offset}this approach is inherently inefficient - don't use.replaced by theOfferAudit
tablereplaced by theOfferAudit
tableuse#getMaxUsesPerOrder()
directly insteadreplaced by theOfferAudit
tableuse#setMaxUsesPerOrder(int)
directly insteadreplaced by theOfferAudit
tableuse getOrderItemAttributes insteaduse setOrderItemAttributes insteadShould useFulfillmentGroup.getFulfillmentOption()
insteaduseAddress.getPhonePrimary()
instead.- useFulfillmentGroup.getRetailFulfillmentPrice()
instead. Deprecated as the price might be for other fulfillment types such as PickUpAtStore fees or download fees.- useFulfillmentGroup.getSaleFulfillmentPrice()
instead.Should useFulfillmentGroup.getFulfillmentOption()
instead- useFulfillmentGroup.getFulfillmentPrice()
instead.Should use#setFulfillmentOption()
insteaduseAddress.getPhonePrimary()
instead- useFulfillmentGroup.setRetailFulfillmentPrice(Money)
instead.- useFulfillmentGroup.setSaleFulfillmentPrice(Money)
instead.Should use#setFulfillmentOption()
instead- useFulfillmentGroup.setRetailFulfillmentPrice(Money)
instead.use the phonePrimary property on the related Address insteaduse the phonePrimary property on the related Address instead- UseOrder.setTotalFulfillmentCharges(Money)
instead.Delegates toOrderItem.getAverageAdjustmentValue()
instead but this method is of little or no value in most practical applications unless only simple promotions are being used.Delegates toOrderItem.getAveragePrice()
If the item is taxable, returnsOrderItem.getAveragePrice()
It is recommended instead that tax calculation engines use the
#getTotalTaxableAmount()
which provides the taxable total for all quantities of this item. This method suffers from penny rounding errors in some situations.org.broadleafcommerce.core.order.domain.OrderItem.setOrderItemAdjustments(List<OrderItemAdjustment>) Item level adjustments are now stored at the OrderItemPriceDetail level instead to prevent unnecessary item splitting of OrderItems when evaluating promotions in the pricing engine.in favor ofCartOperationRequest.getOrderItem()
. Keeping this method for backwards compatibilityin favor ofCartOperationRequest.setOrderItem(OrderItem)
. Keeping this method for backwards compatibilityuse #findSearchResults(SearchCriteria)use #findSearchResults(SearchCriteria)use #findSearchResults(SearchCriteria)UseSolrIndexService.buildIncrementalIndex(String, List, SolrClient)
instead so that the collection that's being used can be customized otherwise the default collection will always be used. Generally useSolrConfiguration#getQueryCollectionName()
orSolrConfiguration#getReindexCollectionName()
UseSolrIndexService.commit(String, SolrClient)
instead so that the collection that's being used can be customized otherwise the default collection will always be used. Generally useSolrConfiguration#getQueryCollectionName()
orSolrConfiguration#getReindexCollectionName()
UseSolrIndexService.commit(String, SolrClient, boolean, boolean, boolean)
instead so that the collection that's being used can be customized otherwise the default collection will always be used. Generally useSolrConfiguration#getQueryCollectionName()
orSolrConfiguration#getReindexCollectionName()
org.broadleafcommerce.core.search.service.solr.index.SolrIndexService.deleteAllDocuments(SolrClient) UseSolrIndexService.deleteAllDocuments(String, SolrClient)
instead so that the collection that's being used can be customized otherwise the default collection will always be used. Generally useSolrConfiguration#getQueryCollectionName()
orSolrConfiguration#getReindexCollectionName()
UseSolrIndexService.deleteAllNamespaceDocuments(String, SolrClient)
instead so that the collection that's being used can be customized otherwise the default collection will always be used. Generally useSolrConfiguration#getQueryCollectionName()
orSolrConfiguration#getReindexCollectionName()
UseSolrIndexService.optimizeIndex(String, SolrClient)
instead so that the collection that's being used can be customized otherwise the default collection will always be used. Generally useSolrConfiguration#getQueryCollectionName()
orSolrConfiguration#getReindexCollectionName()
see SolrHelperService.getPropertyValue()UseSolrHelperService.optimizeIndex(String, SolrClient)
instead so that the collection that's being used can be customized otherwise the default collection will always be used. Generally useSolrConfiguration.getQueryCollectionName()
orSolrConfiguration.getReindexCollectionName()
in favor of the other findSearchResults() methoduseStoreDao.readStoreByStoreName(String)
insteaduseStoreService.readStoreByStoreName(String)
instead.useEntity.getPropertyValidationErrors()
insteaduseEntity.setPropertyValidationErrors(Map)
insteaduse the overloaded method that takes DynamicEntityDao as well. This version does not always properly detect the override from xml.org.broadleafcommerce.openadmin.server.security.domain.AdminSectionImpl.setDisplayController(String) useRecordHelper.getPersistentRecords(FetchRequest)
insteaduseRecordHelper.getRecords(FetchExtractionRequest)
instead.useRecordHelper.getRecords(FetchExtractionRequest)
insteaduseRecordHelper.getRecords(FetchExtractionRequest)
insteaduseRecordHelper.getTotalRecords(FetchRequest)
insteaduse the PersistenceManagerEventHandler api insteaduse the PersistenceManagerEventHandler api insteaduse the PersistenceManagerEventHandler api insteaduseTranslationForm.fieldType
insteadShould useAddress.getPhoneFax()
insteadShould useAddress.getPhonePrimary()
insteadShould useAddress.getPhoneSecondary()
insteadShould useAddress.setPhoneFax(Phone)
insteadShould useAddress.setPhonePrimary(Phone)
insteadShould useAddress.setPhoneSecondary(Phone)
instead
-
Deprecated ConstructorsConstructorDescriptionas of 4.2, this is deprecated in favor of alternative constructors that accept a controllerType argument
-
Deprecated Annotation Interface ElementsAnnotation Interface ElementDescriptionnot supportednot supported
ProductDao.readActiveProductsByCategory(Long)