Package com.iizix.user
Interface IAuthenticatedUser
- All Known Implementing Classes:
- AuthenticatedUser
public interface IAuthenticatedUser
Interface 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 SummaryFields
- Method SummaryModifier and TypeMethodDescriptionGets the basic user information that was last refreshed from the database.- longGets the last access time for the user.Gets the user's location history.- booleanChecks if this user is the "undefined" user that is used for external login.
- Field Details- UNDEFINED_USER_NAMEThe user name for undefined user: "@undefined".- See Also:
 
- ADMIN_USER_NAMEThe user name for default administrator user: "iiziAdmin".- See Also:
 
- ADMIN_BACKUP_USER_NAMEThe user name for default backup administrator user: "iiziAdmin BACKUP".- See Also:
 
 
- Method Details- isUndefinedboolean 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.
 
- getBasicUserInfoUserInfoBase 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.
 
- getLastAccessedTimelong getLastAccessedTime()Gets the last access time for the user.- Returns:
- Time in millis since the epoch.
 
- getLocationHistoryIUserLocationHistory 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:
- IllegalStateException- If this call is done when the information of the user is undefined.