Package nl.vpro.domain.media
Class Locations
- java.lang.Object
-
- nl.vpro.domain.media.Locations
-
public class Locations extends Object
- Since:
- 5.7
- Author:
- Michiel Meeuwissen
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Locations.RealizeResult
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Optional<Prediction>
createWebOnlyPredictionIfNeeded(MediaObject mediaObject)
Creates a prediction because of a NEP notification.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)
static Locations.RealizeResult
realizeStreamingPlatformIfNeeded(@NonNull MediaObject mediaObject, @NonNull Platform platform, @NonNull Predicate<Location> locationPredicate, @NonNull Instant now)
static void
removeLocationForPlatformIfNeeded(MediaObject mediaObject, Platform platform, Predicate<Location> locationPredicate, Instant now)
static boolean
updatePredictionStates(MediaObject object, Instant now)
static boolean
updatePredictionStates(MediaObject mediaObject, Platform platform, Instant now)
-
-
-
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)
-
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)
-
-