com.redhat.rhn.frontend.dto
Class ActivationKeyDto

java.lang.Object
  extended by com.redhat.rhn.frontend.dto.BaseDto
      extended by com.redhat.rhn.frontend.dto.ActivationKeyDto
All Implemented Interfaces:
Selectable

public class ActivationKeyDto
extends BaseDto

DTO for a com.redhat.rhn.domain.ActivationKey


Field Summary
 
Fields inherited from class com.redhat.rhn.frontend.dto.BaseDto
ONE, ZERO
 
Constructor Summary
ActivationKeyDto()
           
 
Method Summary
 java.lang.String getFormattedOrgDefault()
          Gets the i18ned of Yes/No if its the org default
 java.lang.Long getId()
          Gets the value of id
 java.lang.String getNote()
          Gets the value of note
 java.lang.Integer getSystemCount()
          Gets the value of systemCount
 java.lang.String getToken()
          Gets the value of token
 java.lang.Integer getUsageLimit()
          Gets the value of usageLimit
 boolean isDisabled()
          Is the key disabled?
 boolean isOrgDefault()
           
 void setDisabled(java.lang.Integer value)
          Disable (or enable) the key
 void setId(java.lang.Long argId)
          Sets the value of id
 void setNote(java.lang.String argNote)
          Sets the value of note
 void setOrgDefault(java.lang.String argOrgDefault)
          Sets the value of orgDefault
 void setSystemCount(java.lang.Integer argSystemCount)
          Sets the value of systemCount
 void setToken(java.lang.String argToken)
          Sets the value of token
 void setUsageLimit(java.lang.Integer argUsageLimit)
          Sets the value of usageLimit
 
Methods inherited from class com.redhat.rhn.frontend.dto.BaseDto
addToSet, getSelectionKey, isSelectable, isSelected, setSelected
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActivationKeyDto

public ActivationKeyDto()
Method Detail

getId

public java.lang.Long getId()
Gets the value of id

Specified by:
getId in class BaseDto
Returns:
the value of id

setId

public void setId(java.lang.Long argId)
Sets the value of id

Parameters:
argId - Value to assign to this.id

isDisabled

public boolean isDisabled()
Is the key disabled?

Returns:
Returns true if disabled, false if enabled.

setDisabled

public void setDisabled(java.lang.Integer value)
Disable (or enable) the key

Parameters:
value - 1 if the key is disabled

getNote

public java.lang.String getNote()
Gets the value of note

Returns:
the value of note

setNote

public void setNote(java.lang.String argNote)
Sets the value of note

Parameters:
argNote - Value to assign to this.note

getToken

public java.lang.String getToken()
Gets the value of token

Returns:
the value of token

setToken

public void setToken(java.lang.String argToken)
Sets the value of token

Parameters:
argToken - Value to assign to this.token

getUsageLimit

public java.lang.Integer getUsageLimit()
Gets the value of usageLimit

Returns:
the value of usageLimit

setUsageLimit

public void setUsageLimit(java.lang.Integer argUsageLimit)
Sets the value of usageLimit

Parameters:
argUsageLimit - Value to assign to this.usageLimit

getSystemCount

public java.lang.Integer getSystemCount()
Gets the value of systemCount

Returns:
the value of systemCount

setSystemCount

public void setSystemCount(java.lang.Integer argSystemCount)
Sets the value of systemCount

Parameters:
argSystemCount - Value to assign to this.systemCount

getFormattedOrgDefault

public java.lang.String getFormattedOrgDefault()
Gets the i18ned of Yes/No if its the org default

Returns:
the value of orgDefault

isOrgDefault

public boolean isOrgDefault()
Returns:
true if this is the org default

setOrgDefault

public void setOrgDefault(java.lang.String argOrgDefault)
Sets the value of orgDefault

Parameters:
argOrgDefault - Value to assign to this.orgDefault