Package nl.vpro.domain.media
Class GeoRestriction
- All Implemented Interfaces:
Serializable
,Comparable<GeoRestriction>
,Embargo
,Identifiable<Long>
,MutableEmbargo<GeoRestriction>
@Entity
public class GeoRestriction
extends Restriction<GeoRestriction>
implements Comparable<GeoRestriction>
Indicates for which geographical
Region
, something must be available. This extends from Restriction
,
so this restriction may be under embargo
.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class nl.vpro.domain.media.Restriction
Restriction.RestrictionBuilder<B extends Restriction.RestrictionBuilder<B>>
-
Field Summary
Modifier and TypeFieldDescriptionprotected @NotNull(message="nl.vpro.constraints.NotNull") Platform
protected @NotNull(message="nl.vpro.constraints.NotNull") Region
Fields inherited from class nl.vpro.domain.media.Restriction
start, stop
Fields inherited from class nl.vpro.domain.DomainObject
id
-
Constructor Summary
ConstructorDescriptionGeoRestriction
(String region) GeoRestriction
(GeoRestriction source) GeoRestriction
(Region region) GeoRestriction
(Region region, Instant start, Instant stop) -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull GeoRestriction.Builder
builder()
int
static GeoRestriction
copy
(GeoRestriction source) boolean
protected String
static String
getJsonValue
(Platform platform, Region region) int
hashCode()
boolean
void
setAuthoritative
(boolean authoritative) void
setPlatform
(Platform platform) void
@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
-
Field Details
-
Constructor Details
-
GeoRestriction
public GeoRestriction() -
GeoRestriction
-
GeoRestriction
-
GeoRestriction
-
GeoRestriction
-
-
Method Details
-
copy
-
getJsonValue
-
getJsonValue
-
equals
- Overrides:
equals
in classRestriction<GeoRestriction>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classRestriction<GeoRestriction>
-
compareTo
- Specified by:
compareTo
in interfaceComparable<GeoRestriction>
-
builder
-
toString
- Overrides:
toString
in classRestriction<GeoRestriction>
-
getRegion
-
setRegion
-
getPlatform
-
setPlatform
-
isAuthoritative
public boolean isAuthoritative() -
setAuthoritative
public void setAuthoritative(boolean authoritative)
-