org.starhope.appius.sys.admin
Class Zone

java.lang.Object
  extended by BaseDatum
      extended by org.starhope.appius.sys.admin.Zone

public class Zone
extends BaseDatum


Field Summary
private  int currentUsers
           
private  com.sun.sgs.app.ManagedReference<Domain> domain
           
private  com.sun.sgs.app.ManagedReference<Filter> filter
           
private  int maxUsers
           
private  String motd
           
private  String name
           
private  int priority
           
private static long serialVersionUID
           
private  com.sun.sgs.app.ManagedReference<Server> server
           
private  String serverType
           
private  String staffMOTD
           
 
Constructor Summary
Zone()
           
 
Method Summary
private static Zone get(Domain domain, String name)
           
static Zone getByName(String zoneName)
           
 int getCurrentUsers()
           
 Domain getDomain()
           
 Filter getFilter()
           
 int getMaxUsers()
           
 String getMOTD()
          Gives the message of the day that will be passed to users signing on to this Zone
 String getName()
           
 int getPriority()
           
 Room getRoom(String roomName)
           
 Server getServer()
           
 String getServerType()
           
 String getStaffMOTD()
          Returns the staff-only message of the day, displayed to staff members signing on to this Zone
 void set(org.json.JSONObject o)
           
 void setCurrentUsers(int newCurrentUsers)
           
 void setDomain(Domain newDomain)
           
 void setFilter(Filter filter)
           
 void setMaxUsers(int newMaxUsers)
           
 void setMOTD(String newMOTD)
          Sets a new MOTD which will be displayed to users signing on to this Zone
 void setName(String newName)
           
 void setPriority(int newPriority)
           
 void setServer(Server newServer)
           
 void setServerType(String newServerType)
           
 void setStaffMOTD(String newStaffMOTD)
          Sets a message of the day to be displayed only to staff members when they sign on
 org.json.JSONObject toJSON()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

currentUsers

private int currentUsers

domain

private com.sun.sgs.app.ManagedReference<Domain> domain

filter

private com.sun.sgs.app.ManagedReference<Filter> filter

maxUsers

private int maxUsers

motd

private String motd

name

private String name

priority

private int priority

server

private com.sun.sgs.app.ManagedReference<Server> server

serverType

private String serverType

staffMOTD

private String staffMOTD
Constructor Detail

Zone

public Zone()
Method Detail

get

private static Zone get(Domain domain,
                        String name)
Parameters:
domain - WRITEME
name - WRITEME
Returns:
WRITEME

getByName

public static Zone getByName(String zoneName)

getCurrentUsers

public int getCurrentUsers()
Returns:

getDomain

public Domain getDomain()

getFilter

public Filter getFilter()
Returns:

getMaxUsers

public int getMaxUsers()

getMOTD

public String getMOTD()
Gives the message of the day that will be passed to users signing on to this Zone

Returns:
the MOTD

getName

public String getName()

getPriority

public int getPriority()

getRoom

public Room getRoom(String roomName)

getServer

public Server getServer()
Returns:

getServerType

public String getServerType()
Returns:

getStaffMOTD

public String getStaffMOTD()
Returns the staff-only message of the day, displayed to staff members signing on to this Zone

Returns:
the staff MOTD

set

public void set(org.json.JSONObject o)
See Also:
CastsToJSON.set(org.json.JSONObject)

setCurrentUsers

public void setCurrentUsers(int newCurrentUsers)
Parameters:
newCurrentUsers -

setDomain

public void setDomain(Domain newDomain)

setFilter

public void setFilter(Filter filter)
Parameters:
filter -

setMaxUsers

public void setMaxUsers(int newMaxUsers)

setMOTD

public void setMOTD(String newMOTD)
Sets a new MOTD which will be displayed to users signing on to this Zone

Parameters:
newMOTD - the new message of the day

setName

public void setName(String newName)

setPriority

public void setPriority(int newPriority)

setServer

public void setServer(Server newServer)
Parameters:
newServer -

setServerType

public void setServerType(String newServerType)
Parameters:
newServerType -

setStaffMOTD

public void setStaffMOTD(String newStaffMOTD)
Sets a message of the day to be displayed only to staff members when they sign on

Parameters:
newStaffMOTD - the MOTD for staff

toJSON

public org.json.JSONObject toJSON()
See Also:
org.starhope.appius.util.BaseDatum#toJSON()