Package io.inversion
Class User
java.lang.Object
io.inversion.User
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected intthe number of consecutive failed loginsprotected intprotected Stringprotected Stringthe remote host of the last requestprotected longthe time of the last requestprotected Stringprotected Stringprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintgetId()longgetRoles()Deprecated.Replaced by url mapped parameters such as host://myApi/{tenant}/endpointbooleanbooleanhasPermissions(String... permissions) booleanwithAccessKey(String accessKey) withDisplayName(String displayName) withFailedNum(int failedNum) withGroups(String... groups) withId(int id) withPassword(String password) withPermissions(String... permissions) withRemoteAddr(String remoteAddr) withRequestAt(long requestAt) withSecretKey(String secretKey) withTenant(String tenant) withUsername(String username)
-
Field Details
-
groups
-
roles
-
permissions
-
id
protected int id -
tenant
-
username
-
password
-
displayName
-
accessKey
-
secretKey
-
requestAt
protected long requestAtthe time of the last request -
remoteAddr
the remote host of the last request -
failedNum
protected int failedNumthe number of consecutive failed logins
-
-
Constructor Details
-
User
public User() -
User
-
-
Method Details
-
getTenantCode
Deprecated.Replaced by url mapped parameters such as host://myApi/{tenant}/endpoint- Returns:
- the "tenant" url parameter
-
getUsername
-
withUsername
-
getId
public int getId() -
withId
-
getRequestAt
public long getRequestAt() -
withRequestAt
-
getRemoteAddr
-
withRemoteAddr
-
getFailedNum
public int getFailedNum() -
withFailedNum
-
getAccessKey
-
withAccessKey
-
getSecretKey
-
withSecretKey
-
getPassword
-
withPassword
-
getPermissions
-
hasPermissions
-
withPermissions
-
hasGroups
-
getGroups
-
withGroups
-
getRoles
-
hasRoles
-
withRoles
-
getTenant
-
withTenant
-
getDisplayName
-
withDisplayName
-