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 Type
    Method
    Description
    select(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

      Collection<T> select(MediaPackage mediaPackage, boolean withTagsAndFlavors)
      Returns the media package elements that are matched by this selector.
      Parameters:
      mediaPackage - the media package
      withTagsAndFlavors - 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 package
      publicationChannel - the publication to get elements from
      withTagsAndFlavors - define if the elements must match with flavors and tags, or just one of these parameters
      Returns:
      the selected elements
    • select

      Collection<T> select(List<MediaPackageElement> elements, boolean withTagsAndFlavors)
      Returns the media package elements that are matched by this selector.
      Parameters:
      elements - the elements to select from
      withTagsAndFlavors - define if the elements must match with flavors and tags, or just one of these parameters
      Returns:
      the selected elements