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()
protected boolean
canEqual(@Nullable Object other)
int
compareTo(GeoRestriction o)
static GeoRestriction
copy(GeoRestriction source)
boolean
equals(@Nullable Object o)
protected String
getJsonValue()
static String
getJsonValue(Platform platform, Region region)
@NotNull(message="nl.vpro.constraints.NotNull") Platform
getPlatform()
@NotNull(message="nl.vpro.constraints.NotNull") Region
getRegion()
int
hashCode()
boolean
isAuthoritative()
void
setAuthoritative(boolean authoritative)
void
setPlatform(@NotNull(message="nl.vpro.constraints.NotNull") Platform platform)
void
setRegion(@NotNull(message="nl.vpro.constraints.NotNull") 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()
-
compareTo
public int compareTo(GeoRestriction o)
- Specified by:
compareTo
in interfaceComparable<GeoRestriction>
-
builder
public static @NonNull GeoRestriction.Builder builder()
-
equals
public boolean equals(@Nullable Object o)
- Overrides:
equals
in classRestriction<GeoRestriction>
-
canEqual
protected boolean canEqual(@Nullable Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classRestriction<GeoRestriction>
-
toString
public @NonNull String toString()
- Overrides:
toString
in classRestriction<GeoRestriction>
-
getRegion
@NotNull(message="nl.vpro.constraints.NotNull") public @NotNull(message="nl.vpro.constraints.NotNull") Region getRegion()
-
setRegion
public void setRegion(@NotNull(message="nl.vpro.constraints.NotNull") @NotNull(message="nl.vpro.constraints.NotNull") Region region)
-
getPlatform
@NotNull(message="nl.vpro.constraints.NotNull") public @NotNull(message="nl.vpro.constraints.NotNull") Platform getPlatform()
-
setPlatform
public void setPlatform(@NotNull(message="nl.vpro.constraints.NotNull") @NotNull(message="nl.vpro.constraints.NotNull") Platform platform)
-
isAuthoritative
public boolean isAuthoritative()
-
setAuthoritative
public void setAuthoritative(boolean authoritative)
-
-