public class InMemoryUser extends Object implements User
serialVersionUID| Constructor and Description |
|---|
InMemoryUser(String userId) |
InMemoryUser(String userName,
String displayName,
String emailAddress,
String currentWorkspaceId) |
InMemoryUser(String userId,
String userName,
String displayName,
String emailAddress,
String currentWorkspaceId) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
ZonedDateTime |
getCreateDate() |
ZonedDateTime |
getCurrentLoginDate() |
String |
getCurrentLoginRemoteAddr() |
String |
getCurrentWorkspaceId() |
Map<String,Value> |
getCustomProperties() |
String |
getDisplayName() |
String |
getEmailAddress() |
int |
getLoginCount() |
String |
getPasswordResetToken() |
ZonedDateTime |
getPasswordResetTokenExpirationDate() |
ZonedDateTime |
getPreviousLoginDate() |
String |
getPreviousLoginRemoteAddr() |
Value |
getProperty(String propertyName) |
org.json.JSONObject |
getUiPreferences() |
String |
getUserId() |
String |
getUsername() |
UserStatus |
getUserStatus() |
UserType |
getUserType() |
int |
hashCode() |
void |
setPreferences(org.json.JSONObject preferences) |
void |
setProperty(String propertyName,
Value value) |
String |
toString() |
public InMemoryUser(String userId)
public InMemoryUser(String userName, String displayName, String emailAddress, String currentWorkspaceId)
public String getUsername()
getUsername in interface Userpublic String getDisplayName()
getDisplayName in interface Userpublic String getEmailAddress()
getEmailAddress in interface Userpublic ZonedDateTime getCreateDate()
getCreateDate in interface Userpublic ZonedDateTime getCurrentLoginDate()
getCurrentLoginDate in interface Userpublic String getCurrentLoginRemoteAddr()
getCurrentLoginRemoteAddr in interface Userpublic ZonedDateTime getPreviousLoginDate()
getPreviousLoginDate in interface Userpublic String getPreviousLoginRemoteAddr()
getPreviousLoginRemoteAddr in interface Userpublic int getLoginCount()
getLoginCount in interface Userpublic UserType getUserType()
getUserType in interface Userpublic UserStatus getUserStatus()
getUserStatus in interface Userpublic String getCurrentWorkspaceId()
getCurrentWorkspaceId in interface Userpublic org.json.JSONObject getUiPreferences()
getUiPreferences in interface Userpublic void setPreferences(org.json.JSONObject preferences)
public String getPasswordResetToken()
getPasswordResetToken in interface Userpublic ZonedDateTime getPasswordResetTokenExpirationDate()
getPasswordResetTokenExpirationDate in interface Userpublic Value getProperty(String propertyName)
getProperty in interface Userpublic Map<String,Value> getCustomProperties()
getCustomProperties in interface UserCopyright © 2016–2021 MWARE SOLUTIONS. All rights reserved.