Class DuracloudUser

java.lang.Object
org.duracloud.account.db.model.BaseEntity
org.duracloud.account.db.model.DuracloudUser
All Implemented Interfaces:
Serializable, org.springframework.security.core.userdetails.UserDetails

@Entity public class DuracloudUser extends BaseEntity implements org.springframework.security.core.userdetails.UserDetails
Author:
Erik Paulsson Date: 7/10/13
See Also:
  • Constructor Details

    • DuracloudUser

      public DuracloudUser()
  • Method Details

    • getUsername

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

      public void setUsername(String username)
    • getPassword

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

      public void setPassword(String password)
    • getFirstName

      public String getFirstName()
    • setFirstName

      public void setFirstName(String firstName)
    • getLastName

      public String getLastName()
    • setLastName

      public void setLastName(String lastName)
    • getEmail

      public String getEmail()
    • setEmail

      public void setEmail(String email)
    • getSecurityQuestion

      public String getSecurityQuestion()
    • setSecurityQuestion

      public void setSecurityQuestion(String securityQuestion)
    • getSecurityAnswer

      public String getSecurityAnswer()
    • setSecurityAnswer

      public void setSecurityAnswer(String securityAnswer)
    • isEnabled

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

      public void setEnabled(boolean enabled)
    • isAccountNonExpired

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

      public void setAccountNonExpired(boolean accountNonExpired)
    • isCredentialsNonExpired

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

      public void setCredentialsNonExpired(boolean credentialsNonExpired)
    • isAccountNonLocked

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

      public void setAccountNonLocked(boolean accountNonLocked)
    • getAccountRights

      public Set<AccountRights> getAccountRights()
    • setAccountRights

      public void setAccountRights(Set<AccountRights> accountRights)
    • getAuthorities

      public Collection<org.springframework.security.core.GrantedAuthority> getAuthorities()
      Returns the set of all possible roles a user can play This method is implemented as part of the UserDetails interface ( UserDetails).
      Specified by:
      getAuthorities in interface org.springframework.security.core.userdetails.UserDetails
      Returns:
    • getRolesByAcct

      public Set<Role> getRolesByAcct(Long accountId)
    • getRoleByAcct

      public Role getRoleByAcct(Long accountId)
    • isOwnerForAcct

      public boolean isOwnerForAcct(Long accountId)
    • isAdminForAcct

      public boolean isAdminForAcct(Long accountId)
    • hasRoleForAcct

      public boolean hasRoleForAcct(Long accountId, Role role)
    • isRootUser

      public boolean isRootUser()
    • isRoot

      public boolean isRoot()
    • setRoot

      public void setRoot(boolean root)
    • getAllowableIPAddressRange

      public String getAllowableIPAddressRange()
    • setAllowableIPAddressRange

      public void setAllowableIPAddressRange(String allowableIPAddressRange)