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
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
debug
private Debug debug
SetLetterJobHandler
public SetLetterJobHandler()
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
- ExceptionmessageEx
- application message associated to e- Returns:
- String with the complet problem and stacktrace