JAL-3829 3d-beacons structure chooser logic (not yet finished)
[jalview.git] / src / jalview / fts / api / FTSRestClientI.java
index 3701c76..31d5c7c 100644 (file)
@@ -22,6 +22,7 @@
 package jalview.fts.api;
 
 import jalview.fts.api.FTSDataColumnI.FTSDataColumnGroupI;
+import jalview.fts.core.FTSDataColumnPreferences.PreferenceSource;
 import jalview.fts.core.FTSRestRequest;
 import jalview.fts.core.FTSRestResponse;
 
@@ -74,7 +75,6 @@ public interface FTSRestClientI
   public FTSDataColumnI getDataColumnByNameOrCode(String nameOrCode)
           throws Exception;
 
-
   /**
    * Convert collection of FTSDataColumnI objects to a comma delimited string of
    * the 'code' values
@@ -87,10 +87,9 @@ public interface FTSRestClientI
   public String getDataColumnsFieldsAsCommaDelimitedString(
           Collection<FTSDataColumnI> wantedFields);
 
-
   /**
    * Fetch index of the primary key column for the dynamic table
-   * 
+   * TODO: consider removing 'hasRefSeq' - never used in code
    * @param wantedFields
    *          the available table columns
    * @param hasRefSeq
@@ -102,7 +101,7 @@ public interface FTSRestClientI
   public int getPrimaryKeyColumIndex(
           Collection<FTSDataColumnI> wantedFields, boolean hasRefSeq)
           throws Exception;
-          
+
   /**
    * Fetch the primary key data column object
    * 
@@ -138,5 +137,6 @@ public interface FTSRestClientI
    * @return the default response page size
    */
   public int getDefaultResponsePageSize();
-}
 
+  public String[] getPreferencesColumnsFor(PreferenceSource source);
+}