Package de.unirostock.sems.cbarchive.web
Class WorkspaceManager
- java.lang.Object
-
- de.unirostock.sems.cbarchive.web.WorkspaceManager
-
public class WorkspaceManager extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Workspace
createWorkspace()
static WorkspaceManager
getInstance()
Workspace
getWorkspace(String workspaceId)
boolean
hasWorkspace(String workspaceId)
void
removeWorkspace(Workspace workspace)
void
storeSettings()
stores the settings immediately to diskvoid
updateStorage()
Checks if the time for the store cycle exceeded and runs the store process, if necessary
-
-
-
Method Detail
-
getInstance
public static final WorkspaceManager getInstance()
-
hasWorkspace
public boolean hasWorkspace(String workspaceId)
-
createWorkspace
public Workspace createWorkspace() throws IOException
- Throws:
IOException
-
removeWorkspace
public void removeWorkspace(Workspace workspace)
-
updateStorage
public void updateStorage()
Checks if the time for the store cycle exceeded and runs the store process, if necessary
-
storeSettings
public void storeSettings()
stores the settings immediately to disk
-
-