org.starhope.appius.sys.admin
Class Zone
java.lang.Object
BaseDatum
org.starhope.appius.sys.admin.Zone
public class Zone
- extends BaseDatum
Constructor Summary |
Zone()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
Zone
public Zone()
get
private static Zone get(Domain domain,
String name)
- Parameters:
domain
- WRITEMEname
- 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()