java.lang.Object
io.jmix.samples.restservice.entity.User
All Implemented Interfaces:
HasTimeZone, AcceptsGrantedAuthorities, JmixUserDetails, Serializable, org.springframework.security.core.userdetails.UserDetails

@Entity public class User extends Object implements JmixUserDetails, HasTimeZone
See Also:
  • Field Details

    • username

      protected String username
    • password

      protected String password
    • firstName

      protected String firstName
    • lastName

      protected String lastName
    • email

      @Email protected @Email String email
    • active

      protected Boolean active
    • timeZoneId

      protected String timeZoneId
    • authorities

      protected Collection<? extends org.springframework.security.core.GrantedAuthority> authorities
  • Constructor Details

    • User

      public User()
  • Method Details

    • getId

      public UUID getId()
    • setId

      public void setId(UUID id)
    • getVersion

      public Integer getVersion()
    • setVersion

      public void setVersion(Integer version)
    • getPassword

      public String getPassword()
      Specified by:
      getPassword in interface org.springframework.security.core.userdetails.UserDetails
    • getUsername

      public String getUsername()
      Specified by:
      getUsername in interface org.springframework.security.core.userdetails.UserDetails
    • setUsername

      public void setUsername(String username)
    • getActive

      public Boolean getActive()
    • setActive

      public void setActive(Boolean active)
    • setPassword

      public void setPassword(String password)
    • getEmail

      public String getEmail()
    • setEmail

      public void setEmail(String email)
    • getFirstName

      public String getFirstName()
    • setFirstName

      public void setFirstName(String firstName)
    • getLastName

      public String getLastName()
    • setLastName

      public void setLastName(String lastName)
    • getAuthorities

      public Collection<? extends org.springframework.security.core.GrantedAuthority> getAuthorities()
      Specified by:
      getAuthorities in interface org.springframework.security.core.userdetails.UserDetails
    • setAuthorities

      public void setAuthorities(Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
      Specified by:
      setAuthorities in interface AcceptsGrantedAuthorities
    • isAccountNonExpired

      public boolean isAccountNonExpired()
      Specified by:
      isAccountNonExpired in interface org.springframework.security.core.userdetails.UserDetails
    • isAccountNonLocked

      public boolean isAccountNonLocked()
      Specified by:
      isAccountNonLocked in interface org.springframework.security.core.userdetails.UserDetails
    • isCredentialsNonExpired

      public boolean isCredentialsNonExpired()
      Specified by:
      isCredentialsNonExpired in interface org.springframework.security.core.userdetails.UserDetails
    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface org.springframework.security.core.userdetails.UserDetails
    • getDisplayName

      public String getDisplayName()
    • getTimeZoneId

      public String getTimeZoneId()
      Specified by:
      getTimeZoneId in interface HasTimeZone
      Returns:
      time zone id of the user
    • setTimeZoneId

      public void setTimeZoneId(String timeZoneId)