public List < ActivityRecord > retrieveHistory ( ModeledAuthenticatedUser authenticatedUser , ModeledUser user ) throws GuacamoleException { String username = user . getIdentifier ( ) ; // Retrieve history only if READ permission is granted if ( hasObjectPermission ( authenticatedUser , username , ObjectPermission . Type . READ ) ) return getObjectInstances ( userRecordMapper . select ( username ) ) ; // The user does not have permission to read the history throw new GuacamoleSecurityException ( "Permission denied." ) ; }
Retrieves the login history of the given user including any active sessions .