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 Summary
Modifier and TypeMethodDescriptioncreateSessionFromTemplate(String corpus, String session) Create a new session from the corpus template (if it exists) This method will also add the session to the specified corpus.getSessionTemplate(String corpus) Get the Session template for the given corpus.voidsaveSessionTemplate(String corpus, Session template) Save the Session template for the given corpus.
-
Method Details
-
getSessionTemplate
Get the Session template for the given corpus.- Parameters:
corpus-- Returns:
- session template or
nullif not found - Throws:
IOException
-
saveSessionTemplate
Save the Session template for the given corpus.- Parameters:
corpus-template-- Throws:
IOException
-
createSessionFromTemplate
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
-