Class DefaultB2BEscalationService
- java.lang.Object
-
- de.hybris.platform.b2b.services.impl.DefaultB2BEscalationService
-
- All Implemented Interfaces:
B2BEscalationService
public class DefaultB2BEscalationService extends java.lang.Object implements B2BEscalationService
Default implementation of theB2BEscalationService.- Spring Bean ID:
- b2bEscalationService
-
-
Constructor Summary
Constructors Constructor Description DefaultB2BEscalationService()
-
Method Summary
-
-
-
Method Detail
-
escalateInternal
protected boolean escalateInternal(OrderModel order)
-
escalate
public boolean escalate(OrderModel order)
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
public boolean canEscalate(OrderModel order)
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
public void scheduleEscalationTask(OrderModel order)
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
public boolean handleEscalationFailure(OrderModel order)
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
protected java.lang.String principalListToUidString(java.util.List<B2BCustomerModel> allApprovers)
-
getModelService
protected ModelService getModelService()
-
setModelService
public void setModelService(ModelService modelService)
-
getSessionService
protected SessionService getSessionService()
-
setSessionService
public void setSessionService(SessionService sessionService)
-
setB2bPermissionService
public void setB2bPermissionService(B2BPermissionService<B2BCustomerModel,B2BPermissionResultModel> b2bPermissionService)
-
setB2bApproverService
public void setB2bApproverService(B2BApproverService<B2BCustomerModel> b2bApproverService)
-
setTaskService
public void setTaskService(TaskService taskService)
-
setEscalationTaskRunnerBeanId
public void setEscalationTaskRunnerBeanId(java.lang.String escalationTaskRunnerBeanId)
-
getPermissionResultHelper
protected B2BPermissionResultHelperImpl getPermissionResultHelper()
-
setPermissionResultHelper
public void setPermissionResultHelper(B2BPermissionResultHelperImpl permissionResultHelper)
-
getUserService
protected UserService getUserService()
-
setUserService
public void setUserService(UserService userService)
-
getCommonI18NService
protected CommonI18NService getCommonI18NService()
-
setCommonI18NService
public void setCommonI18NService(CommonI18NService commonI18NService)
-
setConfigurationService
public void setConfigurationService(ConfigurationService configurationService)
-
getB2bWorkflowIntegrationService
protected B2BWorkflowIntegrationService getB2bWorkflowIntegrationService()
-
setB2bWorkflowIntegrationService
public void setB2bWorkflowIntegrationService(B2BWorkflowIntegrationService b2bWorkflowIntegrationService)
-
getB2bPermissionService
protected B2BPermissionService<B2BCustomerModel,B2BPermissionResultModel> getB2bPermissionService()
-
getB2bApproverService
protected B2BApproverService<B2BCustomerModel> getB2bApproverService()
-
getTaskService
protected TaskService getTaskService()
-
getConfigurationService
protected ConfigurationService getConfigurationService()
-
-