com.jp.protection.priv.pro.integration
Class LicensingFacadeSession

java.lang.Object
  extended by com.jp.protection.priv.pro.integration.LicensingFacadeSession

public class LicensingFacadeSession
extends java.lang.Object

Represents simple session concept that holds license generation and activation permissions acquired during authentication and authorization process. By default session only holds login name and requests' arguments but session's subclasses are able hold any other attributes that could be needed.


Field Summary
protected  java.util.Map fArguments
           
protected  java.lang.String fLogin
           
protected  int fOperation
           
protected  java.lang.String fSerialNumber
           
static int OPERATION_ACTIVATE
           
static int OPERATION_DEACTIVATE
           
static int OPERATION_GET
           
static int OPERATION_GET_DESCR
           
static int OPERATION_GET_S_N
           
static int OPERATION_UNKNOWN
           
 
Constructor Summary
LicensingFacadeSession(java.lang.String aLogin, java.util.Map aArguments, int anOperation)
          Creates a new instance of the LicensingFacadeSession
LicensingFacadeSession(java.lang.String aLogin, java.lang.String aSerialNumber, java.util.Map aArguments, int anOperation)
          Creates a new instance of the LicensingFacadeSession
 
Method Summary
 java.util.Map getArguments()
          Returns arguments
 java.lang.String getLogin()
          Returns login name
 int getOperation()
          Returns operation represented by this session
 java.lang.String getSerialNumber()
          Returns serial number
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fLogin

protected java.lang.String fLogin

fArguments

protected java.util.Map fArguments

fSerialNumber

protected java.lang.String fSerialNumber

fOperation

protected int fOperation

OPERATION_UNKNOWN

public static final int OPERATION_UNKNOWN
See Also:
Constant Field Values

OPERATION_GET

public static final int OPERATION_GET
See Also:
Constant Field Values

OPERATION_GET_S_N

public static final int OPERATION_GET_S_N
See Also:
Constant Field Values

OPERATION_GET_DESCR

public static final int OPERATION_GET_DESCR
See Also:
Constant Field Values

OPERATION_ACTIVATE

public static final int OPERATION_ACTIVATE
See Also:
Constant Field Values

OPERATION_DEACTIVATE

public static final int OPERATION_DEACTIVATE
See Also:
Constant Field Values
Constructor Detail

LicensingFacadeSession

public LicensingFacadeSession(java.lang.String aLogin,
                              java.lang.String aSerialNumber,
                              java.util.Map aArguments,
                              int anOperation)
Creates a new instance of the LicensingFacadeSession

Parameters:
aLogin - login name
aSerialNumber - serial number
aArguments - arguments passed in licensing request
anOperation - code of request operations as one of OPERATION_ constants

LicensingFacadeSession

public LicensingFacadeSession(java.lang.String aLogin,
                              java.util.Map aArguments,
                              int anOperation)
Creates a new instance of the LicensingFacadeSession

Parameters:
aLogin - login name
aArguments - arguments passed in licensing request
anOperation - code of request operations as one of OPERATION_ constants
Method Detail

getLogin

public java.lang.String getLogin()
Returns login name

Returns:
login name

getArguments

public java.util.Map getArguments()
Returns arguments

Returns:
arguments

getSerialNumber

public java.lang.String getSerialNumber()
Returns serial number

Returns:
textual representation of serial number if license has been requested on it; null otherwise

getOperation

public int getOperation()
Returns operation represented by this session

Returns:
operation as one of OPERATION_ constants