X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Ffts%2Fapi%2FFTSRestClientI.java;h=13e73ef9f1e7df86efe7dee12c000d3c74f29a20;hb=011df19c7cd01c6355a885fb0c2fff33a236d6ff;hp=3701c76dfafa4965543936ff495331c06a40d225;hpb=2051c117e19e8b7c72bf5a9f1db48f2b4687f71e;p=jalview.git diff --git a/src/jalview/fts/api/FTSRestClientI.java b/src/jalview/fts/api/FTSRestClientI.java index 3701c76..13e73ef 100644 --- a/src/jalview/fts/api/FTSRestClientI.java +++ b/src/jalview/fts/api/FTSRestClientI.java @@ -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,9 +87,9 @@ public interface FTSRestClientI public String getDataColumnsFieldsAsCommaDelimitedString( Collection wantedFields); - /** - * Fetch index of the primary key column for the dynamic table + * 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 @@ -102,7 +102,7 @@ public interface FTSRestClientI public int getPrimaryKeyColumIndex( Collection wantedFields, boolean hasRefSeq) throws Exception; - + /** * Fetch the primary key data column object * @@ -138,5 +138,6 @@ public interface FTSRestClientI * @return the default response page size */ public int getDefaultResponsePageSize(); -} + public String[] getPreferencesColumnsFor(PreferenceSource source); +}