## Uses of Class
org.silverpeas.components.gallery.model.MediaCriteria

- Packages that use MediaCriteria
  Package | Description
  --- | ---
  org.silverpeas.components.gallery.dao |
  org.silverpeas.components.gallery.model |

- - ### Uses of MediaCriteria in org.silverpeas.components.gallery.dao

    Methods in org.silverpeas.components.gallery.dao with parameters of type MediaCriteria
    Modifier and Type | Method | Description
    --- | --- | ---
    `static long` | MediaDAO.`countByCriteria​(MediaCriteria criteria)` | Counts media according to the given criteria.
    `static List<Media>` | MediaDAO.`findByCriteria​(MediaCriteria criteria)` | Finds media according to the given criteria.
    `static Media` | MediaDAO.`getByCriteria​(MediaCriteria criteria)` | Gets the media behind the specified criteria.

  - ### Uses of MediaCriteria in org.silverpeas.components.gallery.model

    Methods in org.silverpeas.components.gallery.model that return MediaCriteria
    Modifier and Type | Method | Description
    --- | --- | ---
    `MediaCriteria` | MediaCriteria.`albumIdentifierIsOneOf​(String... albumIds)` | Sets the list of media album identifiers criterion to find media which are attached to one of the given ones.
    `static MediaCriteria` | MediaCriteria.`fromComponentInstanceId​(String componentInstanceId)` | Initializes media search criteria axed on the given media component instance id.
    `static MediaCriteria` | MediaCriteria.`fromMediaId​(String mediaId)` | Initializes media search criteria axed on the given media identifier.
    `static MediaCriteria` | MediaCriteria.`fromNbDaysBeforeThatMediaIsNotVisible​(Integer nbDaysBeforeThatMediaIsNotVisible)` | Initializes media search criteria axed on the given nb of days before that a media is not visible.
    `MediaCriteria` | MediaCriteria.`identifierIsOneOf​(String... identifiers)` | Sets the identifiers criterion to find the medias with an identifier equals to one of the specified ones.
    `MediaCriteria` | MediaCriteria.`limitResultTo​(int nbMedia)` | Limit the number of results.
    `MediaCriteria` | MediaCriteria.`mediaTypeIsOneOf​(MediaType... mediaTypes)` | Sets the list of media type criterion to find media which have their type equals to one of the given ones.
    `MediaCriteria` | MediaCriteria.`onComponentInstanceId​(String componentInstanceId)` | Sets the criterion of the identifier of the component instance the media must be attached.
    `MediaCriteria` | MediaCriteria.`orderedBy​(MediaCriteria.QUERY_ORDER_BY... orderBys)` | Configures the order of the media list.
    `MediaCriteria` | MediaCriteria.`referenceDateOf​(Date referenceDate)` | Sets the reference date criterion (the date of the day by default).
    `MediaCriteria` | MediaCriteria.`setRequester​(org.silverpeas.core.admin.user.model.UserDetail requester)` | Sets the requester.
    `MediaCriteria` | MediaCriteria.`withVisibility​(MediaCriteria.VISIBILITY visibility)` | Sets the visibility criterion to find the medias according to their period of visibility.