SessionService

com.j0h1.contour.admin.client.service

## Interface SessionService

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

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

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

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `delete(int sessionId)` Deletes the session with the given sessionId from the database.
    `java.util.ArrayList<Session>` | `findAll()` Returns all sessions persisted in the database.

- - ### Method Detail

    - #### findAll

          java.util.ArrayList<Session> findAll()
                                        throws DAOSessionException

      Returns all sessions persisted in the database.
      Returns:
        List of all Session objects.
      Throws:
        `DAOSessionException` - If the query fails, specific feedback is provided.

    - #### delete

          void delete(int sessionId)
               throws DAOSessionException

      Deletes the session with the given sessionId from the database. If it's a custom session, the original data from the image is deleted with the session.
      Parameters:
        `sessionId` - ID of session to be deleted.
      Throws:
        `DAOSessionException` - If deletion fails, specific feedback is provided