Package nl.vpro.domain.media
Class GeoRestriction
- java.lang.Object
-
- nl.vpro.domain.DomainObject
-
- nl.vpro.domain.media.Restriction<GeoRestriction>
-
- nl.vpro.domain.media.GeoRestriction
-
- All Implemented Interfaces:
Serializable
,Comparable<GeoRestriction>
,Embargo
,Identifiable<Long>
,MutableEmbargo<GeoRestriction>
@Entity public class GeoRestriction extends Restriction<GeoRestriction> implements Comparable<GeoRestriction>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GeoRestriction.Builder
-
Nested classes/interfaces inherited from class nl.vpro.domain.media.Restriction
Restriction.RestrictionBuilder<B extends Restriction.RestrictionBuilder<B>>
-
-
Field Summary
Fields Modifier and Type Field Description protected @NotNull(message="nl.vpro.constraints.NotNull") Platform
platform
protected @NotNull(message="nl.vpro.constraints.NotNull") Region
region
-
Fields inherited from class nl.vpro.domain.media.Restriction
start, stop
-
Fields inherited from class nl.vpro.domain.DomainObject
id
-
-
Constructor Summary
Constructors Constructor Description GeoRestriction()
GeoRestriction(String region)
GeoRestriction(GeoRestriction source)
GeoRestriction(Region region)
GeoRestriction(Region region, Instant start, Instant stop)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static @NonNull GeoRestriction.Builder
builder()
int
compareTo(GeoRestriction o)
static GeoRestriction
copy(GeoRestriction source)
boolean
equals(Object o)
protected String
getJsonValue()
static String
getJsonValue(Platform platform, Region region)
Platform
getPlatform()
Region
getRegion()
int
hashCode()
boolean
isAuthoritative()
void
setAuthoritative(boolean authoritative)
void
setPlatform(Platform platform)
void
setRegion(Region region)
@NonNull String
toString()
-
Methods inherited from class nl.vpro.domain.media.Restriction
getPublishStartInstant, getPublishStopInstant, getStart, getStop, setPublishStartInstant, setPublishStopInstant, setStart, setStop
-
Methods inherited from class nl.vpro.domain.DomainObject
getId, isPersisted, setId
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface nl.vpro.domain.Embargo
asRange, inPublicationWindow, inPublicationWindow, isPublishable, isUnderEmbargo, isUnderEmbargo, wasUnderEmbargo, wasUnderEmbargo, willBePublished, willBePublished, willBeUnderEmbargo, willBeUnderEmbargo
-
Methods inherited from interface nl.vpro.domain.MutableEmbargo
set
-
-
-
-
Constructor Detail
-
GeoRestriction
public GeoRestriction()
-
GeoRestriction
public GeoRestriction(String region)
-
GeoRestriction
public GeoRestriction(Region region)
-
GeoRestriction
public GeoRestriction(GeoRestriction source)
-
-
Method Detail
-
copy
public static GeoRestriction copy(GeoRestriction source)
-
getJsonValue
protected String getJsonValue()
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classRestriction<GeoRestriction>
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classRestriction<GeoRestriction>
-
compareTo
public int compareTo(GeoRestriction o)
- Specified by:
compareTo
in interfaceComparable<GeoRestriction>
-
builder
public static @NonNull GeoRestriction.Builder builder()
-
toString
public @NonNull String toString()
- Overrides:
toString
in classRestriction<GeoRestriction>
-
getRegion
public Region getRegion()
-
setRegion
public void setRegion(Region region)
-
getPlatform
public Platform getPlatform()
-
setPlatform
public void setPlatform(Platform platform)
-
isAuthoritative
public boolean isAuthoritative()
-
setAuthoritative
public void setAuthoritative(boolean authoritative)
-
-