Package nl.vpro.domain.media
Class StandaloneMemberRef
java.lang.Object
nl.vpro.domain.media.StandaloneMemberRef
- All Implemented Interfaces:
Serializable
,ParentChildRelation
,nl.vpro.domain.media.support.Ownable
@MappedSuperclass
public class StandaloneMemberRef
extends Object
implements Serializable, nl.vpro.domain.media.support.Ownable, ParentChildRelation
An representation of a memberRef also having a 'memberRef' attribute in the XML. A
MemberRef
doesn't have that
because is always represented embedded in a MediaObject
.
This object also has getObjectType()
to make it possible the distinguish Program.getEpisodeOf()
from MediaObject.getMemberOf()
.
The original and use case of this object is to be a standalone JSON representation of a 'memberref' relation in poms in ElasticSearch.
It is also annotated with javax.persistence
annotations, which makes it possible to easily store this object in other databases too (though poms itself is not doing that).
- Since:
- 4.7
- Author:
- Michiel Meeuwissen
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static enum
-
Field Summary
-
Constructor Summary
ConstructorDescriptionStandaloneMemberRef
(String childRef, MemberRef ref, StandaloneMemberRef.ObjectType objectType) -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull StandaloneMemberRef.Builder
builder()
static StandaloneMemberRef
episodeRef
(String child, MemberRef ref) boolean
getAdded()
getId()
getIndex()
@NonNull nl.vpro.domain.media.support.OwnerType
getOwner()
getType()
The type of the parentint
hashCode()
static StandaloneMemberRef
void
void
setChildRef
(String childRef) void
setHighlighted
(Boolean highlighted) void
void
void
setObjectType
(StandaloneMemberRef.ObjectType objectType) void
toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface nl.vpro.domain.media.ParentChildRelation
getParentMid
-
Field Details
-
added
-
highlighted
-
type
-
index
-
midRef
-
childRef
-
owner
protected nl.vpro.domain.media.support.OwnerType owner -
objectType
-
-
Constructor Details
-
StandaloneMemberRef
public StandaloneMemberRef() -
StandaloneMemberRef
public StandaloneMemberRef(String childRef, MemberRef ref, StandaloneMemberRef.ObjectType objectType) -
StandaloneMemberRef
-
-
Method Details
-
memberRef
-
episodeRef
-
getOwner
public @NonNull nl.vpro.domain.media.support.OwnerType getOwner()- Specified by:
getOwner
in interfacenl.vpro.domain.media.support.Ownable
-
toMemberRef
-
getId
-
getAdded
-
setAdded
-
getHighlighted
-
setHighlighted
-
getType
Description copied from interface:ParentChildRelation
The type of the parent- Specified by:
getType
in interfaceParentChildRelation
-
setType
-
getIndex
-
setIndex
-
getMidRef
- Specified by:
getMidRef
in interfaceParentChildRelation
-
setMidRef
-
getChildRef
-
setChildRef
-
getChildMid
- Specified by:
getChildMid
in interfaceParentChildRelation
-
getObjectType
-
setObjectType
-
equals
-
hashCode
public int hashCode() -
toString
-
builder
-