Class User

  • public class User
    extends MorpheusModel
    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 Detail

      • username

        protected java.lang.String username
      • firstName

        protected java.lang.String firstName
      • lastName

        protected java.lang.String lastName
      • account

        protected Account account
      • email

        protected java.lang.String email
      • enabled

        protected java.lang.Boolean enabled
      • accountLocked

        protected java.lang.Boolean accountLocked
      • accountExpired

        protected java.lang.Boolean accountExpired
      • lastLoginDate

        protected java.util.Date lastLoginDate
      • linuxUsername

        protected java.lang.String linuxUsername
      • windowsUsername

        protected java.lang.String windowsUsername
      • permissions

        protected java.util.Map<java.lang.String,​java.lang.String> permissions
    • Constructor Detail

      • User

        public User()
    • Method Detail

      • getUsername

        public java.lang.String getUsername()
        the User's login username
        String the username
      • setUsername

        public void setUsername​(java.lang.String username)
      • getFirstName

        public java.lang.String getFirstName()
      • setFirstName

        public void setFirstName​(java.lang.String firstName)
      • getLastName

        public java.lang.String getLastName()
      • setLastName

        public void setLastName​(java.lang.String lastName)
      • getAccount

        public Account getAccount()
      • setAccount

        public void setAccount​(Account account)
      • getEmail

        public java.lang.String getEmail()
      • setEmail

        public void setEmail​(java.lang.String email)
      • getEnabled

        public java.lang.Boolean getEnabled()
      • setEnabled

        public void setEnabled​(java.lang.Boolean enabled)
      • getAccountLocked

        public java.lang.Boolean getAccountLocked()
      • setAccountLocked

        public void setAccountLocked​(java.lang.Boolean accountLocked)
      • getAccountExpired

        public java.lang.Boolean getAccountExpired()
      • setAccountExpired

        public void setAccountExpired​(java.lang.Boolean accountExpired)
      • getLastLoginDate

        public java.util.Date getLastLoginDate()
      • setLastLoginDate

        public void setLastLoginDate​(java.util.Date lastLoginDate)
      • getLinuxUsername

        public java.lang.String getLinuxUsername()
      • setLinuxUsername

        public void setLinuxUsername​(java.lang.String linuxUsername)
      • getWindowsUsername

        public java.lang.String getWindowsUsername()
      • setWindowsUsername

        public void setWindowsUsername​(java.lang.String windowsUsername)
      • getPermissions

        public java.util.Map<java.lang.String,​java.lang.String> getPermissions()
        A Map of the user's permissions where the key is the Permission.code and the value is the highest Permission.AccessType
        Map the map of permissions
      • setPermissions

        public void setPermissions​(java.util.Map<java.lang.String,​java.lang.String> permissions)