| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.silverpeas.gallery.dao.MediaSQLQueryBuilder
public class MediaSQLQueryBuilder
A dynamic builder of a SQL query.
| Constructor Summary | |
|---|---|
MediaSQLQueryBuilder()
 | 
|
| 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.  | 
 org.apache.commons.lang3.tuple.Pair<String,List<Object>> | 
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.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public MediaSQLQueryBuilder()
| Method Detail | 
|---|
public void startProcessing()
MediaCriteriaProcessor
startProcessing in interface MediaCriteriaProcessorpublic void endProcessing()
MediaCriteriaProcessor
endProcessing in interface MediaCriteriaProcessorpublic org.apache.commons.lang3.tuple.Pair<String,List<Object>> result()
MediaCriteriaProcessorMediaCriteriaProcessor.endProcessing() method).
result in interface MediaCriteriaProcessorpublic MediaCriteriaProcessor then()
MediaCriteriaProcessor
then in interface MediaCriteriaProcessor
public MediaCriteriaProcessor processVisibility(MediaCriteria.VISIBILITY visibility,
                                                Date dateReference,
                                                com.stratelia.webactiv.beans.admin.UserDetail creator)
MediaCriteriaProcessor
processVisibility in interface MediaCriteriaProcessorvisibility - the requested visibility.
public MediaCriteriaProcessor processComponentInstance(String componentInstanceId)
MediaCriteriaProcessor
processComponentInstance in interface MediaCriteriaProcessorcomponentInstanceId - the identifier of the component instance concerned by the
 criterion.
public MediaCriteriaProcessor processAlbums(List<String> albumIds)
MediaCriteriaProcessor
processAlbums in interface MediaCriteriaProcessoralbumIds - the identifiers of albums concerned by the criterion.
public MediaCriteriaProcessor processCreator(com.stratelia.webactiv.beans.admin.UserDetail creator)
MediaCriteriaProcessor
processCreator in interface MediaCriteriaProcessorcreator - the user concerned by the criterion.
public MediaCriteriaProcessor processMediaTypes(List<MediaType> mediaTypes)
MediaCriteriaProcessor
processMediaTypes in interface MediaCriteriaProcessormediaTypes - the media types concerned by the criterion.
public MediaCriteriaProcessor processNbDaysBeforeThatMediaIsNotVisible(Date referenceDate,
                                                                       int nbDaysBeforeThatMediaIsNotVisible)
MediaCriteriaProcessor
processNbDaysBeforeThatMediaIsNotVisible in interface MediaCriteriaProcessornbDaysBeforeThatMediaIsNotVisible - the nb of days before that a media is not visible.
public MediaCriteriaProcessor processOrdering(List<MediaCriteria.QUERY_ORDER_BY> orderings)
MediaCriteriaProcessor
processOrdering in interface MediaCriteriaProcessororderings - the result orderings concerned by the criterion.
public MediaCriteriaProcessor processIdentifiers(List<String> identifiers)
MediaCriteriaProcessor
processIdentifiers in interface MediaCriteriaProcessoridentifiers - the media identifiers concerned by the criterion.
public List<Media> orderingResult(List<Media> media)
MediaCriteriaProcessor
orderingResult in interface MediaCriteriaProcessor
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||