217de900f5498f2d13ea1cbbdada480ad6b0a6f8
[jalview.git] / src / jalview / ws / params / ParamDatastoreI.java
1 package jalview.ws.params;
2
3 import java.io.IOException;
4 import java.util.List;
5
6 public interface ParamDatastoreI 
7 {
8
9   public List<WsParamSetI> getPresets();
10
11   public WsParamSetI getPreset(String name);
12
13   public List<ArgumentI> getServiceParameters();
14
15   public boolean presetExists(String name);
16
17   public void deletePreset(String name);
18
19   /**
20    * writes or overwrites the record for a modifiable WsParamSetI entry in the datastore.
21    * @param presetName
22    * @param text
23    * @param jobParams
24    * may throw an illegal argument RunTimeException if the presetName overwrites an existing, unmodifiable preset.
25    */
26   public void storePreset(String presetName, String text,
27           List<ArgumentI> jobParams);
28
29   public boolean readParamSet(WsParamSetI wsp, java.io.Reader reader)
30           throws IOException;
31
32   public boolean writeParamSet(WsParamSetI wsp, java.io.Writer writer)
33           throws IOException;
34
35 }