Package com.morpheusdata.model
Class User
- All Implemented Interfaces:
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 Summary
Modifier and TypeFieldDescriptionprotected Account
protected Boolean
protected Boolean
protected String
protected Boolean
protected String
protected Date
protected String
protected String
protected String
Fields inherited from class com.morpheusdata.model.projection.UserIdentityProjection
username
Fields inherited from class com.morpheusdata.model.MorpheusModel
config, id
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetEmail()
A Map of the user's permissions where the key is thePermission.code
and the value is the highestPermission.AccessType
void
setAccount
(Account account) void
setAccountExpired
(Boolean accountExpired) void
setAccountLocked
(Boolean accountLocked) void
void
setEnabled
(Boolean enabled) void
setFirstName
(String firstName) void
setLastLoginDate
(Date lastLoginDate) void
setLastName
(String lastName) void
setLinuxUsername
(String linuxUsername) void
setPermissions
(Map<String, String> permissions) void
setWindowsUsername
(String windowsUsername) Methods inherited from class com.morpheusdata.model.projection.UserIdentityProjection
getUsername, setUsername
Methods inherited from class com.morpheusdata.model.projection.MorpheusIdentityModel
getIdentityProperties
Methods inherited from class com.morpheusdata.model.MorpheusModel
getConfig, getConfigMap, getConfigProperty, getDirtyProperties, getDirtyPropertyValues, getId, getProperties, isDirty, markClean, markDirty, markDirty, setConfig, setConfigMap, setConfigProperty, setId
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
getAccount
in interfaceUserIdentity
-
setAccount
-
getEmail
- Specified by:
getEmail
in interfaceUserIdentity
-
setEmail
-
getEnabled
- Specified by:
getEnabled
in 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.code
and the value is the highestPermission.AccessType
- Specified by:
getPermissions
in interfaceUserIdentity
- Returns:
- Map the map of permissions
-
setPermissions
-
getDisplayName
-