Class MutabilityContextStateMapperMember
java.lang.Object
com.broadleafcommerce.adminuser.user.mapping.MutabilityContextStateMapperMember
- All Implemented Interfaces:
com.broadleafcommerce.common.extension.data.DataRoutePartitionAware,com.broadleafcommerce.data.tracking.core.mapping.DomainMapper,com.broadleafcommerce.data.tracking.core.mapping.DomainMapperMember,org.springframework.core.Ordered
public class MutabilityContextStateMapperMember
extends Object
implements com.broadleafcommerce.data.tracking.core.mapping.DomainMapperMember
Builds and sets
MutabilityContextState on supported domains.- Author:
- Samarth Dhruva (samarthd)
-
Field Summary
Fields inherited from interface com.broadleafcommerce.common.extension.data.DataRoutePartitionAware
ALL_MATCHFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionMutabilityContextStateMapperMember(com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbuildAndSetContextState(AdminPermission adminPermission, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected voidbuildAndSetContextState(AdminRole adminRole, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected voidbuildAndSetContextState(AdminUser adminUser, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected voidbuildAndSetContextState(BooleanSupplier mutabilityChecker, Consumer<MutabilityContextState> contextStateSetter) protected MutabilityContextStatebuildContextState(BooleanSupplier mutabilityChecker) <P> PfromRepositoryDomain(Object repositoryDomain, P businessDomain, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected AdminPermissionContextValidator<AdminPermission>protected AdminRoleContextValidator<AdminRole>protected AdminUserContextValidator<AdminUser>intgetOrder()protected com.broadleafcommerce.common.extension.TypeFactoryvoidsetAdminPermissionContextValidator(AdminPermissionContextValidator<AdminPermission> adminPermissionContextValidator) Lazy injection since this mapper is itself a service component.voidsetAdminRoleContextValidator(AdminRoleContextValidator<AdminRole> adminRoleContextValidator) Lazy injection since this mapper is itself a service component.voidsetAdminUserContextValidator(AdminUserContextValidator<AdminUser> adminUserContextValidator) Lazy injection since this mapper is itself a service component.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.broadleafcommerce.data.tracking.core.mapping.DomainMapper
deleteMap, getBusinessDomainType, modifyMapMethods inherited from interface com.broadleafcommerce.data.tracking.core.mapping.DomainMapperMember
fromBusinessDomain
-
Constructor Details
-
MutabilityContextStateMapperMember
public MutabilityContextStateMapperMember(com.broadleafcommerce.common.extension.TypeFactory typeFactory)
-
-
Method Details
-
setAdminRoleContextValidator
@Autowired @Lazy public void setAdminRoleContextValidator(AdminRoleContextValidator<AdminRole> adminRoleContextValidator) Lazy injection since this mapper is itself a service component. This avoids circular dependency exceptions- Parameters:
adminRoleContextValidator- the role context validator
-
setAdminPermissionContextValidator
@Autowired @Lazy public void setAdminPermissionContextValidator(AdminPermissionContextValidator<AdminPermission> adminPermissionContextValidator) Lazy injection since this mapper is itself a service component. This avoids circular dependency exceptions- Parameters:
adminPermissionContextValidator- the permission context validator
-
setAdminUserContextValidator
@Autowired @Lazy public void setAdminUserContextValidator(AdminUserContextValidator<AdminUser> adminUserContextValidator) Lazy injection since this mapper is itself a service component. This avoids circular dependency exceptions- Parameters:
adminUserContextValidator- the user context validator
-
getDataRoutePartition
- Specified by:
getDataRoutePartitionin interfacecom.broadleafcommerce.common.extension.data.DataRoutePartitionAware
-
getOrder
public int getOrder()- Specified by:
getOrderin interfacecom.broadleafcommerce.data.tracking.core.mapping.DomainMapperMember- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-
fromRepositoryDomain
public <P> P fromRepositoryDomain(Object repositoryDomain, P businessDomain, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) - Specified by:
fromRepositoryDomainin interfacecom.broadleafcommerce.data.tracking.core.mapping.DomainMapperMember
-
buildAndSetContextState
protected void buildAndSetContextState(AdminRole adminRole, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
buildAndSetContextState
protected void buildAndSetContextState(BooleanSupplier mutabilityChecker, Consumer<MutabilityContextState> contextStateSetter) -
buildContextState
-
buildAndSetContextState
protected void buildAndSetContextState(AdminUser adminUser, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
buildAndSetContextState
protected void buildAndSetContextState(AdminPermission adminPermission, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
getTypeFactory
protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory() -
getAdminRoleContextValidator
-
getAdminPermissionContextValidator
-
getAdminUserContextValidator
-