com.jp.protection.pub.pro.lserver
Class LicenseDataImpl

java.lang.Object
  extended by com.jp.protection.pub.pro.lserver.LicenseDataImpl
All Implemented Interfaces:
LicenseData, java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
LicenseDataImpl.RequestImpl, LicenseDataImpl.ResponceImpl

public class LicenseDataImpl
extends java.lang.Object
implements LicenseData

Default implementation of the LicenseData interface

Since:
3.0
See Also:
Serialized Form

Nested Class Summary
static class LicenseDataImpl.RequestImpl
          Default implementation of the Request interface
static class LicenseDataImpl.ResponceImpl
          Default implementation of the Response interface
 
Nested classes/interfaces inherited from interface com.jp.protection.pub.pro.lserver.LicenseData
LicenseData.Request, LicenseData.Response
 
Field Summary
protected  java.lang.String fLicenseExpireInfo
           
protected  java.util.Date fLicenseIssueDate
           
protected  java.lang.String fLicenseNumber
           
protected  int fLicenseOptions
           
protected  int fLicenseType
           
protected  int fNumberCopies
           
protected  java.lang.String fProduct
           
protected  java.lang.String fProductEdition
           
protected  int fProductMajorVersion
           
protected  int fProductMinorVersion
           
protected  int fUserLicensingModel
           
(package private) static dev.beans.presentation.BeanPresentationPrinter PRINTER
           
static long serialVersionUID
           
static java.lang.String ULM_FLOATING
           
static java.lang.String ULM_FLOATING_LS
           
static java.lang.String ULM_NAMED
           
static java.lang.String ULM_NAMED_LS
           
 
Fields inherited from interface com.jp.protection.pub.pro.lserver.LicenseData
PROPERTY_LICENSE_EXPIRE_INFO, PROPERTY_LICENSE_ISSUE_DATE, PROPERTY_LICENSE_NUMBER, PROPERTY_LICENSE_TYPE, PROPERTY_NUMBER_COPIES, PROPERTY_PRODUCT, PROPERTY_PRODUCT_EDITION, PROPERTY_PRODUCT_MAJOR_VERSION, PROPERTY_PRODUCT_MINOR_VERSION, PROPERTY_USER_LICENSING_MODEL
 
Constructor Summary
LicenseDataImpl()
          Creates a new LicenseDataImpl instance
LicenseDataImpl(LicenseData aLicenseData)
          Creates a new LicenseDataImpl instance and copies properties from given license data
 
Method Summary
 java.lang.Object clone()
           
 boolean equals(java.lang.Object obj)
           
 java.lang.String getLicenseExpireInfo()
          Returns textual representation of the license expiration information
 java.util.Date getLicenseIssueDate()
          Returns the license issue date
 java.lang.String getLicenseNumber()
          Returns the license number
 int getLicenseOptions()
          Return the license options as a combination of the License.OPTION_ constants
 int getLicenseType()
          Returns the license type as one of the License.TYPE_ constants
static int getLicenseType(java.lang.String aLicenseType)
          Utility method to get license type value based on its textual representation
static java.lang.String getLicenseTypeStr(int aLicenseType)
          Utility method to get textual representation of the license type
 int getNumberCopies()
          Returns the license number of copies value
 java.lang.String getProduct()
          Returns the product identifier
 java.lang.String getProductEdition()
          Returns the product's edition identifier
 int getProductMajorVersion()
          Returns the product's major version
 int getProductMinorVersion()
          Returns the product's minor version
 int getUserLicensingModel()
          Returns the user licensing model as one of the License.USER_LICENSING_ constants
static int getUserLicensingModel(java.lang.String aUserLicensingModel)
          Utility method to get user licensing model value based on its textual representation
static java.lang.String getUserLicensingModelStr(int aUserLicensingModel)
          Utility method to get textual representation of the license user licensing model
 void setLicenseExpireInfo(java.lang.String aLicenseExpireInfo)
          Specifies license expiration information
 void setLicenseIssueDate(java.util.Date aLicenseIssueDate)
          Specifies license issue date
 void setLicenseNumber(java.lang.String aLicenseNumber)
          Specifies license number
 void setLicenseOptions(int aLicenseOptions)
          Specifies license options
 void setLicenseType(int aLicenseType)
          Specifies license type
 void setNumberCopies(int aNumberCopies)
          Specifies number of copies value
 void setProduct(java.lang.String aProduct)
          Specifies product identifier
 void setProductEdition(java.lang.String aProductEdition)
          Specifies product's edition identifier
 void setProductMajorVersion(int aProductMajorVersion)
          Specifies product's major version
 void setProductMinorVersion(int aProductMinorVersion)
          Specifies product's minor version
 void setUserLicensingModel(int aUserLicensingModel)
          Specifies user licensing model
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values

fLicenseType

protected int fLicenseType

fLicenseNumber

protected java.lang.String fLicenseNumber

fNumberCopies

protected int fNumberCopies

fProduct

protected java.lang.String fProduct

fProductEdition

protected java.lang.String fProductEdition

fProductMajorVersion

protected int fProductMajorVersion

fProductMinorVersion

protected int fProductMinorVersion

fUserLicensingModel

protected int fUserLicensingModel

fLicenseOptions

protected int fLicenseOptions

fLicenseIssueDate

protected java.util.Date fLicenseIssueDate

fLicenseExpireInfo

protected java.lang.String fLicenseExpireInfo

ULM_FLOATING

public static final java.lang.String ULM_FLOATING
See Also:
Constant Field Values

ULM_FLOATING_LS

public static final java.lang.String ULM_FLOATING_LS
See Also:
Constant Field Values

ULM_NAMED

public static final java.lang.String ULM_NAMED
See Also:
Constant Field Values

ULM_NAMED_LS

public static final java.lang.String ULM_NAMED_LS
See Also:
Constant Field Values

PRINTER

static final dev.beans.presentation.BeanPresentationPrinter PRINTER
Constructor Detail

LicenseDataImpl

public LicenseDataImpl()
Creates a new LicenseDataImpl instance


LicenseDataImpl

public LicenseDataImpl(LicenseData aLicenseData)
Creates a new LicenseDataImpl instance and copies properties from given license data

Parameters:
aLicenseData - license data to copy properties from
Method Detail

equals

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

getLicenseNumber

public java.lang.String getLicenseNumber()
Description copied from interface: LicenseData
Returns the license number

Specified by:
getLicenseNumber in interface LicenseData
Returns:
license number

clone

public java.lang.Object clone()
Specified by:
clone in interface LicenseData
Overrides:
clone in class java.lang.Object

setLicenseNumber

public void setLicenseNumber(java.lang.String aLicenseNumber)
Specifies license number

Parameters:
aLicenseNumber - license number to set

getLicenseType

public int getLicenseType()
Description copied from interface: LicenseData
Returns the license type as one of the License.TYPE_ constants

Specified by:
getLicenseType in interface LicenseData
Returns:
license type

setLicenseType

public void setLicenseType(int aLicenseType)
Specifies license type

Parameters:
aLicenseType - license type to set

getNumberCopies

public int getNumberCopies()
Description copied from interface: LicenseData
Returns the license number of copies value

Specified by:
getNumberCopies in interface LicenseData
Returns:
license number of copies value

setNumberCopies

public void setNumberCopies(int aNumberCopies)
Specifies number of copies value

Parameters:
aNumberCopies - number of copies value to set

getProduct

public java.lang.String getProduct()
Description copied from interface: LicenseData
Returns the product identifier

Specified by:
getProduct in interface LicenseData
Returns:
product identifier

setProduct

public void setProduct(java.lang.String aProduct)
Specifies product identifier

Parameters:
aProduct - product identifier to set

getProductEdition

public java.lang.String getProductEdition()
Description copied from interface: LicenseData
Returns the product's edition identifier

Specified by:
getProductEdition in interface LicenseData
Returns:
product edition identifier

setProductEdition

public void setProductEdition(java.lang.String aProductEdition)
Specifies product's edition identifier

Parameters:
aProductEdition - product edition identifier to set

getProductMajorVersion

public int getProductMajorVersion()
Description copied from interface: LicenseData
Returns the product's major version

Specified by:
getProductMajorVersion in interface LicenseData
Returns:
product major version

setProductMajorVersion

public void setProductMajorVersion(int aProductMajorVersion)
Specifies product's major version

Parameters:
aProductMajorVersion - product major version to set

getProductMinorVersion

public int getProductMinorVersion()
Description copied from interface: LicenseData
Returns the product's minor version

Specified by:
getProductMinorVersion in interface LicenseData
Returns:
product minor version

setProductMinorVersion

public void setProductMinorVersion(int aProductMinorVersion)
Specifies product's minor version

Parameters:
aProductMinorVersion - product minor version to set

getUserLicensingModel

public int getUserLicensingModel()
Description copied from interface: LicenseData
Returns the user licensing model as one of the License.USER_LICENSING_ constants

Specified by:
getUserLicensingModel in interface LicenseData
Returns:
user licensing model

setUserLicensingModel

public void setUserLicensingModel(int aUserLicensingModel)
Specifies user licensing model

Parameters:
aUserLicensingModel - user licensing model to set

getLicenseTypeStr

public static java.lang.String getLicenseTypeStr(int aLicenseType)
Utility method to get textual representation of the license type

Parameters:
aLicenseType - license type value
Returns:
textual representation of the license type

getLicenseType

public static int getLicenseType(java.lang.String aLicenseType)
Utility method to get license type value based on its textual representation

Parameters:
aLicenseType - textual representation of license type
Returns:
license type value

getUserLicensingModel

public static int getUserLicensingModel(java.lang.String aUserLicensingModel)
Utility method to get user licensing model value based on its textual representation

Parameters:
aUserLicensingModel - textual representation of user licensing model as one of ULM_ constants
Returns:
user licensing model

getUserLicensingModelStr

public static java.lang.String getUserLicensingModelStr(int aUserLicensingModel)
Utility method to get textual representation of the license user licensing model

Parameters:
aUserLicensingModel - user licensing model
Returns:
textual representation of user licensing model

getLicenseOptions

public int getLicenseOptions()
Description copied from interface: LicenseData
Return the license options as a combination of the License.OPTION_ constants

Specified by:
getLicenseOptions in interface LicenseData
Returns:
license options

setLicenseOptions

public void setLicenseOptions(int aLicenseOptions)
Specifies license options

Parameters:
aLicenseOptions - license options to set

toString

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

getLicenseExpireInfo

public java.lang.String getLicenseExpireInfo()
Description copied from interface: LicenseData
Returns textual representation of the license expiration information

Specified by:
getLicenseExpireInfo in interface LicenseData
Returns:
expiration information

setLicenseExpireInfo

public void setLicenseExpireInfo(java.lang.String aLicenseExpireInfo)
Specifies license expiration information

Parameters:
aLicenseExpireInfo - license expiration information to set

getLicenseIssueDate

public java.util.Date getLicenseIssueDate()
Description copied from interface: LicenseData
Returns the license issue date

Specified by:
getLicenseIssueDate in interface LicenseData
Returns:
license issue date

setLicenseIssueDate

public void setLicenseIssueDate(java.util.Date aLicenseIssueDate)
Specifies license issue date

Parameters:
aLicenseIssueDate - license issue date to set