live.dto
Class Guest

java.lang.Object
  extended bylive.dto.Guest

public class Guest
extends Object

Guest is used by the cache to store information about a specific guest.

Author:
Jason J. Herne

Field Summary
private  String groupName
           
private  String guestName
           
private  String initMem
           
private  String maxMem
           
private  String permissionClasses
           
 
Constructor Summary
Guest(String guestName)
          Creates a guest, setting its name.
Guest(String guestName, String groupName)
          Creates a guest, setting its name and group name.
 
Method Summary
 boolean equals(Object b)
          Tests if two guests have the same name.
 String getGroupName()
          Gets the name of the group this guest belongs to.
 String getGuestName()
          Gets the name of this guest.
 String getInitMem()
          Gets the initial memory (storage) size.
 String getMaxMem()
           
 String getPermissionClasses()
           
 int hashCode()
          Returns the hash code
 void setGroupName(String groupName)
          Sets the group name of this guest object.
 void setGuestName(String guestName)
          Sets the guest name of this guest object.
 void setInitMem(String initMem)
          Sets the initial memory (storage) size.
 void setMaxMem(String maxMem)
           
 void setPermissionClasses(String permissionClasses)
           
 String toString()
          Returns a readable description of the guest in the form guest name: group name
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

guestName

private String guestName

groupName

private String groupName

permissionClasses

private String permissionClasses

initMem

private String initMem

maxMem

private String maxMem
Constructor Detail

Guest

public Guest(String guestName,
             String groupName)
Creates a guest, setting its name and group name.

Parameters:
guestName - Name of this guest.
groupName - Name of group this guest belongs to.

Guest

public Guest(String guestName)
Creates a guest, setting its name. Its group is set to null.

Parameters:
guestName - Name of this guest.
Method Detail

setGuestName

public void setGuestName(String guestName)
Sets the guest name of this guest object.

Parameters:
guestName - The name of this guest.

getGuestName

public String getGuestName()
Gets the name of this guest.

Returns:
The name of this guest.

setGroupName

public void setGroupName(String groupName)
Sets the group name of this guest object.

Parameters:
groupName - The name of group this guest belongs to.

getGroupName

public String getGroupName()
Gets the name of the group this guest belongs to.

Returns:
Name of the group this guest belongs to.

equals

public boolean equals(Object b)
Tests if two guests have the same name. It ignores the group and all other parameters!

See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Returns the hash code

Returns:
Hash code

toString

public String toString()
Returns a readable description of the guest in the form guest name: group name

Returns:
GuestName: groupName
See Also:
Object.toString()

setPermissionClasses

public void setPermissionClasses(String permissionClasses)
Parameters:
permissionClasses - The permissionClasses to set.

getPermissionClasses

public String getPermissionClasses()
Returns:
Returns the permissionClasses.

setInitMem

public void setInitMem(String initMem)
Sets the initial memory (storage) size.

Parameters:
initMem - The initial memory size to set.

getInitMem

public String getInitMem()
Gets the initial memory (storage) size.

Returns:
Returns the initial memory size.

setMaxMem

public void setMaxMem(String maxMem)
Parameters:
maxMem - The maxMem to set.

getMaxMem

public String getMaxMem()
Returns:
Returns the maxMem.


Copyright © 2005