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 application.


Constructor Summary
ClmClientAccessLicense(java.lang.String name)
           
ClmClientAccessLicense(java.lang.String name, int productAccess)
           
ClmClientAccessLicense(java.lang.String name, java.lang.String key, int productAccess)
           
 
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()
           
 boolean hasQmReadAccess()
          Tells whether the current license gives QM read access.
 boolean hasQmWriteAccess()
          Tells whether the current license gives QM write access.
 boolean hasRmReadAccess()
          Tells whether the current license gives RM read access.
 boolean hasRmWriteAccess()
          Tells whether the current license gives RM write access.
 boolean hasRtcReadAccess(ClmLicensingConstants.RtcLicenseArea area)
          Tells whether the current license gives RTC read access.
 boolean hasRtcWriteAccess(ClmLicensingConstants.RtcLicenseArea area)
          Tells whether the current license gives RTC write access.
 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)

ClmClientAccessLicense

public ClmClientAccessLicense(java.lang.String name,
                              int productAccess)

ClmClientAccessLicense

public ClmClientAccessLicense(java.lang.String name,
                              java.lang.String key,
                              int productAccess)
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

hasQmReadAccess

public boolean hasQmReadAccess()
Tells whether the current license gives QM read access.

Returns:
true if it does give access to read QM resources, false otherwise.

hasQmWriteAccess

public boolean hasQmWriteAccess()
Tells whether the current license gives QM write access.

Returns:
true if it does give access to create or modify QM resources, false otherwise.

hasRmReadAccess

public boolean hasRmReadAccess()
Tells whether the current license gives RM read access.

Returns:
true if it does give access to read RM resources, false otherwise.

hasRmWriteAccess

public boolean hasRmWriteAccess()
Tells whether the current license gives RM write access.

Returns:
true if it does give access to create or modify RM resources, false otherwise.

hasRtcReadAccess

public boolean hasRtcReadAccess(ClmLicensingConstants.RtcLicenseArea area)
Tells whether the current license gives RTC read access.

Returns:
true if it does give access to read RTC resources, false otherwise.

hasRtcWriteAccess

public boolean hasRtcWriteAccess(ClmLicensingConstants.RtcLicenseArea area)
Tells whether the current license gives RTC write access.

Returns:
true if it does give access to create or modify RTC resources, false otherwise.

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