Betty v1.1.0

christophedelory.betty.admin
Interface BettyAdminRemoteService

All Superinterfaces:
com.google.gwt.user.client.rpc.RemoteService
All Known Implementing Classes:
AdminHttpServlet

public interface BettyAdminRemoteService
extends com.google.gwt.user.client.rpc.RemoteService

The synchronous administration service interface.

Since:
1.0.0
Version:
$Revision$
Author:
Christophe Delory

Method Summary
 void addPlayerScore(String championshipId, String phaseId, String eventId, String playerId, String dependencyPhaseRef, int dependencyPhaseRank, int result)
           
 void addUser(String userId, boolean isBetter, boolean isAdmin, String userPassword)
           
 void addUser(UserDetails user)
           
 void addXml(XmlRoot xml)
          Adds or updates database rows through an XML fragment.
 void processChampionship(String championshipId)
           
 void removeChampionship(String championshipId)
           
 void removeLocation(String locationId)
           
 void removePlayer(String playerId)
           
 void removeResource(String resourceId)
           
 void removeUser(String userId)
           
 

Method Detail

addXml

void addXml(XmlRoot xml)
            throws Exception
Adds or updates database rows through an XML fragment.

Parameters:
xml - an XML fragment. Shall not be null.
Throws:
NullPointerException - if xml is null.
NamingException - if a naming exception is encountered.
FinderException - in case of failure to find any requested EJB object(s).
EJBException - if any exception occured during the execution of this method.
CreateException - an EJB object creation failed.
Exception

addPlayerScore

void addPlayerScore(String championshipId,
                    String phaseId,
                    String eventId,
                    String playerId,
                    String dependencyPhaseRef,
                    int dependencyPhaseRank,
                    int result)
                    throws Exception
Parameters:
championshipId - the championship identifier. Shall not be null.
phaseId - the championship's phase identifier. Shall not be null.
eventId - the phase's event identifier. Shall not be null.
playerId - the player identifier. May be null.
dependencyPhaseRef - the dependency phase identifier. May be null.
dependencyPhaseRank - the rank in the dependency phase.
result - the associated result.
Throws:
HttpServletException - if any applicative error occurs during the operation.
NamingException - if a naming exception is encountered.
FinderException - in case of failure to find any requested EJB object(s).
EJBException - if any exception occured during the execution of this method.
CreateException - an EJB object creation failed.
Exception

processChampionship

void processChampionship(String championshipId)
                         throws Exception
Parameters:
championshipId - the championship identifier. Shall not be null.
Throws:
HttpServletException - if any applicative error occurs during the operation.
NamingException - if a naming exception is encountered.
FinderException - in case of failure to find any requested EJB object(s).
EJBException - if any exception occured during the execution of this method.
CreateException - an EJB object creation failed.
Exception

removeChampionship

void removeChampionship(String championshipId)
                        throws Exception
Parameters:
championshipId - the championship identifier. Shall not be null.
Throws:
HttpServletException - if any applicative error occurs during the operation.
NamingException - if a naming exception is encountered.
FinderException - in case of failure to find any requested EJB object(s).
EJBException - if any exception occured during the execution of this method.
RemoveException - an attempt to remove an EJB object when the enterprise Bean or the container does not allow the EJB object to be removed.
Exception

removeLocation

void removeLocation(String locationId)
                    throws Exception
Parameters:
locationId - the location identifier. Shall not be null.
Throws:
HttpServletException - if any applicative error occurs during the operation.
NamingException - if a naming exception is encountered.
FinderException - in case of failure to find any requested EJB object(s).
EJBException - if any exception occured during the execution of this method.
RemoveException - an attempt to remove an EJB object when the enterprise Bean or the container does not allow the EJB object to be removed.
Exception

removePlayer

void removePlayer(String playerId)
                  throws Exception
Parameters:
playerId - the player identifier. Shall not be null.
Throws:
HttpServletException - if any applicative error occurs during the operation.
NamingException - if a naming exception is encountered.
FinderException - in case of failure to find any requested EJB object(s).
EJBException - if any exception occured during the execution of this method.
RemoveException - an attempt to remove an EJB object when the enterprise Bean or the container does not allow the EJB object to be removed.
Exception

removeResource

void removeResource(String resourceId)
                    throws Exception
Parameters:
resourceId - the resource identifier. Shall not be null.
Throws:
HttpServletException - if any applicative error occurs during the operation.
NamingException - if a naming exception is encountered.
FinderException - in case of failure to find any requested EJB object(s).
EJBException - if any exception occured during the execution of this method.
RemoveException - an attempt to remove an EJB object when the enterprise Bean or the container does not allow the EJB object to be removed.
Exception

addUser

void addUser(String userId,
             boolean isBetter,
             boolean isAdmin,
             String userPassword)
             throws Exception
Parameters:
userId - the user identifier. Shall not be null.
isBetter - true if the user is a better, false otherwise.
isAdmin - true if the user is an administrator, false otherwise.
userPassword - the user password. Shall not be null.
Throws:
HttpServletException - if any applicative error occurs during the operation.
NullPointerException - if userId is null.
NamingException - if a naming exception is encountered.
FinderException - in case of failure to find any requested EJB object(s).
EJBException - if any exception occured during the execution of this method.
CreateException - an EJB object creation failed.
Exception

addUser

void addUser(UserDetails user)
             throws Exception
Parameters:
user - the user description. Shall not be null.
Throws:
HttpServletException - if any applicative error occurs during the operation.
NullPointerException - if user is null.
NamingException - if a naming exception is encountered.
FinderException - in case of failure to find any requested EJB object(s).
EJBException - if any exception occured during the execution of this method.
CreateException - an EJB object creation failed.
Exception

removeUser

void removeUser(String userId)
                throws Exception
Parameters:
userId - the user identifier. Shall not be null.
Throws:
HttpServletException - if any applicative error occurs during the operation.
NamingException - if a naming exception is encountered.
FinderException - in case of failure to find any requested EJB object(s).
EJBException - if any exception occured during the execution of this method.
RemoveException - an attempt to remove an EJB object when the enterprise Bean or the container does not allow the EJB object to be removed.
Exception

© 2008-2009 Christophe Delory

Copyright © 2008-2009 Christophe Delory. All Rights Reserved.