Class User
java.lang.Object
io.jmix.samples.restservice.entity.User
- All Implemented Interfaces:
HasTimeZone
,AcceptsGrantedAuthorities
,JmixUserDetails
,Serializable
,org.springframework.security.core.userdetails.UserDetails
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCollection<? extends org.springframework.security.core.GrantedAuthority>
getEmail()
getId()
boolean
boolean
boolean
boolean
void
void
setAuthorities
(Collection<? extends org.springframework.security.core.GrantedAuthority> authorities) void
void
setFirstName
(String firstName) void
void
setLastName
(String lastName) void
setPassword
(String password) void
setTimeZoneId
(String timeZoneId) void
setUsername
(String username) void
setVersion
(Integer version) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.jmix.core.HasTimeZone
isAutoTimeZone
-
Field Details
-
username
-
password
-
firstName
-
lastName
-
email
-
active
-
timeZoneId
-
authorities
-
-
Constructor Details
-
User
public User()
-
-
Method Details
-
getId
-
setId
-
getVersion
-
setVersion
-
getPassword
- Specified by:
getPassword
in interfaceorg.springframework.security.core.userdetails.UserDetails
-
getUsername
- Specified by:
getUsername
in interfaceorg.springframework.security.core.userdetails.UserDetails
-
setUsername
-
getActive
-
setActive
-
setPassword
-
getEmail
-
setEmail
-
getFirstName
-
setFirstName
-
getLastName
-
setLastName
-
getAuthorities
- Specified by:
getAuthorities
in interfaceorg.springframework.security.core.userdetails.UserDetails
-
setAuthorities
public void setAuthorities(Collection<? extends org.springframework.security.core.GrantedAuthority> authorities) - Specified by:
setAuthorities
in interfaceAcceptsGrantedAuthorities
-
isAccountNonExpired
public boolean isAccountNonExpired()- Specified by:
isAccountNonExpired
in interfaceorg.springframework.security.core.userdetails.UserDetails
-
isAccountNonLocked
public boolean isAccountNonLocked()- Specified by:
isAccountNonLocked
in interfaceorg.springframework.security.core.userdetails.UserDetails
-
isCredentialsNonExpired
public boolean isCredentialsNonExpired()- Specified by:
isCredentialsNonExpired
in interfaceorg.springframework.security.core.userdetails.UserDetails
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceorg.springframework.security.core.userdetails.UserDetails
-
getDisplayName
-
getTimeZoneId
- Specified by:
getTimeZoneId
in interfaceHasTimeZone
- Returns:
- time zone id of the user
-
setTimeZoneId
-