Class DefaultB2BEscalationService
java.lang.Object
de.hybris.platform.b2b.services.impl.DefaultB2BEscalationService
- All Implemented Interfaces:
B2BEscalationService
Default implementation of the
B2BEscalationService.- Spring Bean ID:
- b2bEscalationService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanEscalate(OrderModel order) Checks if the order can be escalated to a different approver(s)booleanescalate(OrderModel order) Escalate the order's current approver to the next eligible approver.protected booleanescalateInternal(OrderModel order) protected B2BApproverService<B2BCustomerModel>protected B2BWorkflowIntegrationServiceprotected CommonI18NServiceprotected ConfigurationServiceprotected ModelServiceprotected B2BPermissionResultHelperImplprotected SessionServiceprotected TaskServiceprotected UserServicebooleanEscalate to a member of b2badmingroup assigned to a parent unit of a user who created the order.protected StringprincipalListToUidString(List<B2BCustomerModel> allApprovers) voidscheduleEscalationTask(OrderModel order) Schedule escalation task based on configuration property 'escalationtask.executiontime.milliseconds'voidsetB2bApproverService(B2BApproverService<B2BCustomerModel> b2bApproverService) voidsetB2bPermissionService(B2BPermissionService<B2BCustomerModel, B2BPermissionResultModel> b2bPermissionService) voidsetB2bWorkflowIntegrationService(B2BWorkflowIntegrationService b2bWorkflowIntegrationService) voidsetCommonI18NService(CommonI18NService commonI18NService) voidsetConfigurationService(ConfigurationService configurationService) voidsetEscalationTaskRunnerBeanId(String escalationTaskRunnerBeanId) voidsetModelService(ModelService modelService) voidsetPermissionResultHelper(B2BPermissionResultHelperImpl permissionResultHelper) voidsetSessionService(SessionService sessionService) voidsetTaskService(TaskService taskService) voidsetUserService(UserService userService)
-
Constructor Details
-
DefaultB2BEscalationService
public DefaultB2BEscalationService()
-
-
Method Details
-
escalateInternal
-
escalate
Description copied from interface:B2BEscalationServiceEscalate the order's current approver to the next eligible approver.- Specified by:
escalatein interfaceB2BEscalationService- Parameters:
order- the order in which the approver will be escalated to the next higher eligible approver- Returns:
- true, if successful
-
canEscalate
Description copied from interface:B2BEscalationServiceChecks if the order can be escalated to a different approver(s)- Specified by:
canEscalatein interfaceB2BEscalationService- Parameters:
order- An order placed in a b2b store- Returns:
- True if an order can be escalated to different approver(s)
-
scheduleEscalationTask
Description copied from interface:B2BEscalationServiceSchedule escalation task based on configuration property 'escalationtask.executiontime.milliseconds'- Specified by:
scheduleEscalationTaskin interfaceB2BEscalationService- Parameters:
order- the order in which the approver will be escalated to the next higher eligible approver
-
handleEscalationFailure
Description copied from interface:B2BEscalationServiceEscalate to a member of b2badmingroup assigned to a parent unit of a user who created the order.- Specified by:
handleEscalationFailurein interfaceB2BEscalationService- Parameters:
order- the order- Returns:
- true, if the assignment was successful
-
principalListToUidString
-
getModelService
-
setModelService
-
getSessionService
-
setSessionService
-
setB2bPermissionService
public void setB2bPermissionService(B2BPermissionService<B2BCustomerModel, B2BPermissionResultModel> b2bPermissionService) -
setB2bApproverService
-
setTaskService
-
setEscalationTaskRunnerBeanId
-
getPermissionResultHelper
-
setPermissionResultHelper
-
getUserService
-
setUserService
-
getCommonI18NService
-
setCommonI18NService
-
setConfigurationService
-
getB2bWorkflowIntegrationService
-
setB2bWorkflowIntegrationService
public void setB2bWorkflowIntegrationService(B2BWorkflowIntegrationService b2bWorkflowIntegrationService) -
getB2bPermissionService
-
getB2bApproverService
-
getTaskService
-
getConfigurationService
-