X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fjalview%2Ffts%2Fapi%2FFTSRestClientI.java;h=13e73ef9f1e7df86efe7dee12c000d3c74f29a20;hb=daca035ea0a7379b3f5332aceb19bcb41f7038b3;hp=2266ca0340e66108eaf99d1fe3ccf7c3598ac11c;hpb=007af0c9001900071f6d8e9214143f79e10f4938;p=jalview.git diff --git a/src/jalview/fts/api/FTSRestClientI.java b/src/jalview/fts/api/FTSRestClientI.java index 2266ca0..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 * @@ -115,7 +115,7 @@ public interface FTSRestClientI * * @return list of columns to display by default */ - public Collection getAllDefaulDisplayedDataColumns(); + public Collection getAllDefaultDisplayedFTSDataColumns(); /** * Return list of FTSDataColumnI objects that can be used to perform a search @@ -138,5 +138,6 @@ public interface FTSRestClientI * @return the default response page size */ public int getDefaultResponsePageSize(); -} + public String[] getPreferencesColumnsFor(PreferenceSource source); +}