Uses of Class
org.silverpeas.components.gallery.model.MediaCriteria
Packages that use MediaCriteria
-
Uses of MediaCriteria in org.silverpeas.components.gallery.dao
Methods in org.silverpeas.components.gallery.dao with parameters of type MediaCriteriaModifier and TypeMethodDescriptionstatic longMediaDAO.countByCriteria(MediaCriteria criteria) Counts media according to the given criteria.MediaDAO.findByCriteria(MediaCriteria criteria) Finds media according to the given criteria.static MediaMediaDAO.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 MediaCriteriaModifier and TypeMethodDescriptionMediaCriteria.albumIdentifierIsOneOf(String... albumIds) Sets the list of media album identifiers criterion to find media which are attached to one of the given ones.MediaCriteria.createdBy(org.silverpeas.core.admin.user.model.UserDetail user) Sets the creator criterion to find media created by the given user.static MediaCriteriaMediaCriteria.fromComponentInstanceId(String componentInstanceId) Initializes media search criteria axed on the given media component instance id.static MediaCriteriaMediaCriteria.fromMediaId(String mediaId) Initializes media search criteria axed on the given media identifier.static MediaCriteriaMediaCriteria.fromNbDaysBeforeThatMediaIsNotVisible(Integer nbDaysBeforeThatMediaIsNotVisible) Initializes media search criteria axed on the given nb of days before that a media is not visible.MediaCriteria.identifierIsOneOf(String... identifiers) Sets the identifiers criterion to find the medias with an identifier equals to one of the specified ones.MediaCriteria.limitResultTo(int nbMedia) Limit the number of results.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.onComponentInstanceId(String componentInstanceId) Sets the criterion of the identifier of the component instance the media must be attached.MediaCriteria.orderedBy(MediaCriteria.QUERY_ORDER_BY... orderBys) Configures the order of the media list.MediaCriteria.referenceDateOf(Date referenceDate) Sets the reference date criterion (the date of the day by default).MediaCriteria.setRequester(org.silverpeas.core.admin.user.model.UserDetail requester) Sets the requester.MediaCriteria.withVisibility(MediaCriteria.VISIBILITY visibility) Sets the visibility criterion to find the medias according to their period of visibility.