Package nl.vpro.domain.media
Class Locations
java.lang.Object
nl.vpro.domain.media.Locations
- Since:
- 5.7
- Author:
- Michiel Meeuwissen
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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 Details
-
realize
-
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
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
-
updatePredictionStates
public static boolean updatePredictionStates(MediaObject mediaObject, Platform platform, Instant now)
-