Class SimplePayloadMapper
java.lang.Object
com.broadleafcommerce.auth.security.service.SimplePayloadMapper
-
Constructor Summary
ConstructorDescriptionSimplePayloadMapper
(com.broadleafcommerce.common.extension.TypeFactory typeFactory) Deprecated, for removal: This API element is subject to removal in a future version.since 1.8.0.SimplePayloadMapper
(com.broadleafcommerce.common.extension.TypeFactory typeFactory, AuthTranslationPostMapperMember translationPostMapperMember) -
Method Summary
Modifier and TypeMethodDescriptionprotected <D extends com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable & com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware,
P>
List<P>applyTranslations
(List<D> repositoryDomains, List<P> projections) <D extends com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable & com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware,
P>
List<P>fromRepositoryDomain
(@NonNull List<D> repositoryDomains) <D extends com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable & com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware,
P>
PfromRepositoryDomain
(D repositoryDomain) <D extends com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable,
P>
PfromRepositoryDomain
(D repositoryDomain, @NonNull Class<P> businessDomain) <D extends com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable & com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware,
P>
PfromRepositoryDomainNoTranslations
(D repositoryDomain) com.broadleafcommerce.data.tracking.core.context.ContextInfo
protected jakarta.servlet.http.HttpServletRequest
protected <D extends com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable>
org.modelmapper.ModelMappergetToMeMapper
(D repositoryDomain, boolean allowNull) protected AuthTranslationPostMapperMember
protected com.broadleafcommerce.common.extension.TypeFactory
<D extends com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable,
P>
DmodifyMap
(D domain, P modifications) Equivalent tomodifyMap(ModelMapperMappable, Object, boolean)
with the boolean allowNull set to true.<D extends com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable,
P>
DmodifyMap
(D repositoryDomain, P businessDomain, boolean allowNull) void
setHttpServletRequest
(jakarta.servlet.http.HttpServletRequest request) <D extends com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable>
DtoRepositoryDomain
(@NonNull Object businessDomain, @NonNull Class<D> repositoryDomain) <D extends com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable,
R extends com.broadleafcommerce.common.extension.DomainTypeAware>
DtoRepositoryDomain
(@NonNull Object businessDomain, R repositoryDomain)
-
Constructor Details
-
SimplePayloadMapper
@Deprecated(forRemoval=true) public SimplePayloadMapper(com.broadleafcommerce.common.extension.TypeFactory typeFactory) Deprecated, for removal: This API element is subject to removal in a future version.since 1.8.0. UseSimplePayloadMapper(TypeFactory, AuthTranslationPostMapperMember)
-
SimplePayloadMapper
public SimplePayloadMapper(com.broadleafcommerce.common.extension.TypeFactory typeFactory, @Nullable AuthTranslationPostMapperMember translationPostMapperMember)
-
-
Method Details
-
toRepositoryDomain
-
toRepositoryDomain
public <D extends com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable,R extends com.broadleafcommerce.common.extension.DomainTypeAware> D toRepositoryDomain(@NonNull @NonNull Object businessDomain, @NonNull R repositoryDomain) -
fromRepositoryDomain
public <D extends com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable,P> P fromRepositoryDomain(@NonNull D repositoryDomain, @NonNull @NonNull Class<P> businessDomain) -
modifyMap
public <D extends com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable,P> D modifyMap(@NonNull D repositoryDomain, @NonNull P businessDomain, boolean allowNull) -
getToMeMapper
protected <D extends com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable> org.modelmapper.ModelMapper getToMeMapper(@NonNull D repositoryDomain, boolean allowNull) -
modifyMap
public <D extends com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable,P> D modifyMap(D domain, P modifications) Equivalent tomodifyMap(ModelMapperMappable, Object, boolean)
with the boolean allowNull set to true.- Type Parameters:
D
- The repository domain objectP
- The business domain object- Parameters:
domain
- The domain to modifymodifications
- The modifications to apply- Returns:
- The modified repository domain
-
fromRepositoryDomain
public <D extends com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable & com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware,P> P fromRepositoryDomain(@NonNull D repositoryDomain) -
fromRepositoryDomain
-
applyTranslations
-
setHttpServletRequest
@Autowired(required=false) public void setHttpServletRequest(jakarta.servlet.http.HttpServletRequest request) -
getContext
@Nullable public com.broadleafcommerce.data.tracking.core.context.ContextInfo getContext() -
getHttpServletRequest
@Nullable protected jakarta.servlet.http.HttpServletRequest getHttpServletRequest() -
fromRepositoryDomainNoTranslations
public <D extends com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable & com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware,P> P fromRepositoryDomainNoTranslations(@NonNull D repositoryDomain) -
getMappers
-
getTypeFactory
protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory() -
getTranslationPostMapperMember
-