Package nl.vpro.domain.media.update
Class SegmentUpdate
- All Implemented Interfaces:
Comparable<SegmentUpdate>
,Child<ProgramUpdate>
,Embargo
,Identifiable<Long>
,MediaIdentifiable
,MidIdentifiable
,MutableEmbargo<MediaUpdate<Segment>>
,TextualObjectUpdate<TitleUpdate,
,DescriptionUpdate, MediaUpdate<Segment>> IntegerVersionSpecific
,VersionSpecific<Integer>
@Valid
public final class SegmentUpdate
extends MediaUpdate<Segment>
implements Comparable<SegmentUpdate>, Child<ProgramUpdate>
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic @interface
static class
Nested classes/interfaces inherited from interface nl.vpro.domain.media.MediaIdentifiable
MediaIdentifiable.Correlation
-
Field Summary
Fields inherited from class nl.vpro.domain.media.update.MediaUpdate
asset, avType, embeddable, fromXml, geoLocations, images, intentions, mediaObjectToValidate, mid, predictions, targetGroups, urn, version, xmlVersion
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(@NonNull SegmentUpdate segmentUpdate) static SegmentUpdate
create()
static <T extends MediaBuilder.AbstractSegmentBuilder<T>>
SegmentUpdatecreate
(MediaBuilder.AbstractSegmentBuilder<T> builder) static SegmentUpdate
static SegmentUpdate
static SegmentUpdate
create
(IntegerVersion version, Segment segment) static SegmentUpdate
create
(IntegerVersion version, Segment segment, nl.vpro.domain.media.support.OwnerType ownerType) static SegmentUpdate
createForParent
(ProgramUpdate parent, Segment segment, nl.vpro.domain.media.support.OwnerType ownerType) fetch
(nl.vpro.domain.media.support.OwnerType ownerType) Convert this MediaUpdate object to a MediaObject Clone all the fields of MediaUpdate into a new MediaObjectprotected void
The correlation of thisMediaIdentifiable
is the best id currently available.getStart()
getType()
protected String
boolean
protected Segment
newMedia()
void
void
setMidRefAttribute
(String string) void
void
void
setType
(SegmentType type) Methods inherited from class nl.vpro.domain.media.update.MediaUpdate
create, create, create, createUpdate, fetch, fillFromMedia, getAgeRating, getAsset, getAvAttributes, getAVType, getBroadcasters, getContentRatings, getCountries, getCredits, getCrids, getDeletedAttribute, getDescriptionCreator, getDescriptions, getEmail, getEmbeddable, getGenres, getGeoLocations, getGeoRestrictions, getId, getImages, getIntentions, getLanguages, getLocations, getMediaType, getMemberOf, getMid, getPortalRestrictions, getPortals, getPredictions, getPublishStartInstant, getPublishStopInstant, getRelations, getReleaseYear, getTags, getTargetGroups, getTitleCreator, getTitles, getTopics, getTwitterrefs, getUrn, getVersion, getVersionAttribute, getWebsites, isBefore, isDeleted, isImported, isNotBefore, isValid, setAgeRating, setAsset, setAvAttributes, setAVType, setBroadcasters, setBroadcasters, setContentRatings, setCountries, setCredits, setCredits, setCrids, setDeleted, setDeletedAttribute, setDescriptions, setDescriptions, setDuration, setEmail, setEmail, setEmbeddable, setGenres, setGenres, setGeoLocations, setGeoLocations, setGeoRestrictions, setImages, setImages, setIntentions, setLanguages, setLocations, setLocations, setMemberOf, setMid, setPortalRestrictions, setPortalRestrictions, setPortals, setPortals, setPredictions, setPublishStartInstant, setPublishStopInstant, setRelations, setReleaseYear, setTags, setTags, setTargetGroups, setTitles, setTitles, setTopics, setTopics, setTwitterRefs, setUrn, setVersion, setVersionAttribute, setWebsiteObjects, setWebsites, setWebsites, toList, toList, toList, toMemberRef, toSet, toSet, toString, violationMessage, violationMessage, violations, warningViolations
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface nl.vpro.domain.Embargo
asRange, inPublicationWindow, inPublicationWindow, isConsiderableForPublication, isPublishable, isUnderEmbargo, isUnderEmbargo, wasUnderEmbargo, wasUnderEmbargo, willBePublished, willBePublished, willBeUnderEmbargo, willBeUnderEmbargo
Methods inherited from interface nl.vpro.domain.media.MediaIdentifiable
getCorrelationId, getMainIdentifier
Methods inherited from interface nl.vpro.domain.MutableEmbargo
set
Methods inherited from interface nl.vpro.domain.TextualObjectUpdate
addDescription, addDescription, addTitle, addTitle, findDescription, findTitle, getAbbreviatedTitle, getLanguage, getLexicoTitle, getLongDescription, getMainDescription, getMainTitle, getOriginalTitle, getShortDescription, getShortTitle, getSubDescription, getSubTitle, getWorkTitle, hasDescriptions, hasTitles, removeDescription, removeDescription, removeTitle, self, setDescription, setDescription, setLongDescription, setMainDescription, setMainTitle, setTitle, setTitle
-
Constructor Details
-
SegmentUpdate
public SegmentUpdate()
-
-
Method Details
-
fillFrom
- Specified by:
fillFrom
in classMediaUpdate<Segment>
-
fetch
Description copied from class:MediaUpdate
Convert this MediaUpdate object to a MediaObject Clone all the fields of MediaUpdate into a new MediaObject- Overrides:
fetch
in classMediaUpdate<Segment>
-
create
-
createForParent
public static SegmentUpdate createForParent(ProgramUpdate parent, Segment segment, nl.vpro.domain.media.support.OwnerType ownerType) -
create
public static <T extends MediaBuilder.AbstractSegmentBuilder<T>> SegmentUpdate create(MediaBuilder.AbstractSegmentBuilder<T> builder) -
create
public static SegmentUpdate create(Segment segment, nl.vpro.domain.media.support.OwnerType ownerType) -
create
public static SegmentUpdate create(IntegerVersion version, Segment segment, nl.vpro.domain.media.support.OwnerType ownerType) -
create
-
create
-
newMedia
- Specified by:
newMedia
in classMediaUpdate<Segment>
-
getType
- Specified by:
getType
in classMediaUpdate<Segment>
-
getUrnPrefix
- Specified by:
getUrnPrefix
in classMediaUpdate<Segment>
-
setType
-
getStart
-
setStart
-
getDuration
- Overrides:
getDuration
in classMediaUpdate<Segment>
-
setMidRef
-
getMidRef
-
setMidRefAttribute
-
getMidRefAttribute
-
compareTo
- Specified by:
compareTo
in interfaceComparable<SegmentUpdate>
-
setParent
- Specified by:
setParent
in interfaceChild<ProgramUpdate>
-
getParent
- Specified by:
getParent
in interfaceChild<ProgramUpdate>
-
isStandalone
public boolean isStandalone() -
getCorrelation
Description copied from interface:MediaIdentifiable
The correlation of thisMediaIdentifiable
is the best id currently available. Oftentimes that will be theMidIdentifiable.getMid()
, but in certain situation that is not (yet) available, and it may fall back to (the first)MediaIdentifiable.getCrids()
.- Specified by:
getCorrelation
in interfaceMediaIdentifiable
- Specified by:
getCorrelation
in interfaceMidIdentifiable
-