com.ibm.team.fvt.tests.clm.pages.clm
Class ClmClientAccessLicense
java.lang.Object
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.
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
ClmClientAccessLicense
public ClmClientAccessLicense(java.lang.String name)
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:
- The leading product when present (ie. before " - ") is reduce to its acronym:
- Rational Team Concert: rtc
- Rational Quality Manager: rqm
- Rational Requirements Composer: rrc
- Rational solution for Collaborative Lifecycle Management: clm
- Trailing part of the name (or the entire name if no product is specified)
is compacted by removing spaces and dashes and camel case written with only
4 characters.
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