57 DaoSearchKey dsk = dhs.get(
"search-value");
59 String search = dsk.getValue();
60 removeIf(pg -> !Strings.findsIgnoreCase(pg.getTitle(), search));
62 dsk = dhs.get(
"minimis");
64 String minimis = dsk.getValue();
66 if(
"minimis".equals(minimis)) {
67 return !pg.isMinimis();
68 }
else if(
"nominimis".equals(minimis)) {
69 return pg.isMinimis();
75 dsk = dhs.get(
"grant");
77 String grant = dsk.getValue();
79 if(
"subvention".equals(grant)) {
80 return !pg.isSubvention();
81 }
else if(
"loan".equals(grant)) {
83 }
else if(
"combination".equals(grant)) {
84 return !pg.isLoan() && !pg.isSubvention();
90 dsk = dhs.get(
"collab");
92 String collab = dsk.getValue();
94 if(
"collaboration".equals(collab)) {
95 return !pg.isCollaboration();
96 }
else if(
"individual".equals(collab)) {
97 return pg.isCollaboration();
103 dsk = dhs.get(
"micro");
105 String micro = dsk.getValue();
106 removeIf(pg ->
"true".equals(micro) && !pg.isMicro());
108 dsk = dhs.get(
"small");
110 String small = dsk.getValue();
111 removeIf(pg ->
"true".equals(small) && !pg.isSmall());
113 dsk = dhs.get(
"medium");
115 String medium = dsk.getValue();
116 removeIf(pg ->
"true".equals(medium) && !pg.isMedium());
118 dsk = dhs.get(
"big");
120 String big = dsk.getValue();
121 removeIf(pg ->
"true".equals(big) && !pg.isBig());
123 dsk = dhs.get(
"hiring");
125 String hiring = dsk.getValue();
126 removeIf(pg ->
"true".equals(hiring) && !pg.isHiring());
128 dsk = dhs.get(
"idi");
130 String idi = dsk.getValue();
131 removeIf(pg ->
"true".equals(idi) && !pg.isIdi());
133 dsk = dhs.get(
"investment");
135 String investment = dsk.getValue();
136 removeIf(pg ->
"true".equals(investment) && !pg.isInvestment());
138 dsk = dhs.get(
"start-up");
140 String startup = dsk.getValue();
141 removeIf(pg ->
"true".equals(startup) && !pg.isStartUp());
143 dsk = dhs.get(
"deadline");
145 String deadline = dsk.getValue();
147 if(pg.getEndDate() !=
null) {
148 if(
"active".equals(deadline)) {
149 return Time.from(pg.getEndDate()).isBefore(Instant.now());
150 }
else if(
"ended".equals(deadline)) {
151 return Time.from(pg.getEndDate()).isAfter(Instant.now());
152 }
else if(
"recurrent".equals(deadline)) {
153 return pg.isRecurrent();