|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jp.protection.pub.pro.lserver.LicensingServiceResultImpl
public class LicensingServiceResultImpl
Default implementation of the LicensingServiceResult interface
| Nested Class Summary | |
|---|---|
static class |
LicensingServiceResultImpl.CheckoutResultImpl
Default implementation of the CheckoutResult interface |
static class |
LicensingServiceResultImpl.LicenseResultImpl
Default implementation of the LicenseResult interface |
| Nested classes/interfaces inherited from interface com.jp.protection.pub.pro.lserver.LicensingServiceResult |
|---|
LicensingServiceResult.CheckoutResult, LicensingServiceResult.ErrorCode, LicensingServiceResult.LicenseResult |
| Field Summary | |
|---|---|
protected LicensingServiceResult.ErrorCode |
fErrorCode
|
protected java.lang.String |
fMessage
|
protected int |
fResult
|
protected java.lang.String |
fTicket
|
protected java.util.Map |
properties
|
static long |
serialVersionUID
|
| Fields inherited from interface com.jp.protection.pub.pro.lserver.LicensingServiceResult |
|---|
PROPERTY_CPU_LIMIT, PROPERTY_CPU_USAGE, PROPERTY_MEMORY_LIMIT, PROPERTY_MEMORY_USAGE, PROPERTY_MESSAGE, PROPERTY_RESULT, PROPERTY_TICKET, PROPERTY_USAGE_COUNT, PROPERTY_USAGE_LIMIT, RESULT_ERROR, RESULT_LICENSE_REVOKED, RESULT_OK, RESULT_SESSION_EXPIRED, RESULT_SYSTEM_ERROR |
| Constructor Summary | |
|---|---|
LicensingServiceResultImpl()
Creates a new instance of the LicensingServiceResultImpl |
|
LicensingServiceResultImpl(int aResult)
Creates a new instance of the LicensingServiceResultImpl |
|
LicensingServiceResultImpl(int aResult,
java.lang.String aMessage)
Creates a new instance of the LicensingServiceResultImpl |
|
LicensingServiceResultImpl(int aResult,
java.lang.String aMessage,
LicensingServiceResult.ErrorCode anErrorCode)
Creates a new instance of the LicensingServiceResultImpl |
|
LicensingServiceResultImpl(int aResult,
java.lang.String aMessage,
java.lang.String aTicket)
Creates a new instance of the LicensingServiceResultImpl |
|
| Method Summary | |
|---|---|
LicensingServiceResult.ErrorCode |
getErrorCode()
Returns error code |
java.lang.String |
getMessage()
Returns the message text associated with the result |
java.util.Map |
getProperties()
Returns result properties |
int |
getResult()
Returns result code of the operation as one of RESULT_ constants |
static java.lang.String |
getResultStr(int aResult)
Returns textual representation of result code |
java.lang.String |
getTicket()
Returns ticket value unique identifies a licensing session for acquired license lock |
void |
setErrorCode(LicensingServiceResult.ErrorCode aErrorCode)
|
void |
setMessage(java.lang.String aMessage)
Specifies message text |
void |
setProperties(java.util.Map aProperties)
|
void |
setResult(int aResult)
Specifies result code |
void |
setTicket(java.lang.String aTicket)
Specifies ticket |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final long serialVersionUID
protected java.lang.String fMessage
protected int fResult
protected java.lang.String fTicket
protected java.util.Map properties
protected LicensingServiceResult.ErrorCode fErrorCode
| Constructor Detail |
|---|
public LicensingServiceResultImpl()
LicensingServiceResultImpl
public LicensingServiceResultImpl(int aResult)
LicensingServiceResultImpl
aResult - result code
public LicensingServiceResultImpl(int aResult,
java.lang.String aMessage)
LicensingServiceResultImpl
aResult - result codeaMessage - message text
public LicensingServiceResultImpl(int aResult,
java.lang.String aMessage,
LicensingServiceResult.ErrorCode anErrorCode)
LicensingServiceResultImpl
aResult - result codeaMessage - message textanErrorCode - error code
public LicensingServiceResultImpl(int aResult,
java.lang.String aMessage,
java.lang.String aTicket)
LicensingServiceResultImpl
aResult - result codeaMessage - message textaTicket - ticket| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getMessage()
LicensingServiceResult
getMessage in interface LicensingServiceResultpublic void setMessage(java.lang.String aMessage)
aMessage - message text to setpublic int getResult()
LicensingServiceResultRESULT_ constants
getResult in interface LicensingServiceResultpublic void setResult(int aResult)
aResult - result code to setpublic java.lang.String getTicket()
LicensingServiceResult
getTicket in interface LicensingServiceResultpublic void setTicket(java.lang.String aTicket)
aTicket - ticket to setpublic java.util.Map getProperties()
LicensingServiceResult
getProperties in interface LicensingServiceResultpublic void setErrorCode(LicensingServiceResult.ErrorCode aErrorCode)
public LicensingServiceResult.ErrorCode getErrorCode()
LicensingServiceResult
getErrorCode in interface LicensingServiceResultpublic void setProperties(java.util.Map aProperties)
public static java.lang.String getResultStr(int aResult)
aResult - result code to get textual representation for
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||