eu.beesoft.abeona
Class Product

java.lang.Object
  extended by eu.beesoft.abeona.Product
All Implemented Interfaces:
java.io.Serializable

public final class Product
extends java.lang.Object
implements java.io.Serializable

This class encapsulates typical features needed for creation of application ( = product) license:

See Also:
Serialized Form

Constructor Summary
Product()
          Default constructor - creates empty instance of Product.
Product(Product product)
          Copy constructor - creates instance of Product from given pattern.
 
Method Summary
 long getCreated()
          Returns date when this instance was created and stored to database.
 java.lang.Integer getId()
          Returns unique identifier of this record.
 java.lang.String getLicenseTemplate()
          Returns license template of this product.
 long getModified()
          Returns date when this instance was last modified and stored to database.
 java.lang.String getName()
          Returns name of this record.
 java.lang.String getPrivateKey()
          Returns encoded private key of this product.
 java.lang.String getPublicKey()
          Returns encoded public key of this product.
 java.lang.String toString()
          Returns text representation of this record (calls getName()).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Product

public Product()
Default constructor - creates empty instance of Product.


Product

public Product(Product product)
Copy constructor - creates instance of Product from given pattern.

Method Detail

getId

public java.lang.Integer getId()
Returns unique identifier of this record.

Returns:
identifier of this product

getCreated

public long getCreated()
Returns date when this instance was created and stored to database.

Returns:
date of creation (in milliseconds, as obtained from System.currentTimeMillis())

getModified

public long getModified()
Returns date when this instance was last modified and stored to database.

Returns:
date of last moification (in milliseconds, as obtained from System.currentTimeMillis())

getName

public java.lang.String getName()
Returns name of this record.

Returns:
name of this record

getPublicKey

public java.lang.String getPublicKey()
Returns encoded public key of this product.

Returns:
public key of this product

getPrivateKey

public java.lang.String getPrivateKey()
Returns encoded private key of this product.

Returns:
private key of this product

getLicenseTemplate

public java.lang.String getLicenseTemplate()
Returns license template of this product.

Returns:
license template

toString

public java.lang.String toString()
Returns text representation of this record (calls getName()).

Overrides:
toString in class java.lang.Object
Returns:
name of this record or Object.toString(), if name is null