/* * @(#)RetirementServiceIF * Copyright 2002 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * */ package com.sun.eportal.retirement; import com.sun.eportal.FundInfo; import com.sun.eportal.EmployeeInfo; /** * Retirement Service interface. This defines the methods/messages that need * to be supported by any Retirement Service Provider who want to be used by * EmployeePortal */ import java.rmi.Remote; import java.rmi.RemoteException; public interface RetirementServiceIF extends Remote { /** * Method giving the funds supported by the Retirement Service Provider */ public String[] getAvailableFunds( ) throws RemoteException; /** * getQuote gives the quote from the provider, if the provider can service * all the funds requested. The quote can be based on the monthly investment * @param reqFunds fund array containing the user requested fund names * @param monthlyInvestment user choosen monthly invetment amount */ public double getQuote( FundInfo[] reqFunds, double monthlyInvestment ) throws RemoteException; /** * confirmQuote will be called when user is satisfied with provider quote * and decide to use the provider for providing the service * @param reqFunds funarray containing the user requested fund names * @param monthlyInvestment user choosen monthly invetment amount * @param ei EmployeeInfo object containing Employee Information * such as name, address, email atc */ public String confirmQuote( FundInfo[] reqFunds, double monthlyInvestment , EmployeeInfo ei) throws RemoteException; /** * updateEmployeeInfo method is used to update Employee Information on the * provider side. * @param ei EmployeeInfo object containing updated Employee Information * such as name, address, email atc */ public boolean updateEmployeeInfo( EmployeeInfo ei ) throws RemoteException; }