Class User

All Implemented Interfaces:

public class User extends UserIdentityProjection implements UserIdentity
Represents the Morpheus User and associated user data when calling into plugins. This can be useful display information or the getPermissions() property can be used by some providers to determine what may need to be displayed based on the user access
  • Field Details

    • account

      protected Account account
    • firstName

      protected String firstName
    • lastName

      protected String lastName
    • email

      protected String email
    • enabled

      protected Boolean enabled
    • accountLocked

      protected Boolean accountLocked
    • accountExpired

      protected Boolean accountExpired
    • lastLoginDate

      protected Date lastLoginDate
    • linuxUsername

      protected String linuxUsername
    • windowsUsername

      protected String windowsUsername
    • permissions

      protected Map<String,String> permissions
  • Constructor Details

    • User

      public User()
  • Method Details

    • getFirstName

      public String getFirstName()
    • setFirstName

      public void setFirstName(String firstName)
    • getLastName

      public String getLastName()
    • setLastName

      public void setLastName(String lastName)
    • getAccount

      public Account getAccount()
      Specified by:
      getAccount in interface UserIdentity
    • setAccount

      public void setAccount(Account account)
    • getEmail

      public String getEmail()
      Specified by:
      getEmail in interface UserIdentity
    • setEmail

      public void setEmail(String email)
    • getEnabled

      public Boolean getEnabled()
      Specified by:
      getEnabled in interface UserIdentity
    • setEnabled

      public void setEnabled(Boolean enabled)
    • getAccountLocked

      public Boolean getAccountLocked()
    • setAccountLocked

      public void setAccountLocked(Boolean accountLocked)
    • getAccountExpired

      public Boolean getAccountExpired()
    • setAccountExpired

      public void setAccountExpired(Boolean accountExpired)
    • getLastLoginDate

      public Date getLastLoginDate()
    • setLastLoginDate

      public void setLastLoginDate(Date lastLoginDate)
    • getLinuxUsername

      public String getLinuxUsername()
    • setLinuxUsername

      public void setLinuxUsername(String linuxUsername)
    • getWindowsUsername

      public String getWindowsUsername()
    • setWindowsUsername

      public void setWindowsUsername(String windowsUsername)
    • getPermissions

      public Map<String,String> getPermissions()
      A Map of the user's permissions where the key is the Permission.code and the value is the highest Permission.AccessType
      Specified by:
      getPermissions in interface UserIdentity
      Map the map of permissions
    • setPermissions

      public void setPermissions(Map<String,String> permissions)
    • getDisplayName

      public String getDisplayName()