com.toremote.gateway.connection
Interface UserListInterface

All Known Implementing Classes:
AbstractUserList

public interface UserListInterface


Method Summary
 User getUserByName(java.lang.String name)
           
 User getUserByName(java.lang.String name, java.lang.String password)
           
 boolean hasUsers()
           
 void onLogin(User usr)
           
 void update(UserListInterface ul)
          update your user list with a new one.
 

Method Detail

getUserByName

User getUserByName(java.lang.String name,
                   java.lang.String password)
Parameters:
name -
password -
Returns:
null if user name or password doesn't match

hasUsers

boolean hasUsers()
Returns:
true if there are users. return false if you don't have users. Only server list is given to user

getUserByName

User getUserByName(java.lang.String name)
Parameters:
name -
Returns:
null if not found or no user

update

void update(UserListInterface ul)
update your user list with a new one. Always do nothing here.

Parameters:
ul: - user list used for updating.

onLogin

void onLogin(User usr)
Parameters:
usr -