Interface OrderFormService
- All Known Implementing Classes:
DefaultOrderFormService
public interface OrderFormService
Service to read and update
OrderFormModels.- Spring Bean ID:
- orderFormService
-
Method Summary
Modifier and TypeMethodDescriptiongetOrderFormForCode(String code) Returns the OrderForm with the specified code.getOrderFormsForUser(UserModel userModel) Returns a list of OrderForms for a given user.
-
Method Details
-
getOrderFormForCode
Returns the OrderForm with the specified code.- Parameters:
code- the code of the OrderForm- Returns:
- the OrderForm with the specified code.
- Throws:
UnknownIdentifierException- if no OrderForm with the specified code is foundIllegalArgumentException- if parameter code isnull
-
getOrderFormsForUser
Returns a list of OrderForms for a given user.- Parameters:
userModel- the user who owns the order forms- Returns:
- a list of OrderForm models
-