Package nl.vpro.domain.media
Interface TrackableObject
- All Known Subinterfaces:
Media<T>
,TrackableMedia
- All Known Implementing Classes:
Group
,Image
,Location
,MediaListItem
,MediaObject
,Program
,PublishableObject
,Segment
A trackable object has also
Embargo
, and getWorkflow()
- Since:
- 5.11
- Author:
- Michiel Meeuwissen
-
Method Summary
Modifier and TypeMethodDescriptiondefault TrackableObject
Implementations can optionally become child of a trackable parent where the parents track-ability decides on this child's track-ability.default boolean
default boolean
isMerged()
If the subclass supports being merged, this can be overriden.default boolean
default boolean
isPublishable
(Instant now) Whether this object could be publicly visible in the API.default boolean
isRevocable
(Instant now) Methods inherited from interface nl.vpro.domain.Embargo
asRange, getPublishStartInstant, getPublishStopInstant, inPublicationWindow, inPublicationWindow, isUnderEmbargo, isUnderEmbargo, wasUnderEmbargo, wasUnderEmbargo, willBePublished, willBePublished, willBeUnderEmbargo, willBeUnderEmbargo
Methods inherited from interface nl.vpro.domain.Trackable
getCreationInstant, getLastModifiedInstant
-
Method Details
-
getWorkflow
Workflow getWorkflow() -
isPublishable
Whether this object could be publicly visible in the API.This returns
false
if the workflow explicitly indicates that it is not (like 'DELETED', 'MERGED') and otherwise it depends onEmbargo.inPublicationWindow(Instant)
-
isConsiderableForPublication
default boolean isConsiderableForPublication()- Specified by:
isConsiderableForPublication
in interfaceEmbargo
-
isPublishable
default boolean isPublishable()- Specified by:
isPublishable
in interfaceEmbargo
-
isRevocable
-
isMerged
default boolean isMerged()If the subclass supports being merged, this can be overriden. -
getParent
Implementations can optionally become child of a trackable parent where the parents track-ability decides on this child's track-ability.- Returns:
- a trackable parent, null when a parent is not set or no parent-child relation exists
- See Also:
-