org.globalse.arena.remote
Interface RemoteLeague

All Superinterfaces:
java.rmi.Remote
All Known Implementing Classes:
League

public interface RemoteLeague
extends java.rmi.Remote

This is the public interface for remotely accessing a league. A RemoteLeagueis a remote object accessible via RMI. Notification events about changes in the league are sent over the RemoteArenaListener associated with the game for this league. Clients use this interface to create and set up new tournaments or to access remote references to tournaments in this league. To access the attributes of the league, the client first uses the getInfo method to return a snapshop, and then accesses the invidual attributes directly from the info object.

Author:
Michael Nagel, Allen Dutoit

Method Summary
 void addPlayer(java.lang.String ticket, User player)
           
 TournamentInfo createTournament(java.lang.String ticket, java.lang.String name, java.lang.String description)
           
 LeagueInfo getInfo()
           
 TournamentInfo[] getTournamentInfos(java.lang.String ticket)
           
 boolean hasAccess(java.lang.String ticket, java.lang.String access)
           
 void removePlayer(java.lang.String ticket, User player)
           
 void restrict(java.lang.String ticket)
           
 void unrestrict(java.lang.String ticket)
           
 

Method Detail

getInfo

LeagueInfo getInfo()
                   throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

hasAccess

boolean hasAccess(java.lang.String ticket,
                  java.lang.String access)
                  throws java.rmi.RemoteException,
                         InvalidTicketException
Throws:
java.rmi.RemoteException
InvalidTicketException

getTournamentInfos

TournamentInfo[] getTournamentInfos(java.lang.String ticket)
                                    throws java.rmi.RemoteException,
                                           InvalidTicketException,
                                           AccessDeniedException
Throws:
java.rmi.RemoteException
InvalidTicketException
AccessDeniedException

createTournament

TournamentInfo createTournament(java.lang.String ticket,
                                java.lang.String name,
                                java.lang.String description)
                                throws java.rmi.RemoteException,
                                       InvalidTicketException,
                                       AccessDeniedException,
                                       TournamentStyleNotFoundException,
                                       InvalidStateException
Throws:
java.rmi.RemoteException
InvalidTicketException
AccessDeniedException
TournamentStyleNotFoundException
InvalidStateException

restrict

void restrict(java.lang.String ticket)
              throws java.rmi.RemoteException,
                     InvalidTicketException,
                     AccessDeniedException
Throws:
java.rmi.RemoteException
InvalidTicketException
AccessDeniedException

unrestrict

void unrestrict(java.lang.String ticket)
                throws java.rmi.RemoteException,
                       InvalidTicketException,
                       AccessDeniedException
Throws:
java.rmi.RemoteException
InvalidTicketException
AccessDeniedException

addPlayer

void addPlayer(java.lang.String ticket,
               User player)
               throws java.rmi.RemoteException,
                      InvalidTicketException,
                      AccessDeniedException
Throws:
java.rmi.RemoteException
InvalidTicketException
AccessDeniedException

removePlayer

void removePlayer(java.lang.String ticket,
                  User player)
                  throws java.rmi.RemoteException,
                         InvalidTicketException,
                         AccessDeniedException
Throws:
java.rmi.RemoteException
InvalidTicketException
AccessDeniedException


Copyright © 2004-2007 Bernd Bruegge & Allen H. Dutoit. All Rights Reserved.