planetj.license
Class WOWLicense

java.lang.Object
  extended byplanetj.license.WOWLicense

public final class WOWLicense
extends java.lang.Object


Method Summary
static WOWLicense createBuilderLicense(java.lang.String edition)
          Create a new WOW builder license file for the given edition.
static WOWLicense createBuilderLicense(java.lang.String edition, int expDays, int expPeriod, int expYear)
          Create a new WOW builder license file for the given edition.
static WOWLicense createBuilderLicense(java.lang.String edition, int expDays, int expPeriod, int expYear, java.lang.String custName, int custNum)
          Create a new WOW builder license file for the given edition.
static WOWLicense createBuilderLicense(java.lang.String edition, java.lang.String custName, int custNum)
          Create a new WOW builder license file for the given edition.
 java.util.Date getCreationDate()
          Get date license was created.
 java.lang.String getCreationUser()
          Get the user who created this license.
 java.lang.String getCustomerName()
          Get the customer's name this license was created for.
 int getCustomerNumber()
          Get the customer's number this license was created for.
 java.util.Date getDateFirstRead()
          Get the date this license file was first read by WOW.
 java.lang.String getEdition()
           
 int getExpirationDays()
          Get the number of days before this license expires.
 int getExpirationPeriod()
          Get the expiration period of this license.
 int getExpirationYear()
          Get the expiration year of this license.
 java.lang.String getLicenseType()
          Get this license's type.
 int getMajorVersion()
          Get the minor version of the license file.
 int getMinorVersion()
          Get the minor version of the license file.
 java.lang.String getNotes()
          Get notes that were added when license was created.
 int getNumberOfAllowedOperations()
          Get the number of allowed operations.
 java.lang.String getValidationType()
          Get the type of validation to use for this license.
 void setCreationDate(java.util.Date date)
          Set the date license was created.
 void setCreationUser(java.lang.String user)
          Set the user who created license.
 void setCustomerName(java.lang.String name)
          Set the customer name for this license.
 void setCustomerNumber(int customerNumber)
          Set the customer number for this license.
 void setDateFirstRead(java.util.Date date)
          Set the date this license was first read.
 void setEdition(java.lang.String edition)
          Set the number of days before this license expires.
 void setExpirationDays(int days)
          Set the number of days before this license expires.
 void setExpirationPeriod(int period)
          Set the period this license will expire.
 void setExpirationYear(int year)
          Set the year this license expires.
 void setLicenseType(java.lang.String type)
          Set this license's type.
 void setMajorVersion(int version)
          Set the major version of this license.
 void setMinorVersion(int version)
          Set the minor version of this license.
 void setNotes(java.lang.String notes)
          Set notes on this license.
 void setNumberOfAllowedOperations(int number)
          Set the number of operations allowed.
 void setValidationType(java.lang.String type)
          Set the type of validation to use to validate this license.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createBuilderLicense

public static WOWLicense createBuilderLicense(java.lang.String edition)
Create a new WOW builder license file for the given edition.


createBuilderLicense

public static WOWLicense createBuilderLicense(java.lang.String edition,
                                              java.lang.String custName,
                                              int custNum)
Create a new WOW builder license file for the given edition.


createBuilderLicense

public static WOWLicense createBuilderLicense(java.lang.String edition,
                                              int expDays,
                                              int expPeriod,
                                              int expYear)
Create a new WOW builder license file for the given edition.


createBuilderLicense

public static WOWLicense createBuilderLicense(java.lang.String edition,
                                              int expDays,
                                              int expPeriod,
                                              int expYear,
                                              java.lang.String custName,
                                              int custNum)
Create a new WOW builder license file for the given edition.


getEdition

public java.lang.String getEdition()

getExpirationDays

public int getExpirationDays()
Get the number of days before this license expires.


getExpirationPeriod

public int getExpirationPeriod()
Get the expiration period of this license.


getExpirationYear

public int getExpirationYear()
Get the expiration year of this license.


getNumberOfAllowedOperations

public int getNumberOfAllowedOperations()
Get the number of allowed operations.


getValidationType

public java.lang.String getValidationType()
Get the type of validation to use for this license.


getCreationDate

public java.util.Date getCreationDate()
Get date license was created.


getCreationUser

public java.lang.String getCreationUser()
Get the user who created this license.


getCustomerName

public java.lang.String getCustomerName()
Get the customer's name this license was created for.


getCustomerNumber

public int getCustomerNumber()
Get the customer's number this license was created for.


getDateFirstRead

public java.util.Date getDateFirstRead()
Get the date this license file was first read by WOW.


getLicenseType

public java.lang.String getLicenseType()
Get this license's type.


getMajorVersion

public int getMajorVersion()
Get the minor version of the license file.


getMinorVersion

public int getMinorVersion()
Get the minor version of the license file.


getNotes

public java.lang.String getNotes()
Get notes that were added when license was created.


setCustomerNumber

public void setCustomerNumber(int customerNumber)
Set the customer number for this license.


setDateFirstRead

public void setDateFirstRead(java.util.Date date)
Set the date this license was first read.


setCreationDate

public void setCreationDate(java.util.Date date)
Set the date license was created.


setCreationUser

public void setCreationUser(java.lang.String user)
Set the user who created license.


setCustomerName

public void setCustomerName(java.lang.String name)
Set the customer name for this license.


setExpirationPeriod

public void setExpirationPeriod(int period)
Set the period this license will expire. Note: 0 = Never


setEdition

public void setEdition(java.lang.String edition)
Set the number of days before this license expires.


setExpirationDays

public void setExpirationDays(int days)
Set the number of days before this license expires.


setExpirationYear

public void setExpirationYear(int year)
Set the year this license expires. Note: 0 = Never


setLicenseType

public void setLicenseType(java.lang.String type)
Set this license's type.


setMajorVersion

public void setMajorVersion(int version)
Set the major version of this license.


setMinorVersion

public void setMinorVersion(int version)
Set the minor version of this license.


setNumberOfAllowedOperations

public void setNumberOfAllowedOperations(int number)
Set the number of operations allowed.


setValidationType

public void setValidationType(java.lang.String type)
Set the type of validation to use to validate this license.


setNotes

public void setNotes(java.lang.String notes)
Set notes on this license.