com.instantbank.servicing.control.event
Class SetParameterXValueEvent

java.lang.Object
  |
  +--com.instantbank.servicing.control.event.ServicingEventSupport
        |
        +--com.instantbank.servicing.control.event.SetParameterXValueEvent
All Implemented Interfaces:
java.io.Serializable, ServicingEvent

public class SetParameterXValueEvent
extends ServicingEventSupport

Set Parameter X Value usecase: This event is sent from the web tier to the EJB Controller to notify the EJB Controller that an action needs to be made in the Set Parameter X Value model data.

Author:
Instant-bank (Jorge Cardenas)
See Also:
Serialized Form

Field Summary
private  int actionType
          action requested by the user
private  java.lang.String codeParameter
          current code parameter
private  java.lang.String companyId
          current company
private  ParameterModel items
          items for changing the parameter restrictions of the current company
private  ParameterValue itemsUpdate
          items for changing the parameter restrictions of the current company
static int LIST_PARAM_XVALUE
          action constant of setting the parameter restrictions of the current company
static int UPDATE_PARAM_XVALUE
           
private  java.lang.Long userId
          current user
static int VERIFY_PARAM_XVALUE
           
 
Constructor Summary
SetParameterXValueEvent(int actionType, java.lang.String companyId, java.lang.Long userId, java.lang.String codeParameter, ParameterModel items, ParameterValue itemsUpdate)
          constructor: initializes attributes
 
Method Summary
 int getActionType()
          get method for actionType
 java.lang.String getCodeParameter()
          get method for codeParameter
 java.lang.String getCompanyId()
          get method for companyId
 java.lang.String getEventName()
          JNDI name for the event: Controller EJB registers this env variable
 ParameterModel getItems()
          get method for items
 ParameterValue getItemsUpdate()
          get method for items
 java.lang.Long getUserId()
          get method for userId
 java.lang.String toString()
          String representation of the event
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

LIST_PARAM_XVALUE

public static final int LIST_PARAM_XVALUE
action constant of setting the parameter restrictions of the current company

UPDATE_PARAM_XVALUE

public static final int UPDATE_PARAM_XVALUE

VERIFY_PARAM_XVALUE

public static final int VERIFY_PARAM_XVALUE

actionType

private int actionType
action requested by the user

companyId

private java.lang.String companyId
current company

userId

private java.lang.Long userId
current user

codeParameter

private java.lang.String codeParameter
current code parameter

items

private ParameterModel items
items for changing the parameter restrictions of the current company

itemsUpdate

private ParameterValue itemsUpdate
items for changing the parameter restrictions of the current company
Constructor Detail

SetParameterXValueEvent

public SetParameterXValueEvent(int actionType,
                               java.lang.String companyId,
                               java.lang.Long userId,
                               java.lang.String codeParameter,
                               ParameterModel items,
                               ParameterValue itemsUpdate)
constructor: initializes attributes
Parameters:
actionType - action requested by the user
codeParameter - current code
userId - current user
items - for changing the parameter values of the current parameter
companyId - Description of the Parameter
itemsUpdate - Description of the Parameter
Method Detail

getActionType

public int getActionType()
get method for actionType
Returns:
The actionType value

getCompanyId

public java.lang.String getCompanyId()
get method for companyId
Returns:
The companyId value

getUserId

public java.lang.Long getUserId()
get method for userId
Returns:
The userId value

getCodeParameter

public java.lang.String getCodeParameter()
get method for codeParameter
Returns:
The codeParameter value

getItems

public ParameterModel getItems()
get method for items
Returns:
The items value

getItemsUpdate

public ParameterValue getItemsUpdate()
get method for items
Returns:
The itemsUpdate value

toString

public java.lang.String toString()
String representation of the event
Overrides:
toString in class java.lang.Object
Returns:
Description of the Return Value

getEventName

public java.lang.String getEventName()
JNDI name for the event: Controller EJB registers this env variable
Overrides:
getEventName in class ServicingEventSupport
Returns:
The eventName value