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_MATCH
Fields 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 void
buildAndSetContextState
(AdminPermission adminPermission, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected void
buildAndSetContextState
(AdminRole adminRole, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected void
buildAndSetContextState
(AdminUser adminUser, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected void
buildAndSetContextState
(BooleanSupplier mutabilityChecker, Consumer<MutabilityContextState> contextStateSetter) protected MutabilityContextState
buildContextState
(BooleanSupplier mutabilityChecker) <P> P
fromRepositoryDomain
(Object repositoryDomain, P businessDomain, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected AdminPermissionContextValidator<AdminPermission>
protected AdminRoleContextValidator<AdminRole>
protected AdminUserContextValidator<AdminUser>
int
getOrder()
protected com.broadleafcommerce.common.extension.TypeFactory
void
setAdminPermissionContextValidator
(AdminPermissionContextValidator<AdminPermission> adminPermissionContextValidator) Lazy injection since this mapper is itself a service component.void
setAdminRoleContextValidator
(AdminRoleContextValidator<AdminRole> adminRoleContextValidator) Lazy injection since this mapper is itself a service component.void
setAdminUserContextValidator
(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, 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
-
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:
getDataRoutePartition
in interfacecom.broadleafcommerce.common.extension.data.DataRoutePartitionAware
-
getOrder
public int getOrder()- Specified by:
getOrder
in interfacecom.broadleafcommerce.data.tracking.core.mapping.DomainMapperMember
- Specified by:
getOrder
in interfaceorg.springframework.core.Ordered
-
fromRepositoryDomain
public <P> P fromRepositoryDomain(Object repositoryDomain, P businessDomain, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) - Specified by:
fromRepositoryDomain
in 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
-