ks.server.interfaces
Interface IReadonlyUserManager

All Known Subinterfaces:
IUserManager

public interface IReadonlyUserManager

This interface provides a read-only access onto the User Manager.

Since v1.7.3 it includes a method to sendGameStatus(Status) for a game that has completed.


Method Summary
 java.util.Enumeration activeUsers()
          Return an Enumeration (of String userNames) of all active users in the system.
 boolean isLoggedIn(java.lang.String toUser)
          Determines if user is actively logged in.
 boolean isUser(java.lang.String who)
          Determine if string refers to a valid user.
 void updateGameStats(GameResult gr)
          Updates information for the user regarding their game play.
 

Method Detail

activeUsers

public java.util.Enumeration activeUsers()
Return an Enumeration (of String userNames) of all active users in the system.


isUser

public boolean isUser(java.lang.String who)
Determine if string refers to a valid user.

Parameters:
who - Name of the user
Returns:
User object associated with the string

updateGameStats

public void updateGameStats(GameResult gr)
Updates information for the user regarding their game play. Uses the newly defined class in the common area.

Parameters:
gr - GameResult as calculated by GameOver command.

isLoggedIn

public boolean isLoggedIn(java.lang.String toUser)
Determines if user is actively logged in.

Parameters:
toUser -
Returns:
true if user is logged in; false otherwise.