com.redhat.rhn.domain.server
Class ServerGroup

java.lang.Object
  extended by com.redhat.rhn.domain.BaseDomainHelper
      extended by com.redhat.rhn.domain.server.ServerGroup
Direct Known Subclasses:
EntitlementServerGroup, ManagedServerGroup

public class ServerGroup
extends BaseDomainHelper

Server - Class representation of the table rhnServer.


Field Summary
static long UNLIMITED
           
 
Constructor Summary
ServerGroup()
           
 
Method Summary
 boolean equals(java.lang.Object other)
          
 java.lang.Long getCurrentMembers()
          the number of current servers
 java.lang.String getDescription()
          Getter for description
 ServerGroupType getGroupType()
           
 java.lang.Long getId()
          Getter for id
 java.lang.String getName()
          Getter for name
 Org getOrg()
           
 java.util.List getServers()
          Returns the set of servers associated to the group Note this is readonly set because we DONOT want you to modify this set.
 int hashCode()
          
 boolean isManaged()
          Returns true if this server group is a User Managed false if its Entitlement Managed.
 void setDescription(java.lang.String descriptionIn)
          Setter for description
protected  void setGroupType(ServerGroupType groupTypeIn)
          Note this is to be set by hibernate only
 void setId(java.lang.Long idIn)
          Setter for id
 void setName(java.lang.String nameIn)
          Setter for name
 void setOrg(Org orgIn)
           
 java.lang.String toString()
          
 
Methods inherited from class com.redhat.rhn.domain.BaseDomainHelper
getCreated, getModified, setCreated, setModified
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

UNLIMITED

public static final long UNLIMITED
See Also:
Constant Field Values
Constructor Detail

ServerGroup

public ServerGroup()
Method Detail

getId

public java.lang.Long getId()
Getter for id

Returns:
Long to get

setId

public void setId(java.lang.Long idIn)
Setter for id

Parameters:
idIn - to set

getName

public java.lang.String getName()
Getter for name

Returns:
String to get

setName

public void setName(java.lang.String nameIn)
Setter for name

Parameters:
nameIn - to set

getDescription

public java.lang.String getDescription()
Getter for description

Returns:
String to get

setDescription

public void setDescription(java.lang.String descriptionIn)
Setter for description

Parameters:
descriptionIn - to set

getOrg

public Org getOrg()
Returns:
Returns the org.

setOrg

public void setOrg(Org orgIn)
Parameters:
orgIn - The org to set.

getGroupType

public ServerGroupType getGroupType()
Returns:
Returns the groupType.

setGroupType

protected void setGroupType(ServerGroupType groupTypeIn)
Note this is to be set by hibernate only

Parameters:
groupTypeIn - The groupType to set.

getServers

public java.util.List getServers()
Returns the set of servers associated to the group Note this is readonly set because we DONOT want you to modify this set.

Returns:
a list of Servers which are members of the group.

isManaged

public boolean isManaged()
Returns true if this server group is a User Managed false if its Entitlement Managed.

Returns:
true if its managed

getCurrentMembers

public java.lang.Long getCurrentMembers()
the number of current servers

Returns:
Long number for current servers

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object other)

Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object