|
||||||||||
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 MediaCriteriaProcessor
public void endProcessing()
MediaCriteriaProcessor
endProcessing
in interface MediaCriteriaProcessor
public org.apache.commons.lang3.tuple.Pair<String,List<Object>> result()
MediaCriteriaProcessor
MediaCriteriaProcessor.endProcessing()
method).
result
in interface MediaCriteriaProcessor
public 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 MediaCriteriaProcessor
visibility
- the requested visibility.
public MediaCriteriaProcessor processComponentInstance(String componentInstanceId)
MediaCriteriaProcessor
processComponentInstance
in interface MediaCriteriaProcessor
componentInstanceId
- the identifier of the component instance concerned by the
criterion.
public MediaCriteriaProcessor processAlbums(List<String> albumIds)
MediaCriteriaProcessor
processAlbums
in interface MediaCriteriaProcessor
albumIds
- the identifiers of albums concerned by the criterion.
public MediaCriteriaProcessor processCreator(com.stratelia.webactiv.beans.admin.UserDetail creator)
MediaCriteriaProcessor
processCreator
in interface MediaCriteriaProcessor
creator
- the user concerned by the criterion.
public MediaCriteriaProcessor processMediaTypes(List<MediaType> mediaTypes)
MediaCriteriaProcessor
processMediaTypes
in interface MediaCriteriaProcessor
mediaTypes
- the media types concerned by the criterion.
public MediaCriteriaProcessor processNbDaysBeforeThatMediaIsNotVisible(Date referenceDate, int nbDaysBeforeThatMediaIsNotVisible)
MediaCriteriaProcessor
processNbDaysBeforeThatMediaIsNotVisible
in interface MediaCriteriaProcessor
nbDaysBeforeThatMediaIsNotVisible
- the nb of days before that a media is not visible.
public MediaCriteriaProcessor processOrdering(List<MediaCriteria.QUERY_ORDER_BY> orderings)
MediaCriteriaProcessor
processOrdering
in interface MediaCriteriaProcessor
orderings
- the result orderings concerned by the criterion.
public MediaCriteriaProcessor processIdentifiers(List<String> identifiers)
MediaCriteriaProcessor
processIdentifiers
in interface MediaCriteriaProcessor
identifiers
- 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 |