Betty v1.1.0

christophedelory.betty.admin
Interface BettyAdminRemoteServiceAsync


public interface BettyAdminRemoteServiceAsync

The asynchronous 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, com.google.gwt.user.client.rpc.AsyncCallback<Void> callback)
           
 void addUser(String userId, boolean isBetter, boolean isAdmin, String userPassword, com.google.gwt.user.client.rpc.AsyncCallback<Void> callback)
           
 void addUser(UserDetails user, com.google.gwt.user.client.rpc.AsyncCallback<Void> callback)
           
 void addXml(XmlRoot xml, com.google.gwt.user.client.rpc.AsyncCallback<Void> callback)
          Adds or updates database rows through an XML fragment.
 void processChampionship(String championshipId, com.google.gwt.user.client.rpc.AsyncCallback<Void> callback)
           
 void removeChampionship(String championshipId, com.google.gwt.user.client.rpc.AsyncCallback<Void> callback)
           
 void removeLocation(String locationId, com.google.gwt.user.client.rpc.AsyncCallback<Void> callback)
           
 void removePlayer(String playerId, com.google.gwt.user.client.rpc.AsyncCallback<Void> callback)
           
 void removeResource(String resourceId, com.google.gwt.user.client.rpc.AsyncCallback<Void> callback)
           
 void removeUser(String userId, com.google.gwt.user.client.rpc.AsyncCallback<Void> callback)
           
 

Method Detail

addXml

void addXml(XmlRoot xml,
            com.google.gwt.user.client.rpc.AsyncCallback<Void> callback)
Adds or updates database rows through an XML fragment.

Parameters:
xml - an XML fragment. Shall not be null.
callback - the service callback. Shall not be null.

addPlayerScore

void addPlayerScore(String championshipId,
                    String phaseId,
                    String eventId,
                    String playerId,
                    String dependencyPhaseRef,
                    int dependencyPhaseRank,
                    int result,
                    com.google.gwt.user.client.rpc.AsyncCallback<Void> callback)
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.
callback - the service callback. Shall not be null.

processChampionship

void processChampionship(String championshipId,
                         com.google.gwt.user.client.rpc.AsyncCallback<Void> callback)
Parameters:
championshipId - the championship identifier. Shall not be null.
callback - the service callback. Shall not be null.

removeChampionship

void removeChampionship(String championshipId,
                        com.google.gwt.user.client.rpc.AsyncCallback<Void> callback)
Parameters:
championshipId - the championship identifier. Shall not be null.
callback - the service callback. Shall not be null.

removeLocation

void removeLocation(String locationId,
                    com.google.gwt.user.client.rpc.AsyncCallback<Void> callback)
Parameters:
locationId - the location identifier. Shall not be null.
callback - the service callback. Shall not be null.

removePlayer

void removePlayer(String playerId,
                  com.google.gwt.user.client.rpc.AsyncCallback<Void> callback)
Parameters:
playerId - the player identifier. Shall not be null.
callback - the service callback. Shall not be null.

removeResource

void removeResource(String resourceId,
                    com.google.gwt.user.client.rpc.AsyncCallback<Void> callback)
Parameters:
resourceId - the resource identifier. Shall not be null.
callback - the service callback. Shall not be null.

addUser

void addUser(String userId,
             boolean isBetter,
             boolean isAdmin,
             String userPassword,
             com.google.gwt.user.client.rpc.AsyncCallback<Void> callback)
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.
callback - the service callback. Shall not be null.

addUser

void addUser(UserDetails user,
             com.google.gwt.user.client.rpc.AsyncCallback<Void> callback)
Parameters:
user - the user description. Shall not be null.
callback - the service callback. Shall not be null.

removeUser

void removeUser(String userId,
                com.google.gwt.user.client.rpc.AsyncCallback<Void> callback)
Parameters:
userId - the user identifier. Shall not be null.
callback - the service callback. Shall not be null.

© 2008-2009 Christophe Delory

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