package org.pdxfinder.services.search;

import org.pdxfinder.services.ds.ModelForQuery;

import java.util.HashSet;
import java.util.Set;

/*
 * Created by csaba on 20/11/2018.
 */
public class OneParamSearch extends GeneralSearch{


    Set<ModelForQuery> models;

    public OneParamSearch(String name, String urlParam, Set<ModelForQuery> models) {
        super(name, urlParam);
        this.models = models;
    }

    public Set<ModelForQuery> getModels() {
        return models;
    }

    public void setModels(Set<ModelForQuery> models) {
        this.models = models;
    }



    public Set<Long> search(String param1){

        //TODO: Implement search logic on single selected parameter
        return new HashSet<>();
    }


}

@@ -125,19 +125,78 @@
 va.util.
-Set
+List;%0Aimport java.util.Set;%0Aimport java.util.function.Function
 ;%0A%0A/*%0A *
@@ -288,39 +288,65 @@
 h%7B%0A%0A
-%0A
     
-Set%3CModelForQuery%3E models;
+//static Function a = ModelForQuery::getPatientAge;%0A%0A
 %0A%0A  
@@ -401,35 +401,8 @@
 aram
-, Set%3CModelForQuery%3E models
 ) %7B%0A
@@ -440,39 +440,11 @@
     
-    this.models = models;%0A    %7D
+%7D%0A%0A
 %0A%0A  
@@ -475,187 +475,79 @@
 ry%3E 
-getModels() %7B%0A        return models;%0A    %7D%0A%0A    public void setModels(Set%3CModelForQuery%3E models) %7B%0A        this.models = models;%0A    %7D%0A%0A%0A%0A    public Set%3CLong%3E search(String param1
+search(List%3CString%3E param, List%3CModelForQuery%3E mfq, Function searchFunc
 )%7B%0A%0A

Remove MFQ from search object