Class Locations


  • public class Locations
    extends Object
    Since:
    5.7
    Author:
    Michiel Meeuwissen
    • Method Detail

      • realize

        public static Program realize​(@NonNull Program program,
                                      @NonNull Platform platform,
                                      @NonNull String pubOptie,
                                      @NonNull nl.vpro.domain.media.support.OwnerType owner,
                                      @NonNull Set<nl.vpro.domain.media.support.OwnerType> replaces)
      • createWebOnlyPredictionIfNeeded

        public static Optional<Prediction> createWebOnlyPredictionIfNeeded​(MediaObject mediaObject)
        Creates a prediction because of a NEP notification.

        If a mediaobject has INTERNETVOD locations (which are not deleted) (which were not created because of NEP)

        then we need to have INTERNETVOD prediction which can be set to 'REALIZED'.

        This is not always the case, this method can correct that.

      • updatePredictionStates

        public static boolean updatePredictionStates​(MediaObject object,
                                                     Instant now)
      • updatePredictionStates

        public static boolean updatePredictionStates​(MediaObject mediaObject,
                                                     Platform platform,
                                                     Instant now)