Uses of Enum Class
nl.vpro.domain.media.Platform
Package
Description
This package basically contains the full media domain objects.
The update objects are data transfer objects, and represent versions of the objects in
nl.vpro.domain.media
that are simplified, and contain in principal no redundant information, or data that is not updatable or settable at all.-
Uses of Platform in nl.vpro.domain.media
Modifier and TypeFieldDescriptionstatic final Platform
Platform.INTERNETAOD
Audible on internet.protected @NotNull(message="nl.vpro.constraints.NotNull") Platform
GeoRestriction.platform
protected Platform
Location.platform
protected @NotNull Platform
Prediction.platform
Modifier and TypeFieldDescriptionstatic javax.persistence.metamodel.SingularAttribute<GeoRestriction,
Platform> GeoRestriction_.platform
Location_.platform
static javax.persistence.metamodel.SingularAttribute<Prediction,
Platform> Prediction_.platform
Modifier and TypeMethodDescriptionstatic Platform
GeoRestriction.getPlatform()
Location.getPlatform()
Prediction.getPlatform()
static Platform
Returns the enum constant of this class with the specified name.static Platform
Platform.valueOfOrNull
(String id) static Platform[]
Platform.values()
Returns an array containing the constants of this enum class, in the order they are declared.Modifier and TypeMethodDescriptionMediaObjects.nowPlayable
(@NonNull MediaObject mediaObject) On which platform the given mediaobject is currently playable.MediaObjects.playableRanges
(@NonNull MediaObject mediaObject) AsMediaObjects.playableRanges(MediaObject, ZoneId)
, but returning ranges ofInstant
, indicating absolute times.static Map<Platform,
com.google.common.collect.Range<LocalDateTime>> MediaObjects.playableRanges
(@NonNull MediaObject mediaObject, ZoneId zoneId) Given aMediaObject
returns a map with for every platform for which that is relevant aRange
ofLocalDateTime
is return indicating the period this object is playable at that platformMediaObjects.wasPlayable
(@NonNull MediaObject mediaObject) MediaObjects.willBePlayable
(@NonNull MediaObject mediaObject) Modifier and TypeMethodDescriptionAuthorityLocations.addVideoLocation
(@NonNull Program program, @NonNull Platform platform, Encryption encryption, @NonNull String pubOptie, nl.vpro.domain.media.support.OwnerType owner, @NonNull Set<nl.vpro.domain.media.support.OwnerType> replaces) static Prediction.Builder
MediaObject.findOrCreatePrediction
(Platform platform) protected Prediction
MediaObject.findOrCreatePrediction
(Platform platform, boolean planned, Consumer<Prediction> onCreate) MediaObject.getAuthority
(Platform platform) seePrediction.getAuthority()
()} or User, if no such prediction record.MediaObjects.getAvailableLocation
(Platform platform, MediaObject m, Instant now) Determines if for a given platform, the media object has a location, and returns (one) if there is.static String
GeoRestriction.getJsonValue
(Platform platform, Region region) MediaObject.getPrediction
(Platform platform) Returns the prediction for givenPlatform
.static @Nullable Prediction
MediaObjects.getPrediction
(Platform platform, @Nullable Collection<Prediction> preds) static Prediction
MediaObjects.getPredictionOrNew
(Platform platform, Collection<Prediction> preds, Function<Platform, Prediction> constructor) MediaObject.getPredictionWithoutFixing
(Platform platform) LikeMediaObject.getPrediction(Platform)
but without also implicitly correcting theprediction state
if that happens to be not consistent with thelocations
.boolean
static boolean
MediaObjects.nowPlayable
(@NonNull Platform platform, @NonNull MediaObject mediaObject) Whether the given mediaobject is now playable at given platform@NonNull GeoRestriction.Builder
@NonNull Location.Builder
@NonNull Prediction.Builder
MediaObjects.playableRange
(@NonNull Platform platform, @NonNull MediaObject mediaObject) Returns for a certain platform the range it which a mediaobject is playable.AuthorityLocations.realizeStreamingPlatformIfNeeded
(@NonNull MediaObject mediaObject, @NonNull Platform platform) This will be called per platform if an NEP notify is received.void
AuthorityLocations.removeLocationForPlatformIfNeeded
(@NonNull MediaObject mediaObject, Platform platform, Predicate<Location> locationPredicate, Instant now) boolean
MediaObject.removePrediction
(Platform platform) void
MediaObject.revokeLocations
(Platform platform) void
GeoRestriction.setPlatform
(Platform platform) void
Location.setPlatform
(@NonNull Platform platform) void
Prediction.setPlatform
(Platform platform) static Prediction
Prediction.unavailable
(MediaObject parent, Platform platform, Authority authority) static Prediction
MediaObjects.updatePrediction
(MediaObject media, Platform platform, Embargo embargo, Encryption drm) static Prediction
MediaObjects.updatePrediction
(MediaObject media, Platform platform, Prediction.State state) static boolean
AuthorityLocations.updatePredictionStates
(MediaObject mediaObject, Platform platform, Instant now) static Prediction
Prediction.virtual
(MediaObject parent, Platform platform, Authority authority) static boolean
MediaObjects.wasPlayable
(@NonNull Platform platform, @NonNull MediaObject mediaObject) static boolean
MediaObjects.willBePlayable
(@NonNull Platform platform, @NonNull MediaObject mediaObject) Returns whether the mediaobject for given platform is now not playable, but will be.static Optional<LocalDateTime>
MediaObjects.willBePlayableAt
(@NonNull Platform platform, @Nullable MediaObject mediaObject) Determines for a certainPlatform
s andMediaObject
when it might become playable.Modifier and TypeMethodDescriptionstatic Prediction
MediaObjects.getPredictionOrNew
(Platform platform, Collection<Prediction> preds, Function<Platform, Prediction> constructor) ModifierConstructorDescriptionprotected
Location
(String programUrl, nl.vpro.domain.media.support.OwnerType owner, AVAttributes avAttributes, Duration duration, Integer bitrate, AVFileFormat avFileFormat, AudioAttributes audioAttributes, VideoAttributes videoAttributes, Platform platform, Instant publishStart, Instant publishStop, Workflow workflow, Instant creationDate, Long byteSize, Long id) Location
(String programUrl, nl.vpro.domain.media.support.OwnerType owner, Platform platform, AVAttributes avAttributes) Prediction
(Platform platform) Prediction
(Platform platform, Instant publishStart, Instant publishStop) Prediction
(Platform platform, Prediction.State state) -
Uses of Platform in nl.vpro.domain.media.update
Modifier and TypeFieldDescriptionprotected Platform
GeoRestrictionUpdate.platform
protected @NotNull Platform
PredictionUpdate.platform
Modifier and TypeMethodDescriptionGeoRestrictionUpdate.getPlatform()
PredictionUpdate.getPlatform()
Modifier and TypeMethodDescriptionstatic GeoRestrictionUpdate
@NonNull PredictionUpdate.Builder
void
GeoRestrictionUpdate.setPlatform
(Platform platform) void
PredictionUpdate.setPlatform
(Platform platform) ModifierConstructorDescriptionPredictionUpdate
(Instant publishStart, Instant publishStop, Platform platform, Encryption encryption)