Package com.morpheusdata.model
Class User
- All Implemented Interfaces:
UserIdentity,Serializable
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- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Accountprotected Booleanprotected Booleanprotected Stringprotected Booleanprotected Stringprotected Dateprotected Stringprotected Stringprotected StringFields inherited from class com.morpheusdata.model.projection.UserIdentityProjection
usernameFields inherited from class com.morpheusdata.model.MorpheusModel
config, id -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetEmail()A Map of the user's permissions where the key is thePermission.codeand the value is the highestPermission.AccessTypevoidsetAccount(Account account) voidsetAccountExpired(Boolean accountExpired) voidsetAccountLocked(Boolean accountLocked) voidvoidsetEnabled(Boolean enabled) voidsetFirstName(String firstName) voidsetLastLoginDate(Date lastLoginDate) voidsetLastName(String lastName) voidsetLinuxUsername(String linuxUsername) voidsetPermissions(Map<String, String> permissions) voidsetWindowsUsername(String windowsUsername) Methods inherited from class com.morpheusdata.model.projection.UserIdentityProjection
getUsername, setUsernameMethods inherited from class com.morpheusdata.model.projection.MorpheusIdentityModel
getIdentityPropertiesMethods inherited from class com.morpheusdata.model.MorpheusModel
getConfig, getConfigMap, getConfigProperty, getDirtyProperties, getDirtyPropertyValues, getId, getProperties, isDirty, markClean, markDirty, markDirty, setConfig, setConfigMap, setConfigProperty, setIdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.morpheusdata.model.projection.UserIdentity
getId, getUsername
-
Field Details
-
account
-
firstName
-
lastName
-
email
-
enabled
-
accountLocked
-
accountExpired
-
lastLoginDate
-
linuxUsername
-
windowsUsername
-
permissions
-
-
Constructor Details
-
User
public User()
-
-
Method Details
-
getFirstName
-
setFirstName
-
getLastName
-
setLastName
-
getAccount
- Specified by:
getAccountin interfaceUserIdentity
-
setAccount
-
getEmail
- Specified by:
getEmailin interfaceUserIdentity
-
setEmail
-
getEnabled
- Specified by:
getEnabledin interfaceUserIdentity
-
setEnabled
-
getAccountLocked
-
setAccountLocked
-
getAccountExpired
-
setAccountExpired
-
getLastLoginDate
-
setLastLoginDate
-
getLinuxUsername
-
setLinuxUsername
-
getWindowsUsername
-
setWindowsUsername
-
getPermissions
A Map of the user's permissions where the key is thePermission.codeand the value is the highestPermission.AccessType- Specified by:
getPermissionsin interfaceUserIdentity- Returns:
- Map the map of permissions
-
setPermissions
-
getDisplayName
-