com.siebel.rf.offline.request.handler.branchstartofday
Class BranchStartOfDayHandler

java.lang.Object
  |
  +--com.siebel.rf.offline.branch.server.Handler
        |
        +--com.siebel.rf.offline.request.handler.branchstartofday.BranchStartOfDayHandler
All Implemented Interfaces:
RequestHandler

public class BranchStartOfDayHandler
extends Handler

The handler class for BranchStartOfDay


Constructor Summary
BranchStartOfDayHandler()
           
 
Method Summary
 void completeBranchStartOfDay(java.lang.String companyCode, java.lang.String branchCode, java.lang.String processingDate, java.lang.String userId, java.lang.String workStationNo)
          Opens the Branch for the current processing date and create a journal entry for the branch start of day operation in the user's journal
 java.util.Vector handleRequest()
          Handles the clients request in Online/Offline mode for the Branch
 java.util.Iterator imGetBranchTotals(java.lang.String companyCode, java.lang.String branchCode)
          Retrieves the currency totals for the Branch
 java.lang.String imGetCurrentProcessingDateForBranch(java.lang.String companyCode, java.lang.String branchCode)
          Returns the processingDate from the Branch
 java.lang.String imGetCurrentProcessingModeForBranch(java.lang.String companyCode, java.lang.String branchCode)
          Returns the current processingMode for the Branch
 java.lang.String imGetProcessingModeForBranch(java.lang.String companyCode, java.lang.String branchCode)
          Returns the processingMode for the Branch
 boolean imIsBranchClosed(java.lang.String companyCode, java.lang.String branchCode)
          Checks if the Branch is open and what processing mode the Branch is operating in
 void imResetBranchControlNumber(java.lang.String companyCode, java.lang.String branchCode)
          Resets the branchControlNumber to Initial Value
 void imResetNextEventId(java.lang.String companyCode, java.lang.String branchCode)
          Resets the nextEventId to Initial Value
 void imSetBranchOpen(java.lang.String companyCode, java.lang.String branchCode, java.lang.String currentProcessingDate)
          Opens the Branch
 void imSetCurrentProcessingMode(java.lang.String companyCode, java.lang.String branchCode)
          Sets the current processing mode on the Branch
 java.lang.String retrieveBranchProcessingDate(java.lang.String companyCode, java.lang.String branchCode)
          Returns the processingDate of the branch
 java.util.Iterator retrieveBranchTotals(java.lang.String companyCode, java.lang.String branchCode)
          Retrieves the currency totals for the Branch
 
Methods inherited from class com.siebel.rf.offline.branch.server.Handler
fireOfflineEvent, getOriginalRequest, getRequest, getResponse, handleRequest, isAValidResponse, isBranchOnline
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BranchStartOfDayHandler

public BranchStartOfDayHandler()
Method Detail

handleRequest

public java.util.Vector handleRequest()
                               throws com.bankframe.ejb.ProcessingErrorException,
                                      com.bankframe.validation.ValidationException
Handles the clients request in Online/Offline mode for the Branch
Overrides:
handleRequest in class Handler
Returns:
response Vector
Throws:
com.bankframe.ejb.ProcessingErrorException - This exception is thrown when processing fails
com.bankframe.validation.ValidationException - This exception is thrown if validation fails

completeBranchStartOfDay

public void completeBranchStartOfDay(java.lang.String companyCode,
                                     java.lang.String branchCode,
                                     java.lang.String processingDate,
                                     java.lang.String userId,
                                     java.lang.String workStationNo)
                              throws com.bankframe.ejb.ProcessingErrorException,
                                     com.bankframe.validation.ValidationException
Opens the Branch for the current processing date and create a journal entry for the branch start of day operation in the user's journal
Parameters:
companyCode - String
branchCode - String
processingDate - String
userId - String
workStationNo - String
Throws:
com.bankframe.ejb.ProcessingErrorException - This exception is thrown if processing fails
com.bankframe.validation.ValidationException - This exception is thrown if validation fails

imSetBranchOpen

public void imSetBranchOpen(java.lang.String companyCode,
                            java.lang.String branchCode,
                            java.lang.String currentProcessingDate)
                     throws com.bankframe.ejb.ProcessingErrorException,
                            com.bankframe.validation.ValidationException
Opens the Branch
Parameters:
companyCode - String
branchCode - String
currentProcessingDate - String
userId - String
Throws:
com.bankframe.ejb.ProcessingErrorException - thrown when the processing fails
com.bankframe.validation.ValidationException - is thrown when validation of data fails

imSetCurrentProcessingMode

public void imSetCurrentProcessingMode(java.lang.String companyCode,
                                       java.lang.String branchCode)
                                throws com.bankframe.ejb.ProcessingErrorException,
                                       com.bankframe.validation.ValidationException
Sets the current processing mode on the Branch
Parameters:
companyCode - String
branchCode - String
Throws:
com.bankframe.ejb.ProcessingErrorException - This exception is thrown if processing fails
com.bankframe.validation.ValidationException - This exception is thrown if validation fails

imResetBranchControlNumber

public void imResetBranchControlNumber(java.lang.String companyCode,
                                       java.lang.String branchCode)
                                throws com.bankframe.ejb.ProcessingErrorException,
                                       com.bankframe.validation.ValidationException
Resets the branchControlNumber to Initial Value
Parameters:
companyCode - String
branchCode - String
Throws:
com.bankframe.ejb.ProcessingErrorException - This exception is thrown when processing fails
com.bankframe.validation.ValidationException - This exception is thrown if validation fails

imResetNextEventId

public void imResetNextEventId(java.lang.String companyCode,
                               java.lang.String branchCode)
                        throws com.bankframe.ejb.ProcessingErrorException,
                               com.bankframe.validation.ValidationException
Resets the nextEventId to Initial Value
Parameters:
companyCode - String
branchCode - String
Throws:
com.bankframe.ejb.ProcessingErrorException - This exception is thrown when processing fails
com.bankframe.validation.ValidationException - This exception is thrown if validation fails

retrieveBranchProcessingDate

public java.lang.String retrieveBranchProcessingDate(java.lang.String companyCode,
                                                     java.lang.String branchCode)
                                              throws com.bankframe.ejb.ProcessingErrorException,
                                                     com.bankframe.validation.ValidationException
Returns the processingDate of the branch
Parameters:
companyCode - String
branchCode - String
Returns:
Processing date of the Branch
Throws:
com.bankframe.ejb.ProcessingErrorException - This exception is thrown if processing fails
com.bankframe.validation.ValidationException - This exception is thrown if validation fails

retrieveBranchTotals

public java.util.Iterator retrieveBranchTotals(java.lang.String companyCode,
                                               java.lang.String branchCode)
                                        throws com.bankframe.ejb.ProcessingErrorException,
                                               com.bankframe.validation.ValidationException
Retrieves the currency totals for the Branch
Parameters:
companyCode - String
branchCode - String
Returns:
Collection of Currency totals
Throws:
com.bankframe.ejb.ProcessingErrorException - This exception is thrown if processing fails
com.bankframe.validation.ValidationException - This exception is thrown if validation fails

imGetBranchTotals

public java.util.Iterator imGetBranchTotals(java.lang.String companyCode,
                                            java.lang.String branchCode)
                                     throws com.bankframe.ejb.ProcessingErrorException,
                                            com.bankframe.validation.ValidationException
Retrieves the currency totals for the Branch
Parameters:
companyCode - String
branchCode - String
Returns:
Collection of Currency totals
Throws:
com.bankframe.ejb.ProcessingErrorException - thrown when the processing fails
com.bankframe.validation.ValidationException - is thrown when validation of data fails

imIsBranchClosed

public boolean imIsBranchClosed(java.lang.String companyCode,
                                java.lang.String branchCode)
                         throws com.bankframe.ejb.ProcessingErrorException,
                                com.bankframe.validation.ValidationException
Checks if the Branch is open and what processing mode the Branch is operating in
Parameters:
companyCode - String
branchCode - String
Returns:
true if Branch is closed, otherwise false
Throws:
com.bankframe.ejb.ProcessingErrorException - This exception is thrown if processing fails
com.bankframe.validation.ValidationException - This exception is thrown if validation fails

imGetProcessingModeForBranch

public java.lang.String imGetProcessingModeForBranch(java.lang.String companyCode,
                                                     java.lang.String branchCode)
                                              throws com.bankframe.ejb.ProcessingErrorException,
                                                     com.bankframe.validation.ValidationException
Returns the processingMode for the Branch
Parameters:
companyCode - String
branchCode - String
Returns:
Processing mode of the Branch
Throws:
com.bankframe.ejb.ProcessingErrorException - This exception is thrown when processing fails
com.bankframe.validation.ValidationException - This exception is thrown if validation fails

imGetCurrentProcessingDateForBranch

public java.lang.String imGetCurrentProcessingDateForBranch(java.lang.String companyCode,
                                                            java.lang.String branchCode)
                                                     throws com.bankframe.ejb.ProcessingErrorException,
                                                            com.bankframe.validation.ValidationException
Returns the processingDate from the Branch
Parameters:
companyCode - String
branchCode - String
Returns:
Current processing date of the branch
Throws:
com.bankframe.ejb.ProcessingErrorException - This exception is thrown if processing fails
com.bankframe.validation.ValidationException - This exception is thrown if validation fails

imGetCurrentProcessingModeForBranch

public java.lang.String imGetCurrentProcessingModeForBranch(java.lang.String companyCode,
                                                            java.lang.String branchCode)
                                                     throws com.bankframe.ejb.ProcessingErrorException,
                                                            com.bankframe.validation.ValidationException
Returns the current processingMode for the Branch
Parameters:
companyCode - String
branchCode - String
Returns:
Current processing mode of the branch
Throws:
com.bankframe.ejb.ProcessingErrorException - This exception is thrown when processing fails
com.bankframe.validation.ValidationException - This exception is thrown if validation fails