| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MediaCriteriaProcessor
A processor of a media 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<Media> | 
orderingResult(List<Media> media)
This method must be called after the media list is entirely loaded.  | 
|
 MediaCriteriaProcessor | 
processAlbums(List<String> albumIds)
Processes the criterion on the identifiers of albums (Actually, Album = Node).  | 
|
 MediaCriteriaProcessor | 
processComponentInstance(String componentInstanceId)
Processes the criterion on the component instance identifier.  | 
|
 MediaCriteriaProcessor | 
processCreator(com.stratelia.webactiv.beans.admin.UserDetail creator)
Processes the criterion on the creator of the medias.  | 
|
 MediaCriteriaProcessor | 
processIdentifiers(List<String> identifiers)
Processes the criterion on the media identifiers.  | 
|
 MediaCriteriaProcessor | 
processMediaTypes(List<MediaType> mediaTypes)
Processes the criterion on type of media.  | 
|
 MediaCriteriaProcessor | 
processNbDaysBeforeThatMediaIsNotVisible(Date referenceDate,
                                         int nbDaysBeforeThatMediaIsNotVisible)
Processes the criterion on the nb of days before that a media is not visible.  | 
|
 MediaCriteriaProcessor | 
processOrdering(List<MediaCriteria.QUERY_ORDER_BY> orderings)
Processes the criterion on orderings of the medias matching the criteria.  | 
|
 MediaCriteriaProcessor | 
processVisibility(MediaCriteria.VISIBILITY visibility,
                  Date dateReference,
                  com.stratelia.webactiv.beans.admin.UserDetail creator)
Processes the criterion on the media visibility.  | 
|
 | 
result()
Gets the result of the processing.  | 
|
 void | 
startProcessing()
Informs the processor the start of the process.  | 
|
 MediaCriteriaProcessor | 
then()
Informs the processor that there is a new criterion to process.  | 
|
| Method Detail | 
|---|
void startProcessing()
void endProcessing()
MediaCriteriaProcessor then()
MediaCriteriaProcessor processVisibility(MediaCriteria.VISIBILITY visibility,
                                         Date dateReference,
                                         com.stratelia.webactiv.beans.admin.UserDetail creator)
visibility - the requested visibility.dateReference - creator - 
MediaCriteriaProcessor processIdentifiers(List<String> identifiers)
identifiers - the media identifiers concerned by the criterion.
MediaCriteriaProcessor processComponentInstance(String componentInstanceId)
componentInstanceId - the identifier of the component instance concerned by the
 criterion.
MediaCriteriaProcessor processAlbums(List<String> albumIds)
albumIds - the identifiers of albums concerned by the criterion.
MediaCriteriaProcessor processCreator(com.stratelia.webactiv.beans.admin.UserDetail creator)
creator - the user concerned by the criterion.
MediaCriteriaProcessor processMediaTypes(List<MediaType> mediaTypes)
mediaTypes - the media types concerned by the criterion.
MediaCriteriaProcessor processNbDaysBeforeThatMediaIsNotVisible(Date referenceDate,
                                                                int nbDaysBeforeThatMediaIsNotVisible)
referenceDate - nbDaysBeforeThatMediaIsNotVisible - the nb of days before that a media is not visible.
MediaCriteriaProcessor processOrdering(List<MediaCriteria.QUERY_ORDER_BY> orderings)
orderings - the result orderings concerned by the criterion.
<T> T result()
endProcessing() method).
T - the type of the result.
List<Media> orderingResult(List<Media> media)
media - 
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||