AR System Java API

com.bmc.arsys.api
Class LicenseInfo

java.lang.Object
  extended by com.bmc.arsys.api.LicenseInfo
All Implemented Interfaces:
Serializable

public class LicenseInfo
extends Object
implements Serializable

The LicenseInfo class represents detailed information about licenses.

See Also:
Serialized Form

Constructor Summary
LicenseInfo()
          Default constructor
LicenseInfo(String licKey, String licType, String licSubtype, Date issuedDate, Date expireDate, String siteName, String hostId, int numLicenses, String tokenList, String comment)
          Accepts string.
 
Method Summary
 boolean equals(Object obj)
          Use this method for checking equality between the current object and the provided one.
 String getComment()
          Returns comments added about licenses.
 Date getExpireDate()
          Returns date that license expires.
 String getHostId()
          Returns host ID.
 Date getIssuedDate()
          Returns date that license was issued.
 String getlicKey()
          Returns license key.
 String getlicSubtype()
          Returns sub-type of license based on type of license.
 String getlicType()
          Returns type of license.
 int getNumLicenses()
          Returns number of licenses.
 String getSiteName()
          Returns site name.
 String getTokenList()
          Returns additional data for the license.
 int hashCode()
          Returns the hash code value for this instance of the current class.
 boolean isDemo()
           
 String toString()
          Returns a string description of the object.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LicenseInfo

public LicenseInfo()
Default constructor


LicenseInfo

public LicenseInfo(String licKey,
                   String licType,
                   String licSubtype,
                   Date issuedDate,
                   Date expireDate,
                   String siteName,
                   String hostId,
                   int numLicenses,
                   String tokenList,
                   String comment)
Accepts string.

Method Detail

isDemo

public boolean isDemo()
Returns:
the isDemo

getExpireDate

public Date getExpireDate()
Returns date that license expires.


getIssuedDate

public Date getIssuedDate()
Returns date that license was issued.


getlicType

public String getlicType()
Returns type of license.


getlicKey

public String getlicKey()
Returns license key.


getlicSubtype

public String getlicSubtype()
Returns sub-type of license based on type of license. For example, the sub-types of a "AR Server" type license is either "Demo" or "Server."


getSiteName

public String getSiteName()
Returns site name.


getHostId

public String getHostId()
Returns host ID.


getNumLicenses

public int getNumLicenses()
Returns number of licenses.


getTokenList

public String getTokenList()
Returns additional data for the license.


getComment

public String getComment()
Returns comments added about licenses.


toString

public String toString()
Returns a string description of the object.

Overrides:
toString in class Object

hashCode

public int hashCode()
Returns the hash code value for this instance of the current class. This method is supported as required by the general contract of Object.hashCode, for the benefit of hash tables such as those provided by java.util.Hashtable.

Overrides:
hashCode in class Object
Returns:
returns the hash code for this instance

equals

public boolean equals(Object obj)
Use this method for checking equality between the current object and the provided one. The result is true only if the argument is not null, is of the same type and represents the same content.

Overrides:
equals in class Object
Parameters:
obj - the object that we are comparing to
Returns:
returns a boolean that tells if the two objects equal

AR System Java API

© Copyright 2006, 2007 BMC Software, Inc.