com.instantbank.servicing.control.event
Class ParmLevel1ValuesEvent

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

public class ParmLevel1ValuesEvent
extends ServicingEventSupport

Parameter Level1 Values 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 Parameter Level1 Values 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 companyId
          current company
private  java.util.ArrayList items
          items for changing the parameter level1 values of the current company
static int LIST_PARM_LEVEL1_VALUES
          action constant of setting the parameter level1 values of the current company
static int UPDATE_PARM_LEVEL1_VALUES
          action constant of changing the parameter level1 values of the current company
private  java.lang.Long userId
          current user
 
Constructor Summary
ParmLevel1ValuesEvent(int actionType, java.lang.String companyId, java.lang.Long userId, java.util.ArrayList items)
          constructor: initializes attributes
 
Method Summary
 int getActionType()
          get method for actionType
 java.lang.String getCompanyId()
          get method for companyNumber
 java.lang.String getEventName()
          JNDI name for the event: Controller EJB registers this env variable
 java.util.ArrayList getItems()
          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_PARM_LEVEL1_VALUES

public static final int LIST_PARM_LEVEL1_VALUES
action constant of setting the parameter level1 values of the current company

UPDATE_PARM_LEVEL1_VALUES

public static final int UPDATE_PARM_LEVEL1_VALUES
action constant of changing the parameter level1 values of the current company

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

items

private java.util.ArrayList items
items for changing the parameter level1 values of the current company
Constructor Detail

ParmLevel1ValuesEvent

public ParmLevel1ValuesEvent(int actionType,
                             java.lang.String companyId,
                             java.lang.Long userId,
                             java.util.ArrayList items)
constructor: initializes attributes
Parameters:
actionType - action requested by the user
userId - current user
items - for changing the parameter level1 values of the current company
companyId - 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 companyNumber
Returns:
The companyId value

getUserId

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

getItems

public java.util.ArrayList getItems()
get method for items
Returns:
The items 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