games.strategy.engine.lobby.server
Class ModeratorController

java.lang.Object
  extended by games.strategy.engine.lobby.server.ModeratorController
All Implemented Interfaces:
IModeratorController, IRemote

public class ModeratorController
extends java.lang.Object
implements IModeratorController


Constructor Summary
ModeratorController(IServerMessenger messenger)
           
 
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)
           
static RemoteName getModeratorControllerName()
           
 boolean isAdmin()
          Is the current user an admin.
 void register(IRemoteMessenger messenger)
           
 boolean setPassword(INode node, java.lang.String hashedPassword)
          Reset the password of the given user. returning true if the password was updated.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModeratorController

public ModeratorController(IServerMessenger messenger)
Method Detail

getModeratorControllerName

public static final RemoteName getModeratorControllerName()

register

public void register(IRemoteMessenger messenger)

banIp

public void banIp(INode node,
                  java.util.Date banExpires)
Description copied from interface: IModeratorController
Ban the ip of the given INode. The ban will last for 48 hours.

Specified by:
banIp in interface IModeratorController

boot

public void boot(INode node)
Description copied from interface: IModeratorController
Boot the given INode from the network.

This method can only be called by admin users.

Specified by:
boot in interface IModeratorController

isAdmin

public boolean isAdmin()
Description copied from interface: IModeratorController
Is the current user an admin.

Specified by:
isAdmin in interface IModeratorController

getIpAndAliases

public java.lang.String getIpAndAliases(INode node)
Specified by:
getIpAndAliases in interface IModeratorController

setPassword

public boolean setPassword(INode node,
                           java.lang.String hashedPassword)
Description copied from interface: IModeratorController
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.

Specified by:
setPassword in interface IModeratorController