christophedelory.betty.admin.servlet
Class AdminHttpServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.google.gwt.user.server.rpc.RemoteServiceServlet
christophedelory.betty.admin.servlet.AdminHttpServlet
- All Implemented Interfaces:
- BettyAdminRemoteService, com.google.gwt.user.client.rpc.RemoteService, com.google.gwt.user.server.rpc.SerializationPolicyProvider, Serializable, Servlet, ServletConfig
public class AdminHttpServlet
- extends com.google.gwt.user.server.rpc.RemoteServiceServlet
- implements BettyAdminRemoteService
The administration service implementation.
- Since:
- 1.0.0
- Version:
- $Revision$
- Author:
- Christophe Delory
- See Also:
- Serialized Form
Methods inherited from class com.google.gwt.user.server.rpc.RemoteServiceServlet |
doGetSerializationPolicy, doPost, doUnexpectedFailure, getSerializationPolicy, getThreadLocalRequest, getThreadLocalResponse, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, readContent, shouldCompressResponse |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SINGLETON
static final AdminHttpServlet SINGLETON
- A package-private instance of this class.
AdminHttpServlet
public AdminHttpServlet()
getServletInfo
public String getServletInfo()
- Specified by:
getServletInfo
in interface Servlet
- Overrides:
getServletInfo
in class GenericServlet
addXml
public void addXml(XmlRoot xml)
throws Exception
- Description copied from interface:
BettyAdminRemoteService
- Adds or updates database rows through an XML fragment.
- Specified by:
addXml
in interface BettyAdminRemoteService
- 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
public void addPlayerScore(String championshipId,
String phaseId,
String eventId,
String playerId,
String dependencyPhaseRef,
int dependencyPhaseRank,
int result)
throws Exception
- Specified by:
addPlayerScore
in interface BettyAdminRemoteService
- 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
public void processChampionship(String championshipId)
throws Exception
- Specified by:
processChampionship
in interface BettyAdminRemoteService
- 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
public void removeChampionship(String championshipId)
throws Exception
- Specified by:
removeChampionship
in interface BettyAdminRemoteService
- 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
public void removeLocation(String locationId)
throws Exception
- Specified by:
removeLocation
in interface BettyAdminRemoteService
- 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
public void removePlayer(String playerId)
throws Exception
- Specified by:
removePlayer
in interface BettyAdminRemoteService
- 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
public void removeResource(String resourceId)
throws Exception
- Specified by:
removeResource
in interface BettyAdminRemoteService
- 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
public void addUser(String userId,
boolean isBetter,
boolean isAdmin,
String userPassword)
throws Exception
- Specified by:
addUser
in interface BettyAdminRemoteService
- 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
public void addUser(UserDetails user)
throws Exception
- Specified by:
addUser
in interface BettyAdminRemoteService
- 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
public void removeUser(String userId)
throws Exception
- Specified by:
removeUser
in interface BettyAdminRemoteService
- 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
Copyright © 2008-2009 Christophe Delory. All Rights Reserved.