Package nl.vpro.domain.media
Class Credits
- java.lang.Object
-
- nl.vpro.domain.DomainObject
-
- nl.vpro.domain.media.Credits
-
- All Implemented Interfaces:
Serializable
,Child<MediaObject>
,Identifiable<Long>
,GTAAManaged
@Entity public abstract class Credits extends DomainObject implements Child<MediaObject>, GTAAManaged
A container class for credits, linking the role to an actual entity. For person this at the moment is an embedded entity, for other names, this should be a join with gtaa record.- Since:
- 5.12
- Author:
- Michiel Meeuwissen
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected MediaObject
mediaObject
protected @NotNull(message="{nl.vpro.constraints.NotNull}") RoleType
role
-
Fields inherited from class nl.vpro.domain.DomainObject
id
-
-
Constructor Summary
Constructors Constructor Description Credits()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static Credits
copy(Credits credits, MediaObject mediaObject)
abstract Boolean
getGtaaKnownAs()
TODO: describe this?@NotNull Integer
getListIndex()
abstract String
getName()
Returns the name of the credits.protected String
getObjectType()
return the 'objectType' of this Credits.MediaObject
getParent()
@NotNull(message="{nl.vpro.constraints.NotNull}") RoleType
getRole()
abstract List<String>
getScopeNotes()
To better understand about which or what we are talking, these string may give some scope.void
setListIndex(@NotNull Integer listIndex)
void
setParent(MediaObject mo)
void
setRole(@NotNull(message="{nl.vpro.constraints.NotNull}") RoleType role)
@NonNull String
toString()
-
Methods inherited from class nl.vpro.domain.DomainObject
equals, getId, hashCode, isPersisted, setId
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface nl.vpro.domain.media.gtaa.GTAAManaged
getGtaaStatus, getGtaaUri, setGtaaStatus, setGtaaUri, setName, setScopeNotes
-
-
-
-
Field Detail
-
role
@NotNull(message="{nl.vpro.constraints.NotNull}") protected @NotNull(message="{nl.vpro.constraints.NotNull}") RoleType role
-
mediaObject
protected MediaObject mediaObject
-
-
Method Detail
-
copy
public static Credits copy(Credits credits, MediaObject mediaObject)
-
setParent
public void setParent(MediaObject mo)
- Specified by:
setParent
in interfaceChild<MediaObject>
-
getParent
public MediaObject getParent()
- Specified by:
getParent
in interfaceChild<MediaObject>
-
getObjectType
protected String getObjectType()
return the 'objectType' of this Credits. Should probably correspond to the two relevant enums in nl.vpro.domain.gtaa.Scheme
-
getName
public abstract String getName()
Returns the name of the credits. This is how it would be referred to by humans.- Specified by:
getName
in interfaceGTAAManaged
-
getScopeNotes
public abstract List<String> getScopeNotes()
To better understand about which or what we are talking, these string may give some scope.- Specified by:
getScopeNotes
in interfaceGTAAManaged
-
getGtaaKnownAs
public abstract Boolean getGtaaKnownAs()
TODO: describe this?
-
toString
public @NonNull String toString()
- Overrides:
toString
in classDomainObject
-
getRole
@NotNull(message="{nl.vpro.constraints.NotNull}") public @NotNull(message="{nl.vpro.constraints.NotNull}") RoleType getRole()
-
setRole
public void setRole(@NotNull(message="{nl.vpro.constraints.NotNull}") @NotNull(message="{nl.vpro.constraints.NotNull}") RoleType role)
-
getListIndex
@NotNull public @NotNull Integer getListIndex()
-
setListIndex
public void setListIndex(@NotNull @NotNull Integer listIndex)
-
-