1 2 package roster; 3 4 import java.rmi.RemoteException ; 5 import java.util.ArrayList ; 6 import util.LeagueDetails; 7 import util.PlayerDetails; 8 import util.TeamDetails; 9 10 11 14 public interface RosterRemoteBusiness { 15 LeagueDetails getLeague(String leagueId) throws RemoteException ; 16 17 void removeLeague(String leagueId) throws RemoteException ; 18 19 void createLeague(LeagueDetails details) throws RemoteException ; 20 21 TeamDetails getTeam(String teamId) throws RemoteException ; 22 23 void removeTeam(String teamId) throws RemoteException ; 24 25 void createTeamInLeague(TeamDetails details, String leagueId) throws RemoteException ; 26 27 ArrayList getSportsOfPlayer(String playerId) throws RemoteException ; 28 29 ArrayList getLeaguesOfPlayer(String playerId) throws RemoteException ; 30 31 ArrayList getPlayersByPositionAndName(String position, String name) throws RemoteException ; 32 33 ArrayList getPlayersNotOnTeam() throws RemoteException ; 34 35 ArrayList getAllPlayers() throws RemoteException ; 36 37 ArrayList getPlayersByCity(String city) throws RemoteException ; 38 39 ArrayList getPlayersBySport(String sport) throws RemoteException ; 40 41 ArrayList getPlayersByLeagueId(String leagueId) throws RemoteException ; 42 43 ArrayList getPlayersBySalaryRange(double low, double high) throws RemoteException ; 44 45 ArrayList getPlayersByHigherSalary(String name) throws RemoteException ; 46 47 ArrayList getPlayersByPosition(String position) throws RemoteException ; 48 49 ArrayList getTeamsOfLeague(String leagueId) throws RemoteException ; 50 51 ArrayList getPlayersOfTeam(String teamId) throws RemoteException ; 52 53 PlayerDetails getPlayer(String playerId) throws RemoteException ; 54 55 void dropPlayer(String playerId, String teamId) throws RemoteException ; 56 57 void removePlayer(String playerId) throws RemoteException ; 58 59 void addPlayer(String playerId, String teamId) throws RemoteException ; 60 61 void createPlayer(PlayerDetails details) throws RemoteException ; 62 63 ArrayList testFinder(String parm1, String parm2, String parm3) throws RemoteException ; 64 65 ArrayList getPlayersOfTeamCopy(String teamId) throws RemoteException ; 66 67 } 68 | Popular Tags |