4
import java.rmi.RemoteException;
5
import java.util.ArrayList;
6
import util.LeagueDetails;
7
import util.PlayerDetails;
8
import util.TeamDetails;
12
* This is the business interface for RosterBean enterprise bean.
14
public interface RosterRemoteBusiness {
15
LeagueDetails getLeague(String leagueId) throws RemoteException;
17
void removeLeague(String leagueId) throws RemoteException;
19
void createLeague(LeagueDetails details) throws RemoteException;
21
TeamDetails getTeam(String teamId) throws RemoteException;
23
void removeTeam(String teamId) throws RemoteException;
25
void createTeamInLeague(TeamDetails details, String leagueId) throws RemoteException;
27
ArrayList getSportsOfPlayer(String playerId) throws RemoteException;
29
ArrayList getLeaguesOfPlayer(String playerId) throws RemoteException;
31
ArrayList getPlayersByPositionAndName(String position, String name) throws RemoteException;
33
ArrayList getPlayersNotOnTeam() throws RemoteException;
35
ArrayList getAllPlayers() throws RemoteException;
37
ArrayList getPlayersByCity(String city) throws RemoteException;
39
ArrayList getPlayersBySport(String sport) throws RemoteException;
41
ArrayList getPlayersByLeagueId(String leagueId) throws RemoteException;
43
ArrayList getPlayersBySalaryRange(double low, double high) throws RemoteException;
45
ArrayList getPlayersByHigherSalary(String name) throws RemoteException;
47
ArrayList getPlayersByPosition(String position) throws RemoteException;
49
ArrayList getTeamsOfLeague(String leagueId) throws RemoteException;
51
ArrayList getPlayersOfTeam(String teamId) throws RemoteException;
53
PlayerDetails getPlayer(String playerId) throws RemoteException;
55
void dropPlayer(String playerId, String teamId) throws RemoteException;
57
void removePlayer(String playerId) throws RemoteException;
59
void addPlayer(String playerId, String teamId) throws RemoteException;
61
void createPlayer(PlayerDetails details) throws RemoteException;
63
ArrayList testFinder(String parm1, String parm2, String parm3) throws RemoteException;
65
ArrayList getPlayersOfTeamCopy(String teamId) throws RemoteException;