All Downloads are FREE. Search and download functionalities are using the official Maven repository.

fi.foyt.fni.rest.users.model.User Maven / Gradle / Ivy

There is a newer version: 3.3.13
Show newest version
package fi.foyt.fni.rest.users.model;

import java.util.List;

public class User {

  public User() {
  }
  
  public User(Long id, String firstName, String lastName, String nickname, String locale, List emails) {
    super();
    this.id = id;
    this.firstName = firstName;
    this.lastName = lastName;
    this.nickname = nickname;
    this.locale = locale;
    this.emails = emails;
  }

  /**
   * Returns user id
   * 
   * @return user id (ignored when creating or updating user)
   * @requiredField
   */
  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  /**
   * Returns user's first name
   * 
   * @return user's first name
   */
  public String getFirstName() {
    return firstName;
  }

  public void setFirstName(String firstName) {
    this.firstName = firstName;
  }
  
  /**
   * Returns user's last name
   * 
   * @return user's last name
   */
  public String getLastName() {
    return lastName;
  }

  public void setLastName(String lastName) {
    this.lastName = lastName;
  }
  
  /**
   * Returns user's nickname
   * 
   * @return user's nickname
   */
  public String getNickname() {
    return nickname;
  }
  
  public void setNickname(String nickname) {
    this.nickname = nickname;
  }
  
  /**
   * Returns user's locale (language part) in ISO 639 alpha-2 format
   * 
   * @return user's locale (language part) in ISO 639 alpha-2 format
   * @default en
   */
  public String getLocale() {
    return locale;
  }
  
  public void setLocale(String locale) {
    this.locale = locale;
  }
  
  /**
   * Returns user's emails
   * 
   * @return user's emails
   * @requiredField
   */
  public List getEmails() {
    return emails;
  }
  
  public void setEmails(List emails) {
    this.emails = emails;
  }

  private Long id;
  private String firstName;
  private String lastName;
  private String nickname;
  private String locale;
  private List emails;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy