001    /**
002     *  Licensed to the Apache Software Foundation (ASF) under one or more
003     *  contributor license agreements.  See the NOTICE file distributed with
004     *  this work for additional information regarding copyright ownership.
005     *  The ASF licenses this file to You under the Apache License, Version 2.0
006     *  (the "License"); you may not use this file except in compliance with
007     *  the License.  You may obtain a copy of the License at
008     *
009     *     http://www.apache.org/licenses/LICENSE-2.0
010     *
011     *  Unless required by applicable law or agreed to in writing, software
012     *  distributed under the License is distributed on an "AS IS" BASIS,
013     *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014     *  See the License for the specific language governing permissions and
015     *  limitations under the License.
016     */
017    package org.apache.geronimo.samples.daytrader.client.ws;
018    
019    public interface TradeWSServices extends java.rmi.Remote {
020        public org.apache.geronimo.samples.daytrader.client.ws.MarketSummaryDataBeanWS getMarketSummary() throws java.rmi.RemoteException;
021        public org.apache.geronimo.samples.daytrader.client.ws.OrderDataBean buy(java.lang.String userID, java.lang.String symbol, double quantity, int orderProcessingMode) throws java.rmi.RemoteException;
022        public org.apache.geronimo.samples.daytrader.client.ws.OrderDataBean sell(java.lang.String userID, java.lang.Integer holdingID, int orderProcessingMode) throws java.rmi.RemoteException;
023        public void queueOrder(java.lang.Integer orderID, boolean twoPhase) throws java.rmi.RemoteException;
024        public org.apache.geronimo.samples.daytrader.client.ws.OrderDataBean completeOrder(java.lang.Integer orderID, boolean twoPhase) throws java.rmi.RemoteException;
025        public void cancelOrder(java.lang.Integer orderID, boolean twoPhase) throws java.rmi.RemoteException;
026        public void orderCompleted(java.lang.String userID, java.lang.Integer orderID) throws java.rmi.RemoteException;
027        public org.apache.geronimo.samples.daytrader.client.ws.OrderDataBean[] getOrders(java.lang.String userID) throws java.rmi.RemoteException;
028        public org.apache.geronimo.samples.daytrader.client.ws.OrderDataBean[] getClosedOrders(java.lang.String userID) throws java.rmi.RemoteException;
029        public org.apache.geronimo.samples.daytrader.client.ws.QuoteDataBean createQuote(java.lang.String symbol, java.lang.String companyName, java.math.BigDecimal price) throws java.rmi.RemoteException;
030        public org.apache.geronimo.samples.daytrader.client.ws.QuoteDataBean getQuote(java.lang.String symbol) throws java.rmi.RemoteException;
031        public org.apache.geronimo.samples.daytrader.client.ws.QuoteDataBean[] getAllQuotes() throws java.rmi.RemoteException;
032        public org.apache.geronimo.samples.daytrader.client.ws.QuoteDataBean updateQuotePriceVolume(java.lang.String symbol, java.math.BigDecimal newPrice, double sharesTraded) throws java.rmi.RemoteException;
033        public org.apache.geronimo.samples.daytrader.client.ws.HoldingDataBean[] getHoldings(java.lang.String userID) throws java.rmi.RemoteException;
034        public org.apache.geronimo.samples.daytrader.client.ws.HoldingDataBean getHolding(java.lang.Integer holdingID) throws java.rmi.RemoteException;
035        public org.apache.geronimo.samples.daytrader.client.ws.AccountDataBean getAccountData(java.lang.String userID) throws java.rmi.RemoteException;
036        public org.apache.geronimo.samples.daytrader.client.ws.AccountProfileDataBean getAccountProfileData(java.lang.String userID) throws java.rmi.RemoteException;
037        public org.apache.geronimo.samples.daytrader.client.ws.AccountProfileDataBean updateAccountProfile(org.apache.geronimo.samples.daytrader.client.ws.AccountProfileDataBean profileData) throws java.rmi.RemoteException;
038        public org.apache.geronimo.samples.daytrader.client.ws.AccountDataBean login(java.lang.String userID, java.lang.String password) throws java.rmi.RemoteException;
039        public void logout(java.lang.String userID) throws java.rmi.RemoteException;
040        public org.apache.geronimo.samples.daytrader.client.ws.AccountDataBean register(java.lang.String userID, java.lang.String password, java.lang.String fullname, java.lang.String address, java.lang.String email, java.lang.String creditcard, java.math.BigDecimal openBalance) throws java.rmi.RemoteException;
041        public org.apache.geronimo.samples.daytrader.client.ws.RunStatsDataBean resetTrade(boolean deleteAll) throws java.rmi.RemoteException;
042    }