Interface Session<C extends BackendClient<C,S>, S>

Type Parameters:
C - the type of the parent BackendClient of a Session
S - the type of the application service of the parent Application of the parent BackendClient of a Session
All Superinterfaces:
AlivenessRequestable, ClientComponent<C>, Refreshable
All Known Implementing Classes:
AbstractSession, AbstractWebClientSession, TestSession, UnderConstructionPageSession, WebClientSession

public interface Session<C extends BackendClient<C,S>, S> extends AlivenessRequestable, ClientComponent<C>, Refreshable
Author:
Silvan Wyss
  • Method Details

    • getApplicationName

      String getApplicationName()
      Returns:
      the name of the parent Application of the parent BackendClient of the current Session
    • getClientClass

      Class<?> getClientClass()
      Returns:
      the client class of the current Session
    • getStoredApplicationService

      S getStoredApplicationService()
      Returns:
      the application service of the parent Application of the parent BackendClient of the current Session
    • hasFrameSession

      boolean hasFrameSession()
      Returns:
      true if the current Session has a frame Session, false otherwise
    • internalFullInitialize

      void internalFullInitialize()
      Initializes the current AbstractSession fully.
    • internalGetStoredResult

      Object internalGetStoredResult()
      Returns:
      the result of the current Session
      Throws:
      RuntimeException - if the current Session does not have a result
    • internalRemoveParentClient

      void internalRemoveParentClient()
      Removes the parent client from the current Session if the current Session has a parent client.
    • internalSetParentClient

      void internalSetParentClient(C parentClient)
      Sets the parent BackendClient of the current Session.
      Parameters:
      parentClient -
      Throws:
      RuntimeException - if the given parentClient is null
      RuntimeException - if the current Session belongs already to a BackendClient.
    • internalSetResult

      void internalSetResult(Object result)
      Sets the result of the current Session.
      Parameters:
      result -
      Throws:
      RuntimeException - if the given result is null
    • pop

      void pop()
      Pops the current Session from its parent BackendClient.
    • popWithResult

      void popWithResult(Object result)
      Pops the current Session from its parent BackendClient with the given result.
      Parameters:
      result -
      Throws:
      RuntimeException - if the given result is null