com.redhat.rhn.domain.org
Class OrgQuota

java.lang.Object
  extended by com.redhat.rhn.domain.BaseDomainHelper
      extended by com.redhat.rhn.domain.org.OrgQuota

public class OrgQuota
extends BaseDomainHelper

OrgQuota - java representation of the rhnOrgQuota table


Constructor Summary
OrgQuota()
           
 
Method Summary
 java.lang.Long getAvailable()
          Getter for the available org quota.
 java.lang.String getAvailableDisplay()
          Gives a display for the available quota.
 java.lang.Long getBonus()
          Getter for bonus
 Org getOrg()
          Get the Org (parent) from this object
 java.lang.Long getOrgId()
          Getter for orgId
 java.lang.Long getTotal()
          Getter for total
 java.lang.Long getUsed()
          Getter for used
 void setBonus(java.lang.Long bonusIn)
          Setter for bonus
 void setOrg(Org orgIn)
          Set the Org (parent) on this object
 void setOrgId(java.lang.Long orgIdIn)
          Setter for orgId
 void setTotal(java.lang.Long totalIn)
          Setter for total
 void setUsed(java.lang.Long usedIn)
          Setter for used
 
Methods inherited from class com.redhat.rhn.domain.BaseDomainHelper
getCreated, getModified, setCreated, setModified
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrgQuota

public OrgQuota()
Method Detail

setOrg

public void setOrg(Org orgIn)
Set the Org (parent) on this object

Parameters:
orgIn - the Org we want to set as the parent of this object.

getOrg

public Org getOrg()
Get the Org (parent) from this object

Returns:
Org associated with this quota

getOrgId

public java.lang.Long getOrgId()
Getter for orgId

Returns:
Long to get

setOrgId

public void setOrgId(java.lang.Long orgIdIn)
Setter for orgId

Parameters:
orgIdIn - to set

getTotal

public java.lang.Long getTotal()
Getter for total

Returns:
Long to get

setTotal

public void setTotal(java.lang.Long totalIn)
Setter for total

Parameters:
totalIn - to set

getBonus

public java.lang.Long getBonus()
Getter for bonus

Returns:
Long to get

setBonus

public void setBonus(java.lang.Long bonusIn)
Setter for bonus

Parameters:
bonusIn - to set

getUsed

public java.lang.Long getUsed()
Getter for used

Returns:
Long to get

setUsed

public void setUsed(java.lang.Long usedIn)
Setter for used

Parameters:
usedIn - to set

getAvailable

public java.lang.Long getAvailable()
Getter for the available org quota. This is total + bonus - used.

Returns:
The available quota for an org.

getAvailableDisplay

public java.lang.String getAvailableDisplay()
Gives a display for the available quota. This is total + bonus - used.

Returns:
A display string for the available org quota.