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
public interface TrackableObject extends Trackable, Embargo
A trackable object has alsoEmbargo
, andgetWorkflow()
- Since:
- 5.11
- Author:
- Michiel Meeuwissen
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default TrackableObject
getParent()
Implementations can optionally become child of a trackable parent where the parents track-ability decides on this child's track-ability.Workflow
getWorkflow()
default boolean
isMerged()
If the sub class supports being merged, this can be overriden.default boolean
isPublishable()
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 Detail
-
getWorkflow
Workflow getWorkflow()
-
isPublishable
default boolean isPublishable(Instant now)
Whether this object could be publicly visible in the API.This returns
false
if the workflow explictely indicates that it is not (like 'DELETED', 'MERGED') and otherwise it depends onEmbargo.inPublicationWindow(Instant)
-
isPublishable
default boolean isPublishable()
- Specified by:
isPublishable
in interfaceEmbargo
-
isRevocable
default boolean isRevocable(Instant now)
-
isMerged
default boolean isMerged()
If the sub class supports being merged, this can be overriden.
-
getParent
default TrackableObject 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:
Image.getParent()
,Location.getParent()
,Segment.getParent()
-
-