Class MonetaryMapperMember
java.lang.Object
com.broadleafcommerce.data.tracking.core.mapping.money.MonetaryMapperMember
- All Implemented Interfaces:
com.broadleafcommerce.common.extension.data.DataRoutePartitionAware
,DomainMapper
,DomainMapperMember
,org.springframework.core.Ordered
Deprecated.
Converts repository-stored instances of money (which is always just the numeric value) into their
business-domain currency instances
- Author:
- Phillip Verheyden (phillipuniverse)
-
Field Summary
Fields inherited from interface com.broadleafcommerce.common.extension.data.DataRoutePartitionAware
ALL_MATCH
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
ConstructorDescriptionMonetaryMapperMember
(CurrencyContextProvider<Object> currencyProvider) Deprecated. -
Method Summary
Modifier and TypeMethodDescription<P> P
fromRepositoryDomain
(Object repositoryDomain, P businessDomain, ContextInfo contextInfo) Deprecated.Map and return a populated business domain instance, based on information provided in a repository domain instance.Deprecated.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.broadleafcommerce.data.tracking.core.mapping.DomainMapper
deleteMap, getBusinessDomainType, modifyMap
Methods inherited from interface com.broadleafcommerce.data.tracking.core.mapping.DomainMapperMember
fromBusinessDomain, getOrder
-
Constructor Details
-
MonetaryMapperMember
Deprecated.
-
-
Method Details
-
getDataRoutePartition
Deprecated.- Specified by:
getDataRoutePartition
in interfacecom.broadleafcommerce.common.extension.data.DataRoutePartitionAware
-
fromRepositoryDomain
@Nullable public <P> P fromRepositoryDomain(Object repositoryDomain, P businessDomain, @Nullable ContextInfo contextInfo) Deprecated.Description copied from interface:DomainMapperMember
Map and return a populated business domain instance, based on information provided in a repository domain instance. The passed businessDomain parameter is generally transformed and returned.- Specified by:
fromRepositoryDomain
in interfaceDomainMapperMember
- Type Parameters:
P
- The business domain type- Parameters:
repositoryDomain
- The repository domain instance containing the relevant property informationbusinessDomain
- The business domain instance to affect and returncontextInfo
- The context information used to make tracking determinations relevant to sandboxing and multitenant concerns. SeeTrackableRepository
for more info on persistence behavior based on context.- Returns:
- The populated business domain instance. Should return null if no action taken.
-