com.jp.protection.pub.pro.integration
Class LicensingFacadeResult

java.lang.Object
  extended by com.jp.protection.pub.pro.integration.LicensingFacadeResultBase
      extended by com.jp.protection.pub.pro.integration.LicensingFacadeResult

public class LicensingFacadeResult
extends LicensingFacadeResultBase

This class represents result of execution of licensing facade methods


Field Summary
protected  byte[] fLicenseBytes
           
static java.lang.String[] PROPERTIES
           
static java.lang.String PROPERTY_DELIVERY_TYPE
           
static java.lang.String PROPERTY_LICENSE_BYTES
           
static java.lang.String PROPERTY_MESSAGE
           
static java.lang.String PROPERTY_RESULT
           
 
Fields inherited from class com.jp.protection.pub.pro.integration.LicensingFacadeResultBase
DELIVERY_TYPE_EMAIL, DELIVERY_TYPE_ONLINE, fDeliveryType, fMessage, fResult, RESULT_ERROR, RESULT_NONE, RESULT_OK
 
Constructor Summary
LicensingFacadeResult()
          Creates a new instance of the LicensingFacadeResult
LicensingFacadeResult(int aResult, byte[] aLicenseBytes, java.lang.String aMessage)
          Creates a new instance of the LicensingFacadeResult
LicensingFacadeResult(int aResult, byte[] aLicenseBytes, java.lang.String aMessage, int aDeliveryType)
          Creates a new instance of the LicensingFacadeResult
LicensingFacadeResult(int aResult, java.lang.String aMessage)
          Creates a new instance of the LicensingFacadeResult
LicensingFacadeResult(LicensingFacadeResultBase aResult)
          Creates a new instance of the LicensingFacadeResult based on the provided information
 
Method Summary
 byte[] getLicenseBytes()
          Returns license as array of bytes
 void setLicenseBytes(byte[] aLicenseBytes)
          Specifies license as array of bytes
 
Methods inherited from class com.jp.protection.pub.pro.integration.LicensingFacadeResultBase
getDeliveryType, getMessage, getResult, setDeliveryType, setMessage, setResult
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTY_RESULT

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

PROPERTY_MESSAGE

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

PROPERTY_LICENSE_BYTES

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

PROPERTY_DELIVERY_TYPE

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

PROPERTIES

public static final java.lang.String[] PROPERTIES

fLicenseBytes

protected byte[] fLicenseBytes
Constructor Detail

LicensingFacadeResult

public LicensingFacadeResult(LicensingFacadeResultBase aResult)
Creates a new instance of the LicensingFacadeResult based on the provided information

Parameters:
aResult - an object to copy attributes from

LicensingFacadeResult

public LicensingFacadeResult()
Creates a new instance of the LicensingFacadeResult


LicensingFacadeResult

public LicensingFacadeResult(int aResult,
                             byte[] aLicenseBytes,
                             java.lang.String aMessage,
                             int aDeliveryType)
Creates a new instance of the LicensingFacadeResult

Parameters:
aResult - method execution result; should be one of the RESULT_ constants
aLicenseBytes - license to return as array of bytes
aMessage - message text could be shown to the user
aDeliveryType - delivery type

LicensingFacadeResult

public LicensingFacadeResult(int aResult,
                             byte[] aLicenseBytes,
                             java.lang.String aMessage)
Creates a new instance of the LicensingFacadeResult

Parameters:
aResult - method execution result; should be one of the RESULT_ constants
aLicenseBytes - license to return as array of bytes
aMessage - message text could be shown to the user

LicensingFacadeResult

public LicensingFacadeResult(int aResult,
                             java.lang.String aMessage)
Creates a new instance of the LicensingFacadeResult

Parameters:
aResult - method execution result; should be one of the RESULT_ constants
aMessage - message text could be shown to the user
Method Detail

getLicenseBytes

public byte[] getLicenseBytes()
Returns license as array of bytes

Returns:
license as array of bytes

setLicenseBytes

public void setLicenseBytes(byte[] aLicenseBytes)
Specifies license as array of bytes

Parameters:
aLicenseBytes - license as array of bytes