Package org.opencastproject.mediapackage
Interface MediaPackageElementSelector<T extends MediaPackageElement>
- All Known Implementing Classes:
AbstractMediaPackageElementSelector,AttachmentSelector,CatalogSelector,SimpleElementSelector,TrackSelector
public interface MediaPackageElementSelector<T extends MediaPackageElement>
A
MedikaPackageElementSelector is the way to set up rules for extracting elements from a media package
dependent on their flavor.-
Method Summary
Modifier and TypeMethodDescriptionselect(List<MediaPackageElement> elements, boolean withTagsAndFlavors) Returns the media package elements that are matched by this selector.select(MediaPackage mediaPackage, boolean withTagsAndFlavors) Returns the media package elements that are matched by this selector.select(MediaPackage mediaPackage, String publicationChannel, boolean withTagsAndFlavors) Returns the elements that are matched by this selector from the given publication of the given media package.
-
Method Details
-
select
Returns the media package elements that are matched by this selector.- Parameters:
mediaPackage- the media packagewithTagsAndFlavors- define if the elements must match with flavors and tags, or just one of these parameters- Returns:
- the selected elements
-
select
Collection<T> select(MediaPackage mediaPackage, String publicationChannel, boolean withTagsAndFlavors) Returns the elements that are matched by this selector from the given publication of the given media package. If the publication could not be found on the media package, returns an empty collection.- Parameters:
mediaPackage- the media packagepublicationChannel- the publication to get elements fromwithTagsAndFlavors- define if the elements must match with flavors and tags, or just one of these parameters- Returns:
- the selected elements
-
select
Returns the media package elements that are matched by this selector.- Parameters:
elements- the elements to select fromwithTagsAndFlavors- define if the elements must match with flavors and tags, or just one of these parameters- Returns:
- the selected elements
-