Interface SessionTemplate

All Known Implementing Classes:
DesktopProject, LocalProject, ShadowProject

public interface SessionTemplate
Interface for session template extension for Projects This interface is used to define a session template for corpora. Session templates are used to define the initial state of a session when a new session is created for a corpus.
  • Method Details

    • getSessionTemplate

      Session getSessionTemplate(String corpus) throws IOException
      Get the Session template for the given corpus.
      Parameters:
      corpus -
      Returns:
      session template or null if not found
      Throws:
      IOException
    • saveSessionTemplate

      void saveSessionTemplate(String corpus, Session template) throws IOException
      Save the Session template for the given corpus.
      Parameters:
      corpus -
      template -
      Throws:
      IOException
    • createSessionFromTemplate

      Session createSessionFromTemplate(String corpus, String session) throws IOException
      Create a new session from the corpus template (if it exists) This method will also add the session to the specified corpus.
      Parameters:
      corpus -
      session -
      Returns:
      new Session object
      Throws:
      IOException