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

java.lang.Object
  extended by com.jp.protection.pub.pro.integration.LicensingFacadeResultBase
Direct Known Subclasses:
LicensingFacadeResult

public class LicensingFacadeResultBase
extends java.lang.Object

This class represents the base class for result of execution of licensing facade methods


Field Summary
static int DELIVERY_TYPE_EMAIL
          Specifies delivery type of license as e-mail message
static int DELIVERY_TYPE_ONLINE
          Specifies delivery type of license as online
protected  int fDeliveryType
           
protected  java.lang.String fMessage
           
protected  int fResult
           
static int RESULT_ERROR
          Specifies that result of execution is error
static int RESULT_NONE
          Specifies that result of execution is unknown
static int RESULT_OK
          Specifies that result of execution is OK
 
Constructor Summary
LicensingFacadeResultBase()
          Creates a new instance of the LicensingFacadeResultBase
LicensingFacadeResultBase(int aResult)
          Creates a new instance of the LicensingFacadeResultBase
LicensingFacadeResultBase(int aResult, java.lang.String aMessage)
          Creates a new instance of the LicensingFacadeResultBase
LicensingFacadeResultBase(int aResult, java.lang.String aMessage, int aDeliveryType)
          Creates a new instance of the LicensingFacadeResultBase
 
Method Summary
 int getDeliveryType()
          Returns delivery type
 java.lang.String getMessage()
          Returns message text
 int getResult()
          Returns result value
 void setDeliveryType(int aDeliveryType)
          Specifies delivery type
 void setMessage(java.lang.String aMessage)
          Specifies message test
 void setResult(int aResult)
          Specifies result value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fMessage

protected java.lang.String fMessage

fResult

protected int fResult

RESULT_NONE

public static final int RESULT_NONE
Specifies that result of execution is unknown

See Also:
Constant Field Values

RESULT_OK

public static final int RESULT_OK
Specifies that result of execution is OK

See Also:
Constant Field Values

RESULT_ERROR

public static final int RESULT_ERROR
Specifies that result of execution is error

See Also:
Constant Field Values

DELIVERY_TYPE_ONLINE

public static final int DELIVERY_TYPE_ONLINE
Specifies delivery type of license as online

See Also:
Constant Field Values

DELIVERY_TYPE_EMAIL

public static final int DELIVERY_TYPE_EMAIL
Specifies delivery type of license as e-mail message

See Also:
Constant Field Values

fDeliveryType

protected int fDeliveryType
Constructor Detail

LicensingFacadeResultBase

public LicensingFacadeResultBase()
Creates a new instance of the LicensingFacadeResultBase


LicensingFacadeResultBase

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

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

LicensingFacadeResultBase

public LicensingFacadeResultBase(int aResult)
Creates a new instance of the LicensingFacadeResultBase

Parameters:
aResult - method execution result; should be one of the RESULT_ constants

LicensingFacadeResultBase

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

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

getDeliveryType

public int getDeliveryType()
Returns delivery type

Returns:
delivery type

setDeliveryType

public void setDeliveryType(int aDeliveryType)
Specifies delivery type

Parameters:
aDeliveryType - delivery type; should be one of the DELIVERY_TYPE_ constants

getMessage

public java.lang.String getMessage()
Returns message text

Returns:
message text

setMessage

public void setMessage(java.lang.String aMessage)
Specifies message test

Parameters:
aMessage - message text that could be shown to the user

getResult

public int getResult()
Returns result value

Returns:
result value

setResult

public void setResult(int aResult)
Specifies result value

Parameters:
aResult - method execution result; should be one of the RESULT_ constants