com.ibm.team.fvt.tests.clm.pages.clm
Class ClmClientAccessLicense

java.lang.Object
  extended by com.ibm.team.fvt.tests.clm.pages.clm.ClmClientAccessLicense
All Implemented Interfaces:
java.lang.Comparable<ClmClientAccessLicense>

public class ClmClientAccessLicense
extends java.lang.Object
implements java.lang.Comparable<ClmClientAccessLicense>

Manage the CLM Client Access License.

Basically defined by its type (or name), a CAL also belongs to an appli.


Constructor Summary
ClmClientAccessLicense(java.lang.String name)
           
 
Method Summary
 int compareTo(ClmClientAccessLicense o)
           
 boolean equals(java.lang.Object obj)
           
 int getAssigned()
           
 java.util.Date getExpires()
           
 java.lang.String getProductName()
           
 boolean getStatus()
           
 int getTotal()
           
 java.lang.String getType()
           
 java.lang.String getVariant()
           
 double getVersion()
           
 int hashCode()
           
 java.lang.String key()
          Returns the license key.
 void setAssigned(int assigned)
           
 void setExpires(java.util.Date expires)
           
 void setStatus(boolean status)
           
 void setTotal(int total)
           
 void setVariant(java.lang.String variant)
           
 void setVersion(double version)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClmClientAccessLicense

public ClmClientAccessLicense(java.lang.String name)
Method Detail

compareTo

public int compareTo(ClmClientAccessLicense o)
Specified by:
compareTo in interface java.lang.Comparable<ClmClientAccessLicense>

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

getAssigned

public int getAssigned()

getExpires

public java.util.Date getExpires()

getProductName

public java.lang.String getProductName()

getStatus

public boolean getStatus()

getTotal

public int getTotal()

getType

public java.lang.String getType()

getVariant

public java.lang.String getVariant()

getVersion

public double getVersion()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

key

public java.lang.String key()
Returns the license key.

The key is based on the name using the following algorithm:

For example, the key "Rational Quality Manager - Quality Professional" of license will be "rqmQualProf".

There's one exception for "Rational Team Concert - Developer for IBM Enterprise Platforms" license which key is "rtcDeveIEP".

Returns:
The license key as a String

setAssigned

public void setAssigned(int assigned)

setExpires

public void setExpires(java.util.Date expires)

setStatus

public void setStatus(boolean status)

setTotal

public void setTotal(int total)

setVariant

public void setVariant(java.lang.String variant)

setVersion

public void setVersion(double version)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object