Package nl.vpro.domain.media.update
Class PersonUpdate
- java.lang.Object
-
- nl.vpro.domain.media.update.CreditsUpdate
-
- nl.vpro.domain.media.update.PersonUpdate
-
public class PersonUpdate extends CreditsUpdate
Horrible copy/paste code fromPerson
. Mainly to get it in a different namespace.
-
-
Field Summary
Fields Modifier and Type Field Description protected @Null(groups=nl.vpro.validation.WarningValidatorGroup.class) String
familyName
protected @Null(groups=nl.vpro.validation.WarningValidatorGroup.class) String
givenName
-
Fields inherited from class nl.vpro.domain.media.update.CreditsUpdate
role
-
-
Constructor Summary
Constructors Constructor Description PersonUpdate()
PersonUpdate(String givenName, String familyName, RoleType role)
PersonUpdate(String gtaaUri, RoleType role)
PersonUpdate(Person p)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getFamilyName()
String
getGivenName()
@NotNull(groups=nl.vpro.validation.WarningValidatorGroup.class) String
getGtaaUri()
Credits
toCredits()
@NonNull String
toString()
-
Methods inherited from class nl.vpro.domain.media.update.CreditsUpdate
getRole
-
-
-
-
Field Detail
-
givenName
@Null(groups=nl.vpro.validation.WarningValidatorGroup.class) protected @Null(groups=nl.vpro.validation.WarningValidatorGroup.class) String givenName
-
familyName
@Null(groups=nl.vpro.validation.WarningValidatorGroup.class) protected @Null(groups=nl.vpro.validation.WarningValidatorGroup.class) String familyName
-
-
Method Detail
-
toCredits
public Credits toCredits()
- Specified by:
toCredits
in classCreditsUpdate
-
toString
public @NonNull String toString()
- Overrides:
toString
in classCreditsUpdate
-
getGtaaUri
@NotNull(groups=nl.vpro.validation.WarningValidatorGroup.class) public @NotNull(groups=nl.vpro.validation.WarningValidatorGroup.class) String getGtaaUri()
-
getGivenName
public String getGivenName()
-
getFamilyName
public String getFamilyName()
-
-