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 public class MonetaryMapperMember extends Object implements DomainMapperMember
Deprecated.Converts repository-stored instances of money (which is always just the numeric value) into their business-domain currency instances- Author:
- Phillip Verheyden (phillipuniverse)
-
-
Constructor Summary
Constructors Constructor Description MonetaryMapperMember(CurrencyContextProvider<Object> currencyProvider)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description <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.String
getDataRoutePartition()
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 Detail
-
MonetaryMapperMember
public MonetaryMapperMember(CurrencyContextProvider<Object> currencyProvider)
Deprecated.
-
-
Method Detail
-
getDataRoutePartition
public String 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.
-
-