@Service(value="blOrderHistoryService") public class OrderHistoryServiceImpl extends Object implements OrderHistoryService
| Modifier and Type | Field and Description |
|---|---|
static String |
ACTIVE_CUSTOMER_OWNERSHIP_ERROR_MESSAGE |
protected org.springframework.core.env.Environment |
env |
protected OrderService |
orderService |
| Constructor and Description |
|---|
OrderHistoryServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
Order |
getOrderDetails(String orderNumber)
Gathers an
Order based on the given value
If `validate.customer.owned.data` is true, then we must throw an exception to avoid giving the currently logged in
Customer access to an order that they do not own. |
protected boolean |
shouldValidateCustomerOwnedData() |
void |
validateCustomerOwnedData(Order order)
If is validation is enabled via the `validate.customer.owned.data` property, a
SecurityException should be thrown if the current customer
(CustomerState.getCustomer()) is not associated to the given . |
public static final String ACTIVE_CUSTOMER_OWNERSHIP_ERROR_MESSAGE
protected OrderService orderService
@Autowired protected org.springframework.core.env.Environment env
public Order getOrderDetails(String orderNumber)
OrderHistoryServiceOrder based on the given value
If `validate.customer.owned.data` is true, then we must throw an exception to avoid giving the currently logged in
Customer access to an order that they do not own.getOrderDetails in interface OrderHistoryServicepublic void validateCustomerOwnedData(Order order) throws SecurityException
OrderHistoryServiceSecurityException should be thrown if the current customer
(CustomerState.getCustomer()) is not associated to the given .validateCustomerOwnedData in interface OrderHistoryServiceSecurityExceptionprotected boolean shouldValidateCustomerOwnedData()
Copyright © 2022. All rights reserved.