Class SearchConfig


  • public class SearchConfig
    extends java.lang.Object
    Defines the options to search for a digital asset
    Since:
    2.0.0
    • Constructor Detail

      • SearchConfig

        public SearchConfig()
    • Method Detail

      • getSorts

        public java.util.List<SortBy> getSorts()
        A sorted searching result have to order by fields which are appropriate to list of SortBy
        Returns:
        a list of available SortBy
      • setFeatures

        public void setFeatures​(java.util.List<SearchFeature> features)
        KEYWORD is mandatory search feature and no need to configured
        Parameters:
        features - - searching futures. In case of no feature, there should be an empty list instead of null
      • setSorts

        public void setSorts​(java.util.List<SortBy> sorts)
        Parameters:
        sorts - In case of no sorts, there should be an empty list instead of null
      • getDefault

        public static SearchConfig getDefault()
        Returns:
        Default SearchConfig with all SortBy and SearchFeature