X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fws%2Fparams%2FParamManager.java;h=44f7551e51aac3bbc4a09ba06fab1a876e451d0c;hb=797df64fa2a0a30773d0f48f5494d4155e5a8be3;hp=828d76ef03df4c198686332f2ff05cc63898b64a;hpb=85037c7f026acf289a22eaf0bd0d368351b5905e;p=jalview.git diff --git a/src/jalview/ws/params/ParamManager.java b/src/jalview/ws/params/ParamManager.java index 828d76e..44f7551 100644 --- a/src/jalview/ws/params/ParamManager.java +++ b/src/jalview/ws/params/ParamManager.java @@ -1,20 +1,71 @@ +/* + * Jalview - A Sequence Alignment Editor and Viewer (Version 2.7) + * Copyright (C) 2011 J Procter, AM Waterhouse, J Engelhardt, LM Lui, G Barton, M Clamp, S Searle + * + * This file is part of Jalview. + * + * Jalview is free software: you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. + * + * Jalview is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty + * of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with Jalview. If not, see . + */ package jalview.ws.params; + +import jalview.ws.jws2.dm.JabaWsParamSet; + /** - * Interface implemented by classes for maintaining user's parameters in a Jalview session + * Interface implemented by classes for maintaining user's parameters in a + * Jalview session + * * @author JimP - * + * */ public interface ParamManager { /** * - * @param name (may be null) select parameter sets with given name - * @param serviceUrl (may be null) select parameter sets that are applicable for the given URL - * @param modifiable - if true, return modifiable parameter sets - * @param unmodifiable - if true, return server presets + * @param name + * (may be null) select parameter sets with given name + * @param serviceUrl + * (may be null) select parameter sets that are applicable for the + * given URL + * @param modifiable + * - if true, return modifiable parameter sets + * @param unmodifiable + * - if true, return server presets * @return null if no parameters found, or one or more parameter sets */ - public abstract WsParamSetI[] getParameterSet(String name, String serviceUrl, boolean modifiable,boolean unmodifiable); - + public WsParamSetI[] getParameterSet(String name, String serviceUrl, + boolean modifiable, boolean unmodifiable); + + /** + * save the given parameter set in the user's parameter set database. Note: + * this may result in a modal dialog box being raised. + * + * @param parameterSet + */ + public void storeParameterSet(WsParamSetI parameterSet); + + /** + * delete the specified parameter set from the database. Note: this may result + * in a modal dialog box being raised. + * + * @param parameterSet + */ + public void deleteParameterSet(WsParamSetI parameterSet); + + /** + * register a parser for the given host url + * + * @param hosturl + * @param jabaParamStore + */ + public void registerParser(String hosturl, ParamDatastoreI paramdataStore); }