games.strategy.engine.lobby.server
Interface IModeratorController

All Superinterfaces:
IRemote
All Known Implementing Classes:
ModeratorController

public interface IModeratorController
extends IRemote


Method Summary
 void banIp(INode node, java.util.Date banExpires)
          Ban the ip of the given INode.
 void boot(INode node)
          Boot the given INode from the network.
 java.lang.String getIpAndAliases(INode node)
           
 boolean isAdmin()
          Is the current user an admin.
 boolean setPassword(INode node, java.lang.String hashedPassword)
          Reset the password of the given user. returning true if the password was updated.
 

Method Detail

boot

void boot(INode node)
Boot the given INode from the network.

This method can only be called by admin users.


banIp

void banIp(INode node,
           java.util.Date banExpires)
Ban the ip of the given INode. The ban will last for 48 hours.


setPassword

boolean setPassword(INode node,
                    java.lang.String hashedPassword)
Reset the password of the given user. returning true if the password was updated.

You cannot change the password of an anonymous node, and you cannot change the password for an admin user.


getIpAndAliases

java.lang.String getIpAndAliases(INode node)

isAdmin

boolean isAdmin()
Is the current user an admin.