Package com.iizix.user
Interface IAuthenticatedUser
- All Known Implementing Classes:
AuthenticatedUser
public interface IAuthenticatedUserInterface holding data for the "authenticated" user. This instance can be retrieved also for non-authenticated users in the system, but the user information is available in the server's users database.- Author:
- Christopher Mindus
Field Summary
Fields Modifier and Type Field Description static java.lang.StringADMIN_BACKUP_USER_NAMEThe user name for default backup administrator user: "iiziAdmin BACKUP".static java.lang.StringADMIN_USER_NAMEThe user name for default administrator user: "iiziAdmin".static java.lang.StringUNDEFINED_USER_NAMEThe user name for undefined user: "@undefined".
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description UserInfoBasegetBasicUserInfo()Gets the basic user information that was last refreshed from the database.longgetLastAccessedTime()Gets the last access time for the user.IUserLocationHistorygetLocationHistory()Gets the user's location history.booleanisUndefined()Checks if this user is the "undefined" user that is used for external login.
Field Detail
UNDEFINED_USER_NAME
static final java.lang.String UNDEFINED_USER_NAME
The user name for undefined user: "@undefined".- See Also:
- Constant Field Values
ADMIN_USER_NAME
static final java.lang.String ADMIN_USER_NAME
The user name for default administrator user: "iiziAdmin".- See Also:
- Constant Field Values
ADMIN_BACKUP_USER_NAME
static final java.lang.String ADMIN_BACKUP_USER_NAME
The user name for default backup administrator user: "iiziAdmin BACKUP".- See Also:
- Constant Field Values
Method Detail
isUndefined
boolean isUndefined()
Checks if this user is the "undefined" user that is used for external login. Once the user is authenticated by the external framework, a real user is assigned for the session.- Returns:
- true if user is "undefined" and false for normal users.
getBasicUserInfo
UserInfoBase getBasicUserInfo()
Gets the basic user information that was last refreshed from the database.- Returns:
- The basic user information, or null if user is the "undefined" user.
getLastAccessedTime
long getLastAccessedTime()
Gets the last access time for the user.- Returns:
- Time in millis since the epoch.
getLocationHistory
IUserLocationHistory getLocationHistory()
Gets the user's location history. The history is fed with locations from the background location service.- Returns:
- An instance of the users locations history.
- Throws:
java.lang.IllegalStateException- If this call is done when the information of the user is undefined.