Class Locations

java.lang.Object
nl.vpro.domain.media.Locations

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

    • 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)
    • realizeStreamingPlatformIfNeeded

      public static Locations.RealizeResult realizeStreamingPlatformIfNeeded(@NonNull MediaObject mediaObject, @NonNull Platform platform, @NonNull Predicate<Location> locationPredicate, @NonNull Instant now)
    • removeLocationForPlatformIfNeeded

      public static void removeLocationForPlatformIfNeeded(MediaObject mediaObject, Platform platform, Predicate<Location> locationPredicate, Instant now)
    • 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)