Package nl.vpro.domain.media
Class Restriction<T extends Restriction<T>>
java.lang.Object
nl.vpro.domain.DomainObject
nl.vpro.domain.media.Restriction<T>
- All Implemented Interfaces:
Serializable
,Embargo
,Identifiable<Long>
,MutableEmbargo<T>
- Direct Known Subclasses:
GeoRestriction
,PortalRestriction
@MappedSuperclass
@ValidEmbargo
public abstract class Restriction<T extends Restriction<T>>
extends DomainObject
implements MutableEmbargo<T>
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
-
Field Summary
Fields inherited from class nl.vpro.domain.DomainObject
id
-
Constructor Summary
ModifierConstructorDescriptionprotected
protected
Restriction
(Long id, Instant start, Instant stop) protected
Restriction
(Instant start, Instant stop) protected
Restriction
(Restriction<T> source) -
Method Summary
Modifier and TypeMethodDescriptionboolean
getStart()
getStop()
int
hashCode()
@NonNull T
setPublishStartInstant
(Instant publishStart) @NonNull T
setPublishStopInstant
(Instant publishStop) void
void
toString()
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
-
start
-
stop
-
-
Constructor Details
-
Restriction
protected Restriction() -
Restriction
-
Restriction
-
Restriction
-
-
Method Details
-
getStart
-
setStart
-
getStop
-
setStop
-
equals
- Overrides:
equals
in classDomainObject
-
hashCode
public int hashCode()- Overrides:
hashCode
in classDomainObject
-
toString
- Overrides:
toString
in classDomainObject
-
getPublishStartInstant
- Specified by:
getPublishStartInstant
in interfaceEmbargo
-
setPublishStartInstant
- Specified by:
setPublishStartInstant
in interfaceMutableEmbargo<T extends Restriction<T>>
-
getPublishStopInstant
- Specified by:
getPublishStopInstant
in interfaceEmbargo
-
setPublishStopInstant
- Specified by:
setPublishStopInstant
in interfaceMutableEmbargo<T extends Restriction<T>>
-