Class UserNameDTO


  • public class UserNameDTO
    extends java.lang.Object
    DTO class that only sends minimal information about a user to frontend
    • Constructor Summary

      Constructors 
      Constructor Description
      UserNameDTO​(long userId, java.lang.String forename, java.lang.String surname)  
      UserNameDTO​(User user)  
    • Constructor Detail

      • UserNameDTO

        public UserNameDTO​(long userId,
                           java.lang.String forename,
                           java.lang.String surname)
      • UserNameDTO

        public UserNameDTO​(User user)
    • Method Detail

      • getUserId

        public long getUserId()
      • setUserId

        public void setUserId​(long userId)
      • getForename

        public java.lang.String getForename()
      • setForename

        public void setForename​(java.lang.String forename)
      • getSurname

        public java.lang.String getSurname()
      • setSurname

        public void setSurname​(java.lang.String surname)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object