com.instantbank.lettertemplate.control.event
Class BatchReviewEvent

java.lang.Object
  |
  +--com.instantbank.lettertemplate.control.event.LetterTemplateEventSupport
        |
        +--com.instantbank.lettertemplate.control.event.BatchReviewEvent
All Implemented Interfaces:
LetterTemplateEvent, java.io.Serializable

public class BatchReviewEvent
extends LetterTemplateEventSupport

Letter Batch Review 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 letter batch review model data.

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

Field Summary
private  int actionType
          action requested by the user
private  LetterBatchReviewModel batchReview
          letter review
private  java.lang.String companyId
          current company
private  java.lang.String date
          date
static int LIST_BATCH_REVIEW
          action constant of getting the letters list of the current company
static int UPDATE_BATCH_REVIEW
           
private  java.lang.Long userId
          current user
 
Constructor Summary
BatchReviewEvent(int actionType, java.lang.String companyId, java.lang.Long userId, LetterBatchReviewModel batchReview, java.lang.String date)
          constructor: initializes attributes
 
Method Summary
 java.lang.String date()
          get method for date
 int getActionType()
          get method for actionType
 LetterBatchReviewModel getBatchReview()
          get method for batchReview
 java.lang.String getCompanyId()
          get method for companyId
 java.lang.String getEventName()
          JNDI name for the event: LetterTemplateController EJB registers this env variable
 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_BATCH_REVIEW

public static final int LIST_BATCH_REVIEW
action constant of getting the letters list of the current company

UPDATE_BATCH_REVIEW

public static final int UPDATE_BATCH_REVIEW

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

batchReview

private LetterBatchReviewModel batchReview
letter review

date

private java.lang.String date
date
Constructor Detail

BatchReviewEvent

public BatchReviewEvent(int actionType,
                        java.lang.String companyId,
                        java.lang.Long userId,
                        LetterBatchReviewModel batchReview,
                        java.lang.String date)
constructor: initializes attributes
Parameters:
actionType - action requested by the user
companyId - current company
userId - current user
batchReview - letter review
date - 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

getBatchReview

public LetterBatchReviewModel getBatchReview()
get method for batchReview
Returns:
The batchReview value

date

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

toString

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

getEventName

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