com.instantbank.lettertemplate.control.ejb.handlers
Class SetLetterJobHandler

java.lang.Object
  |
  +--com.instantbank.lettertemplate.control.ejb.handlers.StateHandlerSupport
        |
        +--com.instantbank.lettertemplate.control.ejb.handlers.SetLetterJobHandler
All Implemented Interfaces:
java.io.Serializable, StateHandler

public class SetLetterJobHandler
extends StateHandlerSupport

Set Letter Job usecase: handler of user requests in the Services layer

Author:
Instant-bank (Consuelo Franky)
See Also:
Serialized Form

Field Summary
private  Debug debug
           
 
Fields inherited from class com.instantbank.lettertemplate.control.ejb.handlers.StateHandlerSupport
machine
 
Constructor Summary
SetLetterJobHandler()
           
 
Method Summary
 java.lang.Object perform(LetterTemplateEvent event)
          principal method that process a user request invoking Model EJBs methods
private  java.util.ArrayList performGET_JOB(SetLetterJobEvent ce)
          auxiliary method that processes an SetLetterJobEvent with GET_JOB action.
private  java.util.ArrayList performGET_TEMPLATE_FIELDS(SetLetterJobEvent ce)
          auxiliary method that processes an SetLetterJobEvent with GET_TEMPLATE_FIELDS action.
private  java.util.ArrayList performLIST_JOBS(SetLetterJobEvent ce)
          auxiliary method that processes an SetLetterJobEvent with LIST_JOBS action.
private  java.util.ArrayList performREMOVE_JOB(SetLetterJobEvent ce)
          auxiliary method that processes an SetLetterJobEvent with REMOVE_JOB action.
private  java.util.ArrayList performSAVE_JOB(SetLetterJobEvent ce)
          auxiliary method that processes an SetLetterJobEvent with SAVE_JOB action.
private  java.lang.String processProblem(java.lang.Exception e, java.lang.String messageEx)
          auxliary method that process a problem
 
Methods inherited from class com.instantbank.lettertemplate.control.ejb.handlers.StateHandlerSupport
doEnd, doStart, init
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

debug

private Debug debug
Constructor Detail

SetLetterJobHandler

public SetLetterJobHandler()
Method Detail

perform

public java.lang.Object perform(LetterTemplateEvent event)
                         throws LetterTemplateEventException
principal method that process a user request invoking Model EJBs methods
Overrides:
perform in class StateHandlerSupport
Parameters:
event - request data
Returns:
answer to request
Throws:
LetterTemplateEventException -  

performLIST_JOBS

private java.util.ArrayList performLIST_JOBS(SetLetterJobEvent ce)
                                      throws LetterTemplateEventException
auxiliary method that processes an SetLetterJobEvent with LIST_JOBS action.
Parameters:
ce - event of setLetterJob usecase
Returns:
answer to request
Throws:
LetterTemplateEventException -  

performGET_TEMPLATE_FIELDS

private java.util.ArrayList performGET_TEMPLATE_FIELDS(SetLetterJobEvent ce)
                                                throws LetterTemplateEventException
auxiliary method that processes an SetLetterJobEvent with GET_TEMPLATE_FIELDS action.
Parameters:
ce - event of setLetterJob usecase
Returns:
answer to request
Throws:
LetterTemplateEventException -  

performSAVE_JOB

private java.util.ArrayList performSAVE_JOB(SetLetterJobEvent ce)
                                     throws LetterTemplateEventException
auxiliary method that processes an SetLetterJobEvent with SAVE_JOB action.
Parameters:
ce - event of setLetterJob usecase
Returns:
answer to request
Throws:
LetterTemplateEventException -  

performGET_JOB

private java.util.ArrayList performGET_JOB(SetLetterJobEvent ce)
                                    throws LetterTemplateEventException
auxiliary method that processes an SetLetterJobEvent with GET_JOB action.
Parameters:
ce - event of setLetterJob usecase
Returns:
answer to request
Throws:
LetterTemplateEventException -  

performREMOVE_JOB

private java.util.ArrayList performREMOVE_JOB(SetLetterJobEvent ce)
                                       throws LetterTemplateEventException
auxiliary method that processes an SetLetterJobEvent with REMOVE_JOB action.
Parameters:
ce - event of setLetterJob usecase
Returns:
answer to request
Throws:
LetterTemplateEventException -  

processProblem

private java.lang.String processProblem(java.lang.Exception e,
                                        java.lang.String messageEx)
auxliary method that process a problem
Parameters:
e - Exception
messageEx - application message associated to e
Returns:
String with the complet problem and stacktrace