Package nl.vpro.domain.media
Class PortalRestriction
- All Implemented Interfaces:
Serializable
,Embargo
,Identifiable<Long>
,MutableEmbargo<PortalRestriction>
- 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") Portal
Fields inherited from class nl.vpro.domain.media.Restriction
start, stop
Fields inherited from class nl.vpro.domain.DomainObject
id
-
Constructor Summary
ConstructorDescriptionPortalRestriction
(Long id, Portal portal, Instant start, Instant stop) PortalRestriction
(String portalId) Added to make it possible to unmarshall a PortalRestriction from its JSON value, which is just the portal ID...PortalRestriction
(PortalRestriction source) PortalRestriction
(Portal portal) PortalRestriction
(Portal portal, Instant start, Instant stop) -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull PortalRestriction.Builder
builder()
static PortalRestriction
copy
(PortalRestriction source) boolean
int
hashCode()
void
void
setPortalId
(String portalId) 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
-
portal
@NotNull(message="nl.vpro.constraints.NotNull") protected @NotNull(message="nl.vpro.constraints.NotNull") Portal portal
-
-
Constructor Details
-
PortalRestriction
public PortalRestriction() -
PortalRestriction
-
PortalRestriction
-
PortalRestriction
-
PortalRestriction
-
PortalRestriction
Added to make it possible to unmarshall a PortalRestriction from its JSON value, which is just the portal ID...
-
-
Method Details
-
copy
-
getPortal
-
setPortal
-
getPortalId
-
setPortalId
-
equals
- Overrides:
equals
in classRestriction<PortalRestriction>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classRestriction<PortalRestriction>
-
toString
- Overrides:
toString
in classRestriction<PortalRestriction>
-
builder
-