PlayerService

com.j0h1.contour.admin.client.service

## Interface PlayerService

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

      @RemoteServiceRelativePath(value="players")
      public interface PlayerService
      extends com.google.gwt.user.client.rpc.RemoteService

  Remote service interface, defining methods to handle RPC calls from the client, concerning Player objects.
  Author:
    Johannes Riedmann

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `delete(int playerId)` Deletes a player from the database.
    `java.util.ArrayList<Player>` | `findAll()` Returns all players persisted in the database.

- - ### Method Detail

    - #### findAll

          java.util.ArrayList<Player> findAll()
                                       throws DAOPlayerException

      Returns all players persisted in the database.
      Returns:
        List of all Player objects.
      Throws:
        `DAOPlayerException` - If the query fails, specific feedback is provided.

    - #### delete

          void delete(int playerId)
               throws DAOPlayerException

      Deletes a player from the database. If the player had sessions persisted in the database, they are deleted to, along with the images associated with them.
      Parameters:
        `playerId` - ID of player to be deleted.
      Throws:
        `DAOPlayerException` - If deletion fails, specific feedback is provided.