Class BasicUser<R extends org.springframework.security.core.GrantedAuthority>

java.lang.Object
org.genesys.blocks.model.EmptyModel
org.genesys.blocks.model.BasicModel
org.genesys.blocks.model.VersionedModel
Type Parameters:
R - the generic type
All Implemented Interfaces:
Serializable, org.genesys.blocks.model.Activatable, org.genesys.blocks.model.EntityId, org.springframework.data.domain.Persistable<Long>, org.springframework.security.core.userdetails.UserDetails

@MappedSuperclass public abstract class BasicUser<R extends org.springframework.security.core.GrantedAuthority> extends AclSid implements org.springframework.security.core.userdetails.UserDetails
The Class BasicUser. When you extend this class, make sure you use:
@DiscriminatorValue(value = "1")
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    The Enum AccountType.
  • Field Summary

    Fields inherited from class org.genesys.blocks.security.model.AclSid

    OIDC_SID_ID

    Fields inherited from class org.genesys.blocks.model.VersionedModel

    active
  • Constructor Summary

    Constructors
    Constructor
    Description
    Instantiates a new basic user.
  • Method Summary

    Modifier and Type
    Method
    Description
    Collection<? extends org.springframework.security.core.GrantedAuthority>
     
    getUsername() must return the name used by UserDetailService in the UserDetailsService.loadUserByUsername(String)
    boolean
    Checks if is account locked.
    boolean
     
    boolean
     
    boolean
     
    boolean
     
    void
    setRuntimeAuthorities(List<org.springframework.security.core.GrantedAuthority> authorities)
    Set the actual authorities to use at runtime.
     

    Methods inherited from class org.genesys.blocks.security.model.AclSid

    canEqual, getFullName

    Methods inherited from class org.genesys.blocks.model.VersionedModel

    getVersion, isActive, setActive, setVersion

    Methods inherited from class org.genesys.blocks.model.BasicModel

    getId, setId

    Methods inherited from class org.genesys.blocks.model.EmptyModel

    equals, hashCode, isNew

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.springframework.security.core.userdetails.UserDetails

    getPassword
  • Constructor Details

    • BasicUser

      public BasicUser()
      Instantiates a new basic user.
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class AclSid
    • getAuthorities

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

      public String getUsername()
      getUsername() must return the name used by UserDetailService in the UserDetailsService.loadUserByUsername(String)
      Specified by:
      getUsername in interface org.springframework.security.core.userdetails.UserDetails
      See Also:
      • UserDetails.getUsername()
    • 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
    • isAccountLocked

      public boolean isAccountLocked()
      Checks if is account locked.
      Returns:
      true, if is account locked
    • 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
    • setRuntimeAuthorities

      public void setRuntimeAuthorities(List<org.springframework.security.core.GrantedAuthority> authorities)
      Set the actual authorities to use at runtime. See runtimeAuthorities.
      Parameters:
      authorities - the new runtime authorities