Package sk.ipesoft.d2000.d2japi
Interface LoggedUserInformation
-
public interface LoggedUserInformation
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getDefaultLanguageIndex()
Get index of dictionary language that should be used by default for UI translation.java.lang.String
getFullName()
Get the full name specified for the user account.int
getHobj()
Get HOBJ of D2000 the user object.byte[]
getLogonToken()
Get 16 byte logon token generated by kernel used for authentication in another process.PasswordInformation
getPasswordInformation()
Get password information for the current logged user.java.util.Set<LoggedUserFlags>
getUserFlags()
Get set of allowed activities to be performed by the userjava.lang.String
getUsername()
Get unique name of the user object.java.util.Map<java.lang.String,java.lang.String>
getUserParametersMap()
Get user parameters in form of map.java.lang.String
getUserParametersRaw()
Get raw for of user parameters field.int
getUserTimeoutMinutes()
Get inactivity timeout for current user in minutes.boolean
isAdmin()
Gettrue
if the user has administrator privileges within D2000 system.boolean
isChangeOfPasswordRequired()
Gettrue
if the user account is configured to have its password changed upon the next login.
-
-
-
Method Detail
-
getHobj
int getHobj()
Get HOBJ of D2000 the user object.- Returns:
- HOBJ
-
getUsername
java.lang.String getUsername()
Get unique name of the user object.- Returns:
- name
-
getUserFlags
java.util.Set<LoggedUserFlags> getUserFlags()
Get set of allowed activities to be performed by the user- Returns:
- set of allowed activities
-
isAdmin
boolean isAdmin()
Gettrue
if the user has administrator privileges within D2000 system.- Returns:
true
if the user is administrator
-
getFullName
java.lang.String getFullName()
Get the full name specified for the user account.- Returns:
- full name of the user
-
isChangeOfPasswordRequired
boolean isChangeOfPasswordRequired()
Gettrue
if the user account is configured to have its password changed upon the next login. That is to have it changed now, as this instance has been created after valid login procedure.- Returns:
true
if password should be changed now
-
getDefaultLanguageIndex
int getDefaultLanguageIndex()
Get index of dictionary language that should be used by default for UI translation. Zero indicates that no default language has been specified.- Returns:
- index of default language for UI translation
-
getUserParametersRaw
java.lang.String getUserParametersRaw()
Get raw for of user parameters field. String is composed of key-value pairs, each on separate line, with key separated from value with '=' (ASCII 61).- Returns:
- raw for of user parameters field
-
getUserParametersMap
java.util.Map<java.lang.String,java.lang.String> getUserParametersMap()
Get user parameters in form of map. Values are in raw string form.- Returns:
- user parameters in form of map
-
getPasswordInformation
PasswordInformation getPasswordInformation()
Get password information for the current logged user.- Returns:
- password information
-
getUserTimeoutMinutes
int getUserTimeoutMinutes()
Get inactivity timeout for current user in minutes. Zero means timeout is not used.- Returns:
- inactivity timeout
-
getLogonToken
byte[] getLogonToken()
Get 16 byte logon token generated by kernel used for authentication in another process.- Returns:
- logon token
-
-