com.siebel.rf.offline.request.handler.maintainfinancialtransaction
Class MaintainFinancialTransactionHandler

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

public class MaintainFinancialTransactionHandler
extends Handler

The handler class for MaintainFinancialTransactionHandler


Constructor Summary
MaintainFinancialTransactionHandler()
           
 
Method Summary
 java.util.Vector calculateFeeAndPercentageFee(java.lang.String companyCode, java.lang.String transactionCode, java.lang.String accountType, java.lang.String customerType, java.lang.Double amount)
          Returns & store fee(s) for a transaction and calculates the percentage fee
 java.util.Vector handleRequest()
          Handles client request in online/offline mode for the Branch
 java.lang.String imAddNegotiableInstrumentToBatch(Teller teller, com.bankframe.vo.retail.solutionset.impl.financialtransactions.FinancialTransactionNegotiableInstrumentVO financialTransactionNegotiableInstrumentVO, com.bankframe.vo.retail.solutionset.impl.financialtransactions.FinancialTransactionSessionDetailsVO financialTransactionSessionDetailsVO)
          Adds negotiable instrument to a batch.
 void imAddNegotiableInstrumentToCashBox(Teller teller, com.bankframe.vo.retail.solutionset.impl.financialtransactions.FinancialTransactionNegotiableInstrumentVO financialTransactionNegotiableInstrumentVO, com.bankframe.vo.retail.solutionset.impl.financialtransactions.FinancialTransactionDestinationAccountVO financialTransactionDestinationAccountVO, com.bankframe.vo.retail.solutionset.impl.financialtransactions.FinancialTransactionSessionDetailsVO financialTransactionSessionDetailsVO)
          Adds NegotiableInstrument to the Cashbox.
 java.lang.Double imCalculateFeeAmount(java.lang.Double amount, java.lang.String percentageFee)
          Calculates & Returns percentage fee amount.
 void imCreateJournalEntryAndItems(Teller teller, com.bankframe.vo.retail.solutionset.impl.financialtransactions.FinancialTransactionJournalEntryVO financialTransactionJournalEntryVO, java.util.Vector financialTransactionJournalEntryItems)
          Creates journal entries and the journal entry items objects.
 void imCreditMoneyToCashBox(Teller teller, com.bankframe.vo.retail.solutionset.impl.financialtransactions.FinancialTransactionCommonAttributesVO financialTransactionCommonAttributesVO, java.util.Vector financialTransactionCashInVOs, java.lang.String transactionDate, java.lang.String transactionTime)
          Cedits cashbox with the money received.
 void imDebitMoneyFromCashBox(Teller teller, com.bankframe.vo.retail.solutionset.impl.financialtransactions.FinancialTransactionCommonAttributesVO financialTransactionCommonAttributesVO, java.util.Vector financialTransactionCashOutVOs, java.lang.String transactionDate, java.lang.String transactionTime)
          Debits cashbox with the money requested by customer
 Teller imGetCurrentTellerObject(java.lang.String companyCode, java.lang.String branchCode, java.lang.String userId)
          Returns current teller object for the user logged on branch and company for currenct processing date
 TransactionFee imGetFees(java.lang.String companyCode, java.lang.String transactionCode, java.lang.String accountType, java.lang.String customerType)
          Returns Transactionfee for a transaction.
 java.lang.String imGetJournalEntryId(Teller teller)
          Returns journalEntryId for teller
 java.lang.String imGetMessageForBatchState(Teller teller, java.lang.String batchId)
          Returns message for the batch state
 java.lang.String imGetProcessingDateForUser(java.lang.String companyCode, java.lang.String userId)
          Returns processing date for the User
 boolean imIsCustomerSessionEnded(java.lang.String companyCode, java.lang.String branchCode, java.lang.String userId, java.lang.String customerSessionId)
          Returns custmer session status
 void imReturnNegotiableInstruments(com.bankframe.vo.retail.solutionset.impl.financialtransactions.FinancialTransactionOriginalDetailsVO originalDetails)
          Reverses the Negotiable Instruments which are issued/recived
 void imUpdateBranchControlNumber(java.lang.String companyCode, java.lang.String branchCode, java.util.Vector transactionDetailsVO)
          Updates branchControlNumber of Branch
 void imUpdateNegotiableInstrumentBoxForIncomingNegotiableInstruments(Teller teller, java.util.Vector financialTransactionNegotiableInstrumentVOImplVector)
          Updates NegotiableInstrumentBox for Incoming Negotiable Instruments.
 void imUpdateNegotiableInstrumentBoxForOutgoingNegotiableInstruments(Teller teller, java.util.Vector financialTransactionNegotiableInstrumentVOImplVector)
          Updates NegotiableInstrumentBox for Outgoing Negotiable Instruments.
 void imUpdateNegotiableInstrumentDetailsForWithdrawals(java.util.Vector financialTransactionNegotiableInstrumentVOImpls, com.bankframe.vo.retail.solutionset.impl.financialtransactions.FinancialTransactionCommonAttributesVO financialTransactionCommonAttributesVOImpl)
          Updates status of the negotiableInstrument when a withdrawal is carried out if the negotiable instrument type is a draft.
 void imUpdateNegotiableInstrumentTransferDetails(Teller teller, java.util.Vector financialTransactionNegotiableInstrumentVOImplVector, java.lang.String negotiableInstrumentMovementType, java.lang.String cashBoxId)
          Updates NegotiableInstrument for Transfer Details.
 void imValidateNegotiableInstrumentForDeposit(com.bankframe.vo.retail.solutionset.impl.financialtransactions.FinancialTransactionCommonAttributesVO financialTransactionCommonAttributesVO, java.util.Vector financialTransactionNegotiableInstrumentVOImpls)
          Validates if the deposit can be made for the specified Negotiable Instrument.
 
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

MaintainFinancialTransactionHandler

public MaintainFinancialTransactionHandler()
Method Detail

handleRequest

public java.util.Vector handleRequest()
                               throws com.bankframe.ejb.ProcessingErrorException,
                                      com.bankframe.validation.ValidationException
Handles client 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 if processing fails
com.bankframe.validation.ValidationException - This exception is thrown if validation fails

imGetJournalEntryId

public java.lang.String imGetJournalEntryId(Teller teller)
                                     throws com.bankframe.ejb.ProcessingErrorException,
                                            com.bankframe.validation.ValidationException
Returns journalEntryId for teller
Parameters:
teller - Teller
Returns:
value of the JournalEntryId
Throws:
com.bankframe.ejb.ProcessingErrorException - This exception is thrown if processing fails
com.bankframe.validation.ValidationException - This exception is thrown if validation fails

imCreateJournalEntryAndItems

public void imCreateJournalEntryAndItems(Teller teller,
                                         com.bankframe.vo.retail.solutionset.impl.financialtransactions.FinancialTransactionJournalEntryVO financialTransactionJournalEntryVO,
                                         java.util.Vector financialTransactionJournalEntryItems)
                                  throws com.bankframe.ejb.ProcessingErrorException,
                                         com.bankframe.validation.ValidationException
Creates journal entries and the journal entry items objects.
Parameters:
teller - Teller
financialTransactionJournalEntryVO - FinancialTransactionJournalEntryVO
financialTransactionJournalEntryItems - Vector
Throws:
com.bankframe.ejb.ProcessingErrorException - This exception is thrown if processing fails
com.bankframe.validation.ValidationException - This exception is thrown if validation fails

imGetCurrentTellerObject

public Teller imGetCurrentTellerObject(java.lang.String companyCode,
                                       java.lang.String branchCode,
                                       java.lang.String userId)
                                throws com.bankframe.ejb.ProcessingErrorException,
                                       com.bankframe.validation.ValidationException
Returns current teller object for the user logged on branch and company for currenct processing date
Parameters:
companyCode - String
branchCode - String
userId - String
Returns:
current teller object
Throws:
com.bankframe.ejb.ProcessingErrorException - This exception is thrown if processing fails
com.bankframe.validation.ValidationException - This exception is thrown if validation fails

imGetProcessingDateForUser

public java.lang.String imGetProcessingDateForUser(java.lang.String companyCode,
                                                   java.lang.String userId)
                                            throws com.bankframe.ejb.ProcessingErrorException
Returns processing date for the User
Parameters:
companyCode - String
userId - String
Returns:
value of the date
Throws:
com.bankframe.ejb.ProcessingErrorException - This exception is thrown if processing fails

imCreditMoneyToCashBox

public void imCreditMoneyToCashBox(Teller teller,
                                   com.bankframe.vo.retail.solutionset.impl.financialtransactions.FinancialTransactionCommonAttributesVO financialTransactionCommonAttributesVO,
                                   java.util.Vector financialTransactionCashInVOs,
                                   java.lang.String transactionDate,
                                   java.lang.String transactionTime)
                            throws com.bankframe.ejb.ProcessingErrorException,
                                   com.bankframe.validation.ValidationException
Cedits cashbox with the money received.
Parameters:
teller - Teller
financialTransactionCommonAttributesVO - FinancialTransactionCommonAttributesVO
financialTransactionCashInVOs - Vector
transactionDate - String
transactionTime - String
Throws:
com.bankframe.ejb.ProcessingErrorException - This exception is thrown if processing fails
com.bankframe.validation.ValidationException - This exception is thrown if validation fails

imGetFees

public TransactionFee imGetFees(java.lang.String companyCode,
                                java.lang.String transactionCode,
                                java.lang.String accountType,
                                java.lang.String customerType)
                         throws com.bankframe.ejb.ProcessingErrorException,
                                com.bankframe.validation.ValidationException
Returns Transactionfee for a transaction.
Parameters:
companyCode - String
transactionCode - String
accountType - String
customerType - String
Returns:
value of the TransactionFee
Throws:
com.bankframe.ejb.ProcessingErrorException - This exception is thrown if processing fails
com.bankframe.validation.ValidationException - This exception is thrown if validation fails

imCalculateFeeAmount

public java.lang.Double imCalculateFeeAmount(java.lang.Double amount,
                                             java.lang.String percentageFee)
                                      throws com.bankframe.ejb.ProcessingErrorException,
                                             com.bankframe.validation.ValidationException
Calculates & Returns percentage fee amount.
Parameters:
amount - Double
percentageFee - String
Returns:
value of the percentage fee amount
Throws:
com.bankframe.ejb.ProcessingErrorException - This exception is thrown when processing
com.bankframe.validation.ValidationException - This exception is thrown if validation fails

imDebitMoneyFromCashBox

public void imDebitMoneyFromCashBox(Teller teller,
                                    com.bankframe.vo.retail.solutionset.impl.financialtransactions.FinancialTransactionCommonAttributesVO financialTransactionCommonAttributesVO,
                                    java.util.Vector financialTransactionCashOutVOs,
                                    java.lang.String transactionDate,
                                    java.lang.String transactionTime)
                             throws com.bankframe.ejb.ProcessingErrorException,
                                    com.bankframe.validation.ValidationException
Debits cashbox with the money requested by customer
Parameters:
teller - Teller
financialTransactionCommonAttributesVO - FinancialTransactionCommonAttributesVO
financialTransactionCashOutVOs - Vector
transactionDate - String
transactionTime - String
Throws:
com.bankframe.ejb.ProcessingErrorException - This exception is thrown if processing fails
com.bankframe.validation.ValidationException - This exception is thrown if validation fails

imIsCustomerSessionEnded

public boolean imIsCustomerSessionEnded(java.lang.String companyCode,
                                        java.lang.String branchCode,
                                        java.lang.String userId,
                                        java.lang.String customerSessionId)
                                 throws com.bankframe.ejb.ProcessingErrorException,
                                        com.bankframe.validation.ValidationException
Returns custmer session status
Parameters:
companyCode - String
branchCode - String
userId - String
customerSessionId - String
Returns:
boolean value after checking if the customer session ended or not
Throws:
com.bankframe.ejb.ProcessingErrorException - This exception is thrown if processing fails
com.bankframe.validation.ValidationException - This exception is thrown if validation fails

imReturnNegotiableInstruments

public void imReturnNegotiableInstruments(com.bankframe.vo.retail.solutionset.impl.financialtransactions.FinancialTransactionOriginalDetailsVO originalDetails)
                                   throws com.bankframe.ejb.ProcessingErrorException,
                                          com.bankframe.validation.ValidationException
Reverses the Negotiable Instruments which are issued/recived
Parameters:
originalDetails - FinancialTransactionOriginalDetailsVO
Throws:
com.bankframe.ejb.ProcessingErrorException - This exception is thrown if processing fails
com.bankframe.validation.ValidationException - This exception is thrown if validation fails

imAddNegotiableInstrumentToBatch

public java.lang.String imAddNegotiableInstrumentToBatch(Teller teller,
                                                         com.bankframe.vo.retail.solutionset.impl.financialtransactions.FinancialTransactionNegotiableInstrumentVO financialTransactionNegotiableInstrumentVO,
                                                         com.bankframe.vo.retail.solutionset.impl.financialtransactions.FinancialTransactionSessionDetailsVO financialTransactionSessionDetailsVO)
                                                  throws com.bankframe.ejb.ProcessingErrorException,
                                                         com.bankframe.validation.ValidationException
Adds negotiable instrument to a batch.
Parameters:
teller - Teller
financialTransactionNegotiableInstrumentVO - FinancialTransactionNegotiableInstrumentVO
financialTransactionSessionDetailsVO - FinancialTransactionSessionDetailsVO
Returns:
value of the batchId
Throws:
com.bankframe.ejb.ProcessingErrorException - This exception is thrown if processing fails
com.bankframe.validation.ValidationException - This exception is thrown if validation fails

imGetMessageForBatchState

public java.lang.String imGetMessageForBatchState(Teller teller,
                                                  java.lang.String batchId)
                                           throws com.bankframe.validation.ValidationException,
                                                  com.bankframe.ejb.ProcessingErrorException
Returns message for the batch state
Parameters:
teller - Teller
batchId - String
Returns:
value of the batch state message
Throws:
com.bankframe.validation.ValidationException - This exception is thrown if validation fails
com.bankframe.ejb.ProcessingErrorException - This exception is thrown if processing fails

imAddNegotiableInstrumentToCashBox

public void imAddNegotiableInstrumentToCashBox(Teller teller,
                                               com.bankframe.vo.retail.solutionset.impl.financialtransactions.FinancialTransactionNegotiableInstrumentVO financialTransactionNegotiableInstrumentVO,
                                               com.bankframe.vo.retail.solutionset.impl.financialtransactions.FinancialTransactionDestinationAccountVO financialTransactionDestinationAccountVO,
                                               com.bankframe.vo.retail.solutionset.impl.financialtransactions.FinancialTransactionSessionDetailsVO financialTransactionSessionDetailsVO)
                                        throws com.bankframe.ejb.ProcessingErrorException,
                                               com.bankframe.validation.ValidationException
Adds NegotiableInstrument to the Cashbox.
Parameters:
teller - Teller
financialTransactionNegotiableInstrumentVO - FinancialTransactionNegotiableInstrumentVO
financialTransactionDestinationAccountVO - FinancialTransactionDestinationAccountVO
financialTransactionSessionDetailsVO - FinancialTransactionSessionDetailsVO
Throws:
com.bankframe.ejb.ProcessingErrorException - This exception is thrown if processing fails
com.bankframe.validation.ValidationException - This exception is thrown if validation fails

imUpdateBranchControlNumber

public void imUpdateBranchControlNumber(java.lang.String companyCode,
                                        java.lang.String branchCode,
                                        java.util.Vector transactionDetailsVO)
                                 throws com.bankframe.ejb.ProcessingErrorException,
                                        com.bankframe.validation.ValidationException
Updates branchControlNumber of Branch
Parameters:
companyCode - String
branchCode - String
transactionDetailsVO - Vector
Throws:
com.bankframe.ejb.ProcessingErrorException - This exception is thrown if processing fails.
com.bankframe.validation.ValidationException - This exception is thrown if validation fails.

imUpdateNegotiableInstrumentBoxForIncomingNegotiableInstruments

public void imUpdateNegotiableInstrumentBoxForIncomingNegotiableInstruments(Teller teller,
                                                                            java.util.Vector financialTransactionNegotiableInstrumentVOImplVector)
                                                                     throws com.bankframe.ejb.ProcessingErrorException,
                                                                            com.bankframe.validation.ValidationException
Updates NegotiableInstrumentBox for Incoming Negotiable Instruments.
Parameters:
teller - Teller
financialTransactionNegotiableInstrumentVOImplVector - Vector
Throws:
com.bankframe.ejb.ProcessingErrorException - This exception is thrown if processing fails.
com.bankframe.validation.ValidationException - This exception is thrown if validation fails.

imUpdateNegotiableInstrumentTransferDetails

public void imUpdateNegotiableInstrumentTransferDetails(Teller teller,
                                                        java.util.Vector financialTransactionNegotiableInstrumentVOImplVector,
                                                        java.lang.String negotiableInstrumentMovementType,
                                                        java.lang.String cashBoxId)
                                                 throws com.bankframe.ejb.ProcessingErrorException,
                                                        com.bankframe.validation.ValidationException
Updates NegotiableInstrument for Transfer Details.
Parameters:
teller - Teller
financialTransactionNegotiableInstrumentVOImplVector - Vector
negotiableInstrumentMovementType - String
cashBoxId - String
Throws:
com.bankframe.ejb.ProcessingErrorException - This exception is thrown if processing fails.
com.bankframe.validation.ValidationException - This exception is thrown if validation fails.

imUpdateNegotiableInstrumentBoxForOutgoingNegotiableInstruments

public void imUpdateNegotiableInstrumentBoxForOutgoingNegotiableInstruments(Teller teller,
                                                                            java.util.Vector financialTransactionNegotiableInstrumentVOImplVector)
                                                                     throws com.bankframe.ejb.ProcessingErrorException,
                                                                            com.bankframe.validation.ValidationException
Updates NegotiableInstrumentBox for Outgoing Negotiable Instruments.
Parameters:
teller - Teller
financialTransactionNegotiableInstrumentVOImplVector - Vector
Throws:
com.bankframe.ejb.ProcessingErrorException - This exception is thrown if processing fails.
com.bankframe.validation.ValidationException - This exception is thrown if validation fails.

imValidateNegotiableInstrumentForDeposit

public void imValidateNegotiableInstrumentForDeposit(com.bankframe.vo.retail.solutionset.impl.financialtransactions.FinancialTransactionCommonAttributesVO financialTransactionCommonAttributesVO,
                                                     java.util.Vector financialTransactionNegotiableInstrumentVOImpls)
                                              throws com.bankframe.ejb.ProcessingErrorException
Validates if the deposit can be made for the specified Negotiable Instrument.
Parameters:
financialTransactionNegotiableInstrumentVOImpls - Vector
financialTransactionCommonAttributes - FinancialTransactionCommonAttributes
Returns:
Vector of negotiableInstruments those failed validation
Throws:
com.bankframe.ejb.ProcessingErrorException - This exception is thrown if processing fails

imUpdateNegotiableInstrumentDetailsForWithdrawals

public void imUpdateNegotiableInstrumentDetailsForWithdrawals(java.util.Vector financialTransactionNegotiableInstrumentVOImpls,
                                                              com.bankframe.vo.retail.solutionset.impl.financialtransactions.FinancialTransactionCommonAttributesVO financialTransactionCommonAttributesVOImpl)
                                                       throws com.bankframe.ejb.ProcessingErrorException,
                                                              com.bankframe.validation.ValidationException
Updates status of the negotiableInstrument when a withdrawal is carried out if the negotiable instrument type is a draft.
Parameters:
financialTransactionNegotiableInstrumentVOImpls - Vector
financialTransactionCommonAttributes - FinancialTransactionCommonAttributes
Throws:
com.bankframe.ejb.ProcessingErrorException - This exception is thrown if processing fails.
com.bankframe.validation.ValidationException - This exception is thrown if validation fails.

calculateFeeAndPercentageFee

public java.util.Vector calculateFeeAndPercentageFee(java.lang.String companyCode,
                                                     java.lang.String transactionCode,
                                                     java.lang.String accountType,
                                                     java.lang.String customerType,
                                                     java.lang.Double amount)
                                              throws com.bankframe.ejb.ProcessingErrorException,
                                                     com.bankframe.validation.ValidationException
Returns & store fee(s) for a transaction and calculates the percentage fee
Parameters:
companyCode - String
transactionCode - String
accountType - String
customerType - String
amount - Double
Returns:
the fee and the percentage fee
Throws:
com.bankframe.ejb.ProcessingErrorException - This exception is thrown if processing fails.
com.bankframe.validation.ValidationException - This exception is thrown if validation fails.