Class Credits

java.lang.Object
nl.vpro.domain.DomainObject
nl.vpro.domain.media.Credits
All Implemented Interfaces:
Serializable, Child<MediaObject>, Identifiable<Long>, GTAAManaged
Direct Known Subclasses:
Name, Person

@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 Details

    • role

      @NotNull(message="{nl.vpro.constraints.NotNull}") protected @NotNull(message="{nl.vpro.constraints.NotNull}") RoleType role
    • mediaObject

      protected MediaObject mediaObject
  • Constructor Details

    • Credits

      public Credits()
  • Method Details

    • copy

      public static Credits copy(Credits credits, MediaObject mediaObject)
    • setParent

      public void setParent(MediaObject mo)
      Specified by:
      setParent in interface Child<MediaObject>
    • getParent

      public MediaObject getParent()
      Specified by:
      getParent in interface Child<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 interface GTAAManaged
    • 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 interface GTAAManaged
    • getGtaaKnownAs

      public abstract Boolean getGtaaKnownAs()
      TODO: describe this?
    • toString

      public @NonNull String toString()
      Overrides:
      toString in class DomainObject
    • 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)