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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected MediaObject
protected @NotNull(message="{nl.vpro.constraints.NotNull}") RoleType
Fields inherited from class nl.vpro.domain.DomainObject
id
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Credits
copy
(Credits credits, MediaObject mediaObject) abstract Boolean
TODO: describe this?@NotNull Integer
abstract String
getName()
Returns the name of the credits.protected String
return the 'objectType' of this Credits.@NotNull(message="{nl.vpro.constraints.NotNull}") RoleType
getRole()
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
@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 Details
-
role
@NotNull(message="{nl.vpro.constraints.NotNull}") protected @NotNull(message="{nl.vpro.constraints.NotNull}") RoleType role -
mediaObject
-
-
Constructor Details
-
Credits
public Credits()
-
-
Method Details
-
copy
-
setParent
- Specified by:
setParent
in interfaceChild<MediaObject>
-
getParent
- Specified by:
getParent
in interfaceChild<MediaObject>
-
getObjectType
return the 'objectType' of this Credits. Should probably correspond to the two relevant enums in nl.vpro.domain.gtaa.Scheme -
getName
Returns the name of the credits. This is how it would be referred to by humans.- Specified by:
getName
in interfaceGTAAManaged
-
getScopeNotes
To better understand about which or what we are talking, these string may give some scope.- Specified by:
getScopeNotes
in interfaceGTAAManaged
-
getGtaaKnownAs
TODO: describe this? -
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
-
setListIndex
-