| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MediaOrderCriteriaProcessor
A processor of a order criteria. The aim of a such processor is to process each criterion of the criteria in the order expected by the caller in order to perform some specific works.
| Method Summary | ||
|---|---|---|
 void | 
endProcessing()
Informs the processor the process is ended.  | 
|
 List<Order> | 
orderingResult(List<Order> order)
This method must be called after the order list is entirely loaded.  | 
|
 MediaOrderCriteriaProcessor | 
processComponentInstance(String componentInstanceId)
Processes the criterion on the component instance identifier.  | 
|
 MediaOrderCriteriaProcessor | 
processIdentifiers(List<String> identifiers)
Processes the criterion on the order identifiers.  | 
|
 MediaOrderCriteriaProcessor | 
processNbDaysAfterThatDeleteAnOrder(Date referenceDate,
                                    int nbDaysAfterThatDeleteAnOrder)
Processes the criterion on the nb of days after that an order should be deleted.  | 
|
 MediaOrderCriteriaProcessor | 
processOrderer(String ordererId)
Processes the criterion on the orderer identifier of the orders.  | 
|
 | 
result()
Gets the result of the processing.  | 
|
 void | 
startProcessing()
Informs the processor the start of the process.  | 
|
 MediaOrderCriteriaProcessor | 
then()
Informs the processor that there is a new criterion to process.  | 
|
| Method Detail | 
|---|
void startProcessing()
void endProcessing()
MediaOrderCriteriaProcessor then()
MediaOrderCriteriaProcessor processIdentifiers(List<String> identifiers)
identifiers - the order identifiers concerned by the criterion.
MediaOrderCriteriaProcessor processComponentInstance(String componentInstanceId)
componentInstanceId - the identifier of the component instance concerned by the
 criterion.
MediaOrderCriteriaProcessor processOrderer(String ordererId)
ordererId - the orderer user concerned by the criterion.
MediaOrderCriteriaProcessor processNbDaysAfterThatDeleteAnOrder(Date referenceDate,
                                                                int nbDaysAfterThatDeleteAnOrder)
referenceDate - nbDaysAfterThatDeleteAnOrder - the nb of days after that an order should be deleted.
<T> T result()
endProcessing() method).
T - the type of the result.
List<Order> orderingResult(List<Order> order)
order - 
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||