1 | package eu.clarin.cmdi.vlo.config; |
---|
2 | |
---|
3 | import java.net.URI; |
---|
4 | import java.util.ArrayList; |
---|
5 | import java.util.Collection; |
---|
6 | import java.util.List; |
---|
7 | import java.util.Set; |
---|
8 | import javax.xml.bind.annotation.XmlElement; |
---|
9 | import javax.xml.bind.annotation.XmlElementWrapper; |
---|
10 | import javax.xml.bind.annotation.XmlRootElement; |
---|
11 | |
---|
12 | /** |
---|
13 | * VLO configuration |
---|
14 | * |
---|
15 | * @author keeloo, twagoo |
---|
16 | */ |
---|
17 | @XmlRootElement(name = "VloConfig") |
---|
18 | public class VloConfig { |
---|
19 | |
---|
20 | public static final String LANGUAGE_LINK_TEMPLATE_LANGUAGE_CODE_PLACEHOLDER = "{}"; |
---|
21 | public static final String DEFAULT_FACET_CONCEPTS_RESOURCE_FILE = "/facetConcepts.xml"; |
---|
22 | |
---|
23 | /* |
---|
24 | * VLO application parameter members<br><br> |
---|
25 | * |
---|
26 | * Please Initialise the annotated members in a proper way. This will allow |
---|
27 | * them to be linearised to corresponding elements in an XML file. |
---|
28 | * |
---|
29 | * Please refer to the general VLO documentation for a description of the |
---|
30 | * member parameters. |
---|
31 | */ |
---|
32 | // page cache related parameters |
---|
33 | private int pagesInApplicationCache = 0; |
---|
34 | |
---|
35 | private int sessionCacheSize = 0; |
---|
36 | |
---|
37 | // data base related parameters |
---|
38 | private String solrUrl = ""; |
---|
39 | |
---|
40 | // directive for Simple |
---|
41 | private boolean deleteAllFirst = false; |
---|
42 | |
---|
43 | private int maxDocsInList = 0; |
---|
44 | |
---|
45 | private int minDocsInSolrQueue = 0; |
---|
46 | |
---|
47 | //(required = false) |
---|
48 | private int solrTimeOut = 0; |
---|
49 | |
---|
50 | @XmlElementWrapper(name = "dataRoots") |
---|
51 | @XmlElement(name = "DataRoot") |
---|
52 | private List<DataRoot> dataRoot; |
---|
53 | |
---|
54 | private int maxFileSize = 0; |
---|
55 | |
---|
56 | private int maxDaysInSolr = 0; |
---|
57 | |
---|
58 | // mapping |
---|
59 | //(required = false) |
---|
60 | private String facetConceptsFile = ""; |
---|
61 | |
---|
62 | private String[] languageFilters = {"", "", ""}; |
---|
63 | |
---|
64 | private boolean printMapping = false; |
---|
65 | |
---|
66 | //(required = false) |
---|
67 | private String nationalProjectMapping = ""; |
---|
68 | |
---|
69 | private String organisationNamesUrl; |
---|
70 | |
---|
71 | private String languageNameVariantsUrl; |
---|
72 | |
---|
73 | private String licenseAvailabilityMapUrl; |
---|
74 | |
---|
75 | private String countryComponentUrl = ""; |
---|
76 | |
---|
77 | private String language2LetterCodeComponentUrl = ""; |
---|
78 | |
---|
79 | private String language3LetterCodeComponentUrl = ""; |
---|
80 | |
---|
81 | private String silToISO639CodesUrl = ""; |
---|
82 | |
---|
83 | // services |
---|
84 | private String federatedContentSearchUrl = ""; |
---|
85 | |
---|
86 | private boolean useHandleResolver = false; |
---|
87 | |
---|
88 | @XmlElement |
---|
89 | private String profileSchemaUrl = ""; |
---|
90 | |
---|
91 | private String componentRegistryRESTURL = ""; |
---|
92 | |
---|
93 | private String handleServerUrl = ""; |
---|
94 | |
---|
95 | @XmlElement |
---|
96 | private String imdiBrowserUrl = ""; |
---|
97 | |
---|
98 | private String languageLinkTemplate = ""; |
---|
99 | |
---|
100 | // web application user interface |
---|
101 | private int facetOverviewLength = 0; |
---|
102 | |
---|
103 | private String homeUrl = ""; |
---|
104 | |
---|
105 | private String helpUrl = ""; |
---|
106 | |
---|
107 | private String feedbackFromUrl = ""; |
---|
108 | |
---|
109 | private boolean showResultScores = false; |
---|
110 | |
---|
111 | private boolean processHierarchies = true; |
---|
112 | |
---|
113 | /** |
---|
114 | * A set of fields to be excluded from display<br><br> |
---|
115 | * |
---|
116 | * To let JAXB know it has to interpret the element as an array, use the |
---|
117 | * XmlElementWrapper directive. Use the directive to let JAXB know that the |
---|
118 | * elements inside 'facetFields' are named 'facetField'. |
---|
119 | */ |
---|
120 | @XmlElementWrapper(name = "ignoredFields") |
---|
121 | private Set<String> ignoredField; |
---|
122 | /** |
---|
123 | * An array of fields to be included as technical properties<br><br> |
---|
124 | * |
---|
125 | * To let JAXB know it has to interpret the element as an array, use the |
---|
126 | * XmlElementWrapper directive. Use the directive to let JAXB know that the |
---|
127 | * elements inside 'facetFields' are named 'facetField'. |
---|
128 | */ |
---|
129 | |
---|
130 | @XmlElementWrapper(name = "technicalFields") |
---|
131 | private Set<String> technicalField; |
---|
132 | |
---|
133 | @XmlElementWrapper(name = "searchResultFields") |
---|
134 | private Set<String> searchResultField; |
---|
135 | |
---|
136 | /** |
---|
137 | * An array of facetFields<br><br> |
---|
138 | * |
---|
139 | * To let JAXB know it has to interpret the facetFields element as an array, |
---|
140 | * use the XmlElementWrapper directive. Use the directive to let JAXB know |
---|
141 | * that the elements inside 'facetFields' are named 'facetField'. |
---|
142 | */ |
---|
143 | @XmlElementWrapper(name = "facetFields") |
---|
144 | private List<String> facetField = new ArrayList<String>(); |
---|
145 | |
---|
146 | @XmlElementWrapper(name = "simpleSearchFacetFields") |
---|
147 | private List<String> simpleSearchFacetField; |
---|
148 | |
---|
149 | private String collectionFacet; |
---|
150 | |
---|
151 | // test related parameters |
---|
152 | //(required = false) |
---|
153 | private String reverseProxyPrefix = ""; |
---|
154 | |
---|
155 | //(required = false) |
---|
156 | private String cqlEndpointFilter = ""; |
---|
157 | |
---|
158 | //(required = false) |
---|
159 | private String cqlEndpointAlternative = ""; |
---|
160 | |
---|
161 | private URI configLocation; |
---|
162 | |
---|
163 | /** |
---|
164 | * Get and set methods for web application parameter members<br><br> |
---|
165 | * |
---|
166 | * By using a get or set method, you can apply an operation to a parameter |
---|
167 | * here without the need to make changes in different parts of the |
---|
168 | * application. |
---|
169 | */ |
---|
170 | /** |
---|
171 | * Get the value of the pagesInApplicationCache parameter<br><br> |
---|
172 | * |
---|
173 | * The parameter represents the number of pages that Wicket will allow to be |
---|
174 | * stored in the application's cache. |
---|
175 | * |
---|
176 | * @return the value |
---|
177 | */ |
---|
178 | public int getPagesInApplicationCache() { |
---|
179 | return pagesInApplicationCache; |
---|
180 | } |
---|
181 | |
---|
182 | /** |
---|
183 | * Set the value of the pagesInApplicationCache parameter<br><br> |
---|
184 | * |
---|
185 | * The parameter represents the number of pages that Wicket will allow to be |
---|
186 | * stored in the application's cache. |
---|
187 | * |
---|
188 | * @param param the value |
---|
189 | */ |
---|
190 | public void setPagesInApplicationCache(int param) { |
---|
191 | pagesInApplicationCache = param; |
---|
192 | } |
---|
193 | |
---|
194 | /** |
---|
195 | * Get the value of the sessionCacheSize parameter<br><br> |
---|
196 | * |
---|
197 | * The parameter represents the size in kilobytes of the session page cache. |
---|
198 | * |
---|
199 | * @return the value |
---|
200 | */ |
---|
201 | public int getSessionCacheSize() { |
---|
202 | return sessionCacheSize; |
---|
203 | } |
---|
204 | |
---|
205 | /** |
---|
206 | * Set the value of the sessionCacheSize parameter<br><br> |
---|
207 | * |
---|
208 | * The parameter represents the size in megabytes of the session page cache. |
---|
209 | * |
---|
210 | * @param param the value |
---|
211 | */ |
---|
212 | public void setSessionCacheSize(int param) { |
---|
213 | sessionCacheSize = param; |
---|
214 | } |
---|
215 | |
---|
216 | /** |
---|
217 | * Get the value of the deleteAllFirst parameter<br><br> |
---|
218 | * |
---|
219 | * For a description of the parameter, refer to the general VLO |
---|
220 | * documentation. |
---|
221 | * |
---|
222 | * @return the value |
---|
223 | */ |
---|
224 | public boolean getDeleteAllFirst() { |
---|
225 | return deleteAllFirst; |
---|
226 | } |
---|
227 | |
---|
228 | /** |
---|
229 | * Set the value of the deleteAllFirst parameter<br><br> |
---|
230 | * |
---|
231 | * For a description of the parameter, refer to the general VLO |
---|
232 | * documentation. |
---|
233 | * |
---|
234 | * @param param the value |
---|
235 | */ |
---|
236 | public void setDeleteAllFirst(boolean param) { |
---|
237 | deleteAllFirst = param; |
---|
238 | } |
---|
239 | |
---|
240 | /** |
---|
241 | * Get the value of the maxDocsInList parameter<br><br> |
---|
242 | * |
---|
243 | * For a description of the parameter, refer to the general VLO |
---|
244 | * documentation. |
---|
245 | * |
---|
246 | * @return the value |
---|
247 | */ |
---|
248 | public int getMaxDocsInList() { |
---|
249 | return maxDocsInList; |
---|
250 | } |
---|
251 | |
---|
252 | /** |
---|
253 | * Set the value of the maxDocsInList parameter<br><br> |
---|
254 | * |
---|
255 | * For a description of the parameter, refer to the general VLO |
---|
256 | * documentation. |
---|
257 | * |
---|
258 | * @param param the value |
---|
259 | */ |
---|
260 | public void setMaxDocsInList(int param) { |
---|
261 | maxDocsInList = param; |
---|
262 | } |
---|
263 | |
---|
264 | /** |
---|
265 | * Get the value of the minDocsInSolrQueue parameter<br><br> |
---|
266 | * |
---|
267 | * For a description of the parameter, refer to the general VLO |
---|
268 | * documentation. |
---|
269 | * |
---|
270 | * @return the value |
---|
271 | */ |
---|
272 | public int getMinDocsInSolrQueue() { |
---|
273 | return minDocsInSolrQueue; |
---|
274 | } |
---|
275 | |
---|
276 | /** |
---|
277 | * Set the value of the minDocsInSolrQueue parameter<br><br> |
---|
278 | * |
---|
279 | * For a description of the parameter, refer to the general VLO |
---|
280 | * documentation. |
---|
281 | * |
---|
282 | * @param param the value |
---|
283 | */ |
---|
284 | public void setMinDocsInSolrQueue(int param) { |
---|
285 | minDocsInSolrQueue = param; |
---|
286 | } |
---|
287 | |
---|
288 | /** |
---|
289 | * Get the value of the solrTimeOut parameter<br><br> |
---|
290 | * |
---|
291 | * For a description of the parameter, refer to the general VLO |
---|
292 | * documentation. |
---|
293 | * |
---|
294 | * @return the value |
---|
295 | */ |
---|
296 | public int getSolrTimeOut() { |
---|
297 | return solrTimeOut; |
---|
298 | } |
---|
299 | |
---|
300 | /** |
---|
301 | * Set the value of the solrTimeOut parameter<br><br> |
---|
302 | * |
---|
303 | * For a description of the parameter, refer to the general VLO |
---|
304 | * documentation. |
---|
305 | * |
---|
306 | * @param param the value |
---|
307 | */ |
---|
308 | public void setSolrTimeOut(int param) { |
---|
309 | solrTimeOut = param; |
---|
310 | } |
---|
311 | |
---|
312 | /** |
---|
313 | * Get the value of the maxFileSize parameter<br><br> |
---|
314 | * |
---|
315 | * For a description of the parameter, refer to the general VLO |
---|
316 | * documentation. |
---|
317 | * |
---|
318 | * @return the value |
---|
319 | */ |
---|
320 | public int getMaxFileSize() { |
---|
321 | return maxFileSize; |
---|
322 | } |
---|
323 | |
---|
324 | /** |
---|
325 | * Set the value of the maxFileSize parameter<br><br> |
---|
326 | * |
---|
327 | * For a description of the parameter, refer to the general VLO |
---|
328 | * documentation. |
---|
329 | * |
---|
330 | * @param param the value |
---|
331 | */ |
---|
332 | public void setMaxFileSize(int param) { |
---|
333 | maxFileSize = param; |
---|
334 | } |
---|
335 | |
---|
336 | /** |
---|
337 | * Get the value of the maxDaysInSolr parameter<br><br> |
---|
338 | * |
---|
339 | * If the parameter is larger than 0, it denotes the maximal number of days |
---|
340 | * that a document can remain in the database. |
---|
341 | * |
---|
342 | * @return the value |
---|
343 | */ |
---|
344 | public int getMaxDaysInSolr() { |
---|
345 | return maxDaysInSolr; |
---|
346 | } |
---|
347 | |
---|
348 | /** |
---|
349 | * Set the value of the maxDaysInSolr parameter<br><br> |
---|
350 | * |
---|
351 | * If the parameter is larger than 0, it denotes the maximal number of days |
---|
352 | * that a document can remain in the database. |
---|
353 | * |
---|
354 | * @param param the value |
---|
355 | */ |
---|
356 | public void setMaxDaysInSolr(int param) { |
---|
357 | maxDaysInSolr = param; |
---|
358 | } |
---|
359 | |
---|
360 | /** |
---|
361 | * Get the value of the useHandleResolver parameter<br><br> |
---|
362 | * |
---|
363 | * The parameter can be used to reject meta data files that exceed some |
---|
364 | * maximum size. |
---|
365 | * |
---|
366 | * @return the value |
---|
367 | */ |
---|
368 | public boolean getUseHandleResolver() { |
---|
369 | return useHandleResolver; |
---|
370 | } |
---|
371 | |
---|
372 | /** |
---|
373 | * Set the value of the useHandleResolver parameter<br><br> |
---|
374 | * |
---|
375 | * For a description of the parameter, refer to the general VLO |
---|
376 | * documentation. |
---|
377 | * |
---|
378 | * @param param the value |
---|
379 | */ |
---|
380 | public void setUseHandleResolver(boolean param) { |
---|
381 | useHandleResolver = param; |
---|
382 | } |
---|
383 | |
---|
384 | /** |
---|
385 | * Get the list of dataRoots parameters<br><br> |
---|
386 | * |
---|
387 | * For a description of the parameter, refer to the general VLO |
---|
388 | * documentation. |
---|
389 | * |
---|
390 | * @return the value |
---|
391 | */ |
---|
392 | public List<DataRoot> getDataRoots() { |
---|
393 | return dataRoot; |
---|
394 | } |
---|
395 | |
---|
396 | /** |
---|
397 | * Set the value of a list of dataRoots parameters<br><br> |
---|
398 | * |
---|
399 | * For a description of the parameter, refer to the general VLO |
---|
400 | * documentation. |
---|
401 | * |
---|
402 | * @param param the value |
---|
403 | */ |
---|
404 | public void setDataRoots(List<DataRoot> param) { |
---|
405 | dataRoot = param; |
---|
406 | } |
---|
407 | |
---|
408 | /** |
---|
409 | * Get the value of the printMapping parameter<br><br> |
---|
410 | * |
---|
411 | * For a description of the parameter, refer to the general VLO |
---|
412 | * documentation. |
---|
413 | * |
---|
414 | * @return the value |
---|
415 | */ |
---|
416 | public boolean printMapping() { |
---|
417 | return printMapping; |
---|
418 | } |
---|
419 | |
---|
420 | /** |
---|
421 | * Set the value of the printMapping parameter<br><br> |
---|
422 | * |
---|
423 | * For a description of the parameter, refer to the general VLO |
---|
424 | * documentation. |
---|
425 | * |
---|
426 | * @param param the value |
---|
427 | */ |
---|
428 | public void setPrintMapping(boolean param) { |
---|
429 | printMapping = param; |
---|
430 | } |
---|
431 | |
---|
432 | /** |
---|
433 | * Get the value of the VloHomeLink parameter<br><br> |
---|
434 | * |
---|
435 | * For a description of the parameter, refer to the general VLO |
---|
436 | * documentation. |
---|
437 | * |
---|
438 | * @return the value |
---|
439 | */ |
---|
440 | public String getHomeUrl() { |
---|
441 | return homeUrl; |
---|
442 | } |
---|
443 | |
---|
444 | /** |
---|
445 | * Set the value of the VloHomeLink parameter<br><br> |
---|
446 | * |
---|
447 | * For a description of the parameter, refer to the general VLO |
---|
448 | * documentation. |
---|
449 | * |
---|
450 | * @param param the value |
---|
451 | */ |
---|
452 | public void setHomeUrl(String param) { |
---|
453 | homeUrl = param; |
---|
454 | } |
---|
455 | |
---|
456 | /** |
---|
457 | * Get the value of the helpUrl parameter<br><br> |
---|
458 | * |
---|
459 | * For a description of the parameter, refer to the general VLO |
---|
460 | * documentation. |
---|
461 | * |
---|
462 | * @return the value |
---|
463 | */ |
---|
464 | public String getHelpUrl() { |
---|
465 | return helpUrl; |
---|
466 | } |
---|
467 | |
---|
468 | /** |
---|
469 | * Set the value of the helpUrl parameter<br><br> |
---|
470 | * |
---|
471 | * For a description of the parameter, refer to the general VLO |
---|
472 | * documentation. |
---|
473 | * |
---|
474 | * @param param the value |
---|
475 | */ |
---|
476 | public void setHelpUrl(String param) { |
---|
477 | helpUrl = param; |
---|
478 | } |
---|
479 | |
---|
480 | /** |
---|
481 | * Get the value of the SolrUrl parameter<br><br> |
---|
482 | * |
---|
483 | * For a description of the parameter, refer to the general VLO |
---|
484 | * documentation. |
---|
485 | * |
---|
486 | * @return the value |
---|
487 | */ |
---|
488 | public String getSolrUrl() { |
---|
489 | return solrUrl; |
---|
490 | } |
---|
491 | |
---|
492 | /** |
---|
493 | * Set the value of the SolrUrl parameter<br><br> |
---|
494 | * |
---|
495 | * For a description of the parameter, refer to the general VLO |
---|
496 | * documentation. |
---|
497 | * |
---|
498 | * @param param the value |
---|
499 | */ |
---|
500 | public void setSolrUrl(String param) { |
---|
501 | solrUrl = param; |
---|
502 | } |
---|
503 | |
---|
504 | /** |
---|
505 | * Get the value of the facetConceptsFile parameter<br><br> |
---|
506 | * |
---|
507 | * For a description of the parameter, refer to the general VLO |
---|
508 | * documentation. |
---|
509 | * |
---|
510 | * @return the value |
---|
511 | */ |
---|
512 | public String getFacetConceptsFile() { |
---|
513 | return facetConceptsFile; |
---|
514 | } |
---|
515 | |
---|
516 | /** |
---|
517 | * Set the value of the facetConceptsFile parameter<br><br> |
---|
518 | * |
---|
519 | * For a description of the parameter, refer to the general VLO |
---|
520 | * documentation. |
---|
521 | * |
---|
522 | * @param param the value |
---|
523 | */ |
---|
524 | public void setFacetConceptsFile(String param) { |
---|
525 | facetConceptsFile = param; |
---|
526 | } |
---|
527 | |
---|
528 | /** |
---|
529 | * Get the value of the ProfileSchemaUrl by profileId parameter<br><br> |
---|
530 | * |
---|
531 | * For a description of the schema, refer to the general VLO documentation. |
---|
532 | * Note: the profileId needs to be expanded. |
---|
533 | * |
---|
534 | * @return the value |
---|
535 | */ |
---|
536 | public String getComponentRegistryProfileSchema(String id) { |
---|
537 | return profileSchemaUrl.replace("{PROFILE_ID}", id); |
---|
538 | } |
---|
539 | |
---|
540 | /** |
---|
541 | * Set the value of the ProfileSchemaUrl parameter<br><br> |
---|
542 | * |
---|
543 | * For a description of the schema, refer to the general VLO documentation. |
---|
544 | * Note: the profileId needs to be expanded. |
---|
545 | * |
---|
546 | * @param param the value |
---|
547 | */ |
---|
548 | public void setComponentRegistryProfileSchema(String param) { |
---|
549 | profileSchemaUrl = param; |
---|
550 | } |
---|
551 | |
---|
552 | /** |
---|
553 | * Get the value of the ComponentRegisteryRESTURL parameter<br><br> |
---|
554 | * |
---|
555 | * For a description of the parameter, refer to the general VLO |
---|
556 | * documentation. |
---|
557 | * |
---|
558 | * @return the value |
---|
559 | */ |
---|
560 | public String getComponentRegistryRESTURL() { |
---|
561 | return componentRegistryRESTURL; |
---|
562 | } |
---|
563 | |
---|
564 | /** |
---|
565 | * Set the value of the ComponentRegisteryRESTURL parameter<br><br> |
---|
566 | * |
---|
567 | * For a description of the parameter, refer to the general VLO |
---|
568 | * documentation. |
---|
569 | * |
---|
570 | * @param param the value |
---|
571 | */ |
---|
572 | public void setComponentRegistryRESTURL(String param) { |
---|
573 | componentRegistryRESTURL = param; |
---|
574 | } |
---|
575 | |
---|
576 | /** |
---|
577 | * Get the value of the HandleServerUrl parameter<br><br> |
---|
578 | * |
---|
579 | * For a description of the parameter, refer to the general VLO |
---|
580 | * documentation. |
---|
581 | * |
---|
582 | * @return the value |
---|
583 | */ |
---|
584 | public String getHandleServerUrl() { |
---|
585 | return handleServerUrl; |
---|
586 | } |
---|
587 | |
---|
588 | /** |
---|
589 | * Set the value of the HandleServerUrl parameter<br><br> |
---|
590 | * |
---|
591 | * For a description of the parameter, refer to the general VLO |
---|
592 | * documentation. |
---|
593 | * |
---|
594 | * @param param the value |
---|
595 | */ |
---|
596 | public void setHandleServerUrl(String param) { |
---|
597 | handleServerUrl = param; |
---|
598 | } |
---|
599 | |
---|
600 | /** |
---|
601 | * Get the value of the languageLinkPrefix parameter<br><br> |
---|
602 | * |
---|
603 | * For a description of the parameter, refer to the general VLO |
---|
604 | * documentation. |
---|
605 | * |
---|
606 | * @return the value |
---|
607 | * @see #LANGUAGE_LINK_TEMPLATE_LANGUAGE_CODE_PLACEHOLDER |
---|
608 | */ |
---|
609 | public String getLanguageLinkTemplate() { |
---|
610 | return languageLinkTemplate; |
---|
611 | } |
---|
612 | |
---|
613 | /** |
---|
614 | * Set the value of the languageLinkPrefix parameter<br><br> |
---|
615 | * |
---|
616 | * For a description of the parameter, refer to the general VLO |
---|
617 | * documentation. |
---|
618 | * |
---|
619 | * @param param the value |
---|
620 | * @see #LANGUAGE_LINK_TEMPLATE_LANGUAGE_CODE_PLACEHOLDER |
---|
621 | */ |
---|
622 | public void setLanguageLinkTemplate(String param) { |
---|
623 | languageLinkTemplate = param; |
---|
624 | } |
---|
625 | |
---|
626 | /** |
---|
627 | * Get the value of the feedbackFromUrl parameter<br><br> |
---|
628 | * |
---|
629 | * For a description of the parameter, refer to the general VLO |
---|
630 | * documentation. |
---|
631 | * |
---|
632 | * @return the value |
---|
633 | */ |
---|
634 | public String getFeedbackFromUrl() { |
---|
635 | return feedbackFromUrl; |
---|
636 | } |
---|
637 | |
---|
638 | /** |
---|
639 | * Set the value of the feedbackFromUrl parameter<br><br> |
---|
640 | * |
---|
641 | * For a description of the parameter, refer to the general VLO |
---|
642 | * documentation. |
---|
643 | * |
---|
644 | * @param param the value |
---|
645 | */ |
---|
646 | public void setFeedbackFromUrl(String param) { |
---|
647 | feedbackFromUrl = param; |
---|
648 | } |
---|
649 | |
---|
650 | /** |
---|
651 | * Get the value of the FederatedContentSearchUrl parameter<br><br> |
---|
652 | * |
---|
653 | * For a description of the parameter, refer to the general VLO |
---|
654 | * documentation. |
---|
655 | * |
---|
656 | * @return the value |
---|
657 | */ |
---|
658 | @XmlElement(name = "FederatedContentSearchUrl") |
---|
659 | public String getFederatedContentSearchUrl() { |
---|
660 | return federatedContentSearchUrl; |
---|
661 | } |
---|
662 | |
---|
663 | /** |
---|
664 | * Set the value of the FederatedContentSearchUrl parameter<br><br> |
---|
665 | * |
---|
666 | * For a description of the parameter, refer to the general VLO |
---|
667 | * documentation. |
---|
668 | * |
---|
669 | * @param param the value |
---|
670 | */ |
---|
671 | public void setFederatedContentSearchUrl(String param) { |
---|
672 | federatedContentSearchUrl = param; |
---|
673 | } |
---|
674 | |
---|
675 | /** |
---|
676 | * Get the value of the NationalProjectMapping parameter<br><br> |
---|
677 | * |
---|
678 | * For a description of the parameter, refer to the general VLO |
---|
679 | * documentation. |
---|
680 | * |
---|
681 | * @return the value |
---|
682 | */ |
---|
683 | public String getNationalProjectMapping() { |
---|
684 | return nationalProjectMapping; |
---|
685 | } |
---|
686 | |
---|
687 | /** |
---|
688 | * Set the value of the NationalProjectMapping parameter<br><br> |
---|
689 | * |
---|
690 | * For a description of the parameter, refer to the general VLO |
---|
691 | * documentation. |
---|
692 | * |
---|
693 | * @param nationalProjectMapping the value |
---|
694 | */ |
---|
695 | public void setNationalProjectMapping(String param) { |
---|
696 | nationalProjectMapping = param; |
---|
697 | } |
---|
698 | |
---|
699 | /** |
---|
700 | * Get the value of the FacetFields parameter<br><br> |
---|
701 | * |
---|
702 | * For a description of the parameter, refer to the general VLO |
---|
703 | * documentation. |
---|
704 | * |
---|
705 | * @return the value |
---|
706 | */ |
---|
707 | public List<String> getFacetFields() { |
---|
708 | return facetField; |
---|
709 | } |
---|
710 | |
---|
711 | public List<String> getSimpleSearchFacetFields() { |
---|
712 | return simpleSearchFacetField; |
---|
713 | } |
---|
714 | |
---|
715 | public void setSimpleSearchFacetFields(List<String> simpleSearchFacetField) { |
---|
716 | this.simpleSearchFacetField = simpleSearchFacetField; |
---|
717 | } |
---|
718 | |
---|
719 | /** |
---|
720 | * |
---|
721 | * @return all facet fields, including collection facet (arbitrary order |
---|
722 | * unspecified) |
---|
723 | * @see #getFacetFields() |
---|
724 | * @see #getCollectionFacet() |
---|
725 | */ |
---|
726 | public List<String> getAllFacetFields() { |
---|
727 | final ArrayList<String> allFacets = new ArrayList<String>(facetField); |
---|
728 | final String collection = getCollectionFacet(); |
---|
729 | if (collection != null) { |
---|
730 | allFacets.add(collection); |
---|
731 | } |
---|
732 | return allFacets; |
---|
733 | } |
---|
734 | |
---|
735 | /** |
---|
736 | * Set the value of the FacetFields parameter<br><br> |
---|
737 | * |
---|
738 | * For a description of the parameter, refer to the general VLO |
---|
739 | * documentation. |
---|
740 | * |
---|
741 | * @param param the value, a list of facet fields |
---|
742 | */ |
---|
743 | public void setFacetFields(List<String> param) { |
---|
744 | facetField = param; |
---|
745 | } |
---|
746 | |
---|
747 | public Collection<String> getSearchResultFields() { |
---|
748 | return searchResultField; |
---|
749 | } |
---|
750 | |
---|
751 | public void setSearchResultFields(Set<String> searchResultField) { |
---|
752 | this.searchResultField = searchResultField; |
---|
753 | } |
---|
754 | |
---|
755 | /** |
---|
756 | * |
---|
757 | * @return the name of the facet that represents the collection a resource |
---|
758 | * belongs to |
---|
759 | */ |
---|
760 | public String getCollectionFacet() { |
---|
761 | return collectionFacet; |
---|
762 | } |
---|
763 | |
---|
764 | /** |
---|
765 | * |
---|
766 | * @param collectionFacet the name of the facet that represents the |
---|
767 | * collection a resource belongs to |
---|
768 | */ |
---|
769 | public void setCollectionFacet(String collectionFacet) { |
---|
770 | this.collectionFacet = collectionFacet; |
---|
771 | } |
---|
772 | |
---|
773 | public Set<String> getIgnoredFields() { |
---|
774 | return ignoredField; |
---|
775 | } |
---|
776 | |
---|
777 | public void setIgnoredFields(Set<String> ignoredFields) { |
---|
778 | this.ignoredField = ignoredFields; |
---|
779 | } |
---|
780 | |
---|
781 | public Set<String> getTechnicalFields() { |
---|
782 | return technicalField; |
---|
783 | } |
---|
784 | |
---|
785 | public void setTechnicalFields(Set<String> technicalFields) { |
---|
786 | this.technicalField = technicalFields; |
---|
787 | } |
---|
788 | |
---|
789 | /** |
---|
790 | * Get the value of the languageFields parameter<br><br> |
---|
791 | * |
---|
792 | * For a description of the parameter, refer to the general VLO |
---|
793 | * documentation. |
---|
794 | * |
---|
795 | * @return the value |
---|
796 | */ |
---|
797 | public String[] getLanguageFilters() { |
---|
798 | return languageFilters; |
---|
799 | } |
---|
800 | |
---|
801 | /** |
---|
802 | * Set the value of the languageFilters parameter<br><br> |
---|
803 | * |
---|
804 | * For a description of the parameter, refer to the general VLO |
---|
805 | * documentation. |
---|
806 | * |
---|
807 | * @param param the value, a list of language filters |
---|
808 | */ |
---|
809 | public void setLanguageFilters(String[] param) { |
---|
810 | languageFilters = param; |
---|
811 | } |
---|
812 | |
---|
813 | /** |
---|
814 | * Get the value of the getFacetOverviewLength parameter<br><br> |
---|
815 | * |
---|
816 | * For a description of the parameter, refer to the general VLO |
---|
817 | * documentation. |
---|
818 | * |
---|
819 | * @return the value |
---|
820 | */ |
---|
821 | public int getFacetOverviewLength() { |
---|
822 | return facetOverviewLength; |
---|
823 | } |
---|
824 | |
---|
825 | /** |
---|
826 | * Set the value of the setFacetOverviewLength parameter<br><br> |
---|
827 | * |
---|
828 | * For a description of the parameter, refer to the general VLO |
---|
829 | * documentation. |
---|
830 | * |
---|
831 | * @param param the value |
---|
832 | */ |
---|
833 | public void setFacetOverviewLength(Integer param) { |
---|
834 | facetOverviewLength = param; |
---|
835 | } |
---|
836 | |
---|
837 | /** |
---|
838 | * Get the value of the CountryComponentUrl parameter<br><br> |
---|
839 | * |
---|
840 | * For a description of the parameter, refer to the general VLO |
---|
841 | * documentation. |
---|
842 | * |
---|
843 | * @return the value |
---|
844 | */ |
---|
845 | public String getCountryComponentUrl() { |
---|
846 | return countryComponentUrl; |
---|
847 | } |
---|
848 | |
---|
849 | /** |
---|
850 | * Set the value of the CountryComponentUrl parameter<br><br> |
---|
851 | * |
---|
852 | * For a description of the parameter, refer to the general VLO |
---|
853 | * documentation. |
---|
854 | * |
---|
855 | * @param param the value |
---|
856 | */ |
---|
857 | public void setCountryComponentUrl(String param) { |
---|
858 | countryComponentUrl = param; |
---|
859 | } |
---|
860 | |
---|
861 | /** |
---|
862 | * Get the value of the Language2LetterCodeComponentUrl parameter<br><br> |
---|
863 | * |
---|
864 | * For a description of the parameter, refer to the general VLO |
---|
865 | * documentation. |
---|
866 | * |
---|
867 | * @return the value |
---|
868 | */ |
---|
869 | public String getLanguage2LetterCodeComponentUrl() { |
---|
870 | return language2LetterCodeComponentUrl; |
---|
871 | } |
---|
872 | |
---|
873 | /** |
---|
874 | * Set the value of the Language2LetterCodeComponentUrl parameter<br><br> |
---|
875 | * |
---|
876 | * For a description of the parameter, refer to the general VLO |
---|
877 | * documentation. |
---|
878 | * |
---|
879 | * @param param the value |
---|
880 | */ |
---|
881 | public void setLanguage2LetterCodeComponentUrl(String param) { |
---|
882 | language2LetterCodeComponentUrl = param; |
---|
883 | } |
---|
884 | |
---|
885 | /** |
---|
886 | * Get the value of the Language3LetterCodeComponentUrl parameter<br><br> |
---|
887 | * |
---|
888 | * For a description of the parameter, refer to the general VLO |
---|
889 | * documentation. |
---|
890 | * |
---|
891 | * @return the value |
---|
892 | */ |
---|
893 | public String getLanguage3LetterCodeComponentUrl() { |
---|
894 | return language3LetterCodeComponentUrl; |
---|
895 | } |
---|
896 | |
---|
897 | /** |
---|
898 | * Set the value of the Language3LetterCodeComponentUrl parameter<br><br> |
---|
899 | * |
---|
900 | * For a description of the parameter, refer to the general VLO |
---|
901 | * documentation. |
---|
902 | * |
---|
903 | * @param param the value |
---|
904 | */ |
---|
905 | public void setLanguage3LetterCodeComponentUrl(String param) { |
---|
906 | language3LetterCodeComponentUrl = param; |
---|
907 | } |
---|
908 | |
---|
909 | /** |
---|
910 | * Get the value of the SilToISO639CodesUrl parameter<br><br> |
---|
911 | * |
---|
912 | * For a description of the parameter, refer to the general VLO |
---|
913 | * documentation. |
---|
914 | * |
---|
915 | * @return the value |
---|
916 | */ |
---|
917 | public String getSilToISO639CodesUrl() { |
---|
918 | return silToISO639CodesUrl; |
---|
919 | } |
---|
920 | |
---|
921 | /** |
---|
922 | * Set the value of the SilToISO639CodesUrl parameter<br><br> |
---|
923 | * |
---|
924 | * For a description of the parameter, refer to the general VLO |
---|
925 | * documentation. |
---|
926 | * |
---|
927 | * @param param the value |
---|
928 | */ |
---|
929 | public void setSilToISO639CodesUrl(String param) { |
---|
930 | silToISO639CodesUrl = param; |
---|
931 | } |
---|
932 | |
---|
933 | /** |
---|
934 | * Get the value of the reverseProxyPath parameter<br><br> |
---|
935 | * |
---|
936 | * For a description of the parameter, refer to the general VLO |
---|
937 | * documentation. |
---|
938 | * |
---|
939 | * @return the value |
---|
940 | */ |
---|
941 | public String getReverseProxyPrefix() { |
---|
942 | return reverseProxyPrefix; |
---|
943 | } |
---|
944 | |
---|
945 | /** |
---|
946 | * Set the value of the reverseProxyPrefix parameter<br><br> |
---|
947 | * |
---|
948 | * For a description of the parameter, refer to the general VLO |
---|
949 | * documentation. |
---|
950 | * |
---|
951 | * @param param the value |
---|
952 | */ |
---|
953 | public void setReverseProxyPrefix(String param) { |
---|
954 | reverseProxyPrefix = param; |
---|
955 | } |
---|
956 | |
---|
957 | /** |
---|
958 | * Get the value of the organisationNamesUrl parameter<br><br> |
---|
959 | * |
---|
960 | * For a description of the parameter, refer to the general VLO |
---|
961 | * documentation. |
---|
962 | * |
---|
963 | * @return the value |
---|
964 | */ |
---|
965 | public String getOrganisationNamesUrl() { |
---|
966 | return organisationNamesUrl; |
---|
967 | } |
---|
968 | |
---|
969 | /** |
---|
970 | * Set the value of the organisationNamesUrl parameter<br><br> |
---|
971 | * |
---|
972 | * For a description of the parameter, refer to the general VLO |
---|
973 | * documentation. |
---|
974 | * |
---|
975 | * @param param the value |
---|
976 | */ |
---|
977 | public void setOrganisationNamesUrl(String param) { |
---|
978 | organisationNamesUrl = param; |
---|
979 | } |
---|
980 | |
---|
981 | /** |
---|
982 | * Get the value of the languageNameVariantsUrl parameter<br><br> |
---|
983 | * |
---|
984 | * For a description of the parameter, refer to the general VLO |
---|
985 | * documentation. |
---|
986 | * |
---|
987 | * @return the value |
---|
988 | */ |
---|
989 | public String getLanguageNameVariantsUrl() { |
---|
990 | return languageNameVariantsUrl; |
---|
991 | } |
---|
992 | |
---|
993 | /** |
---|
994 | * Set the value of the languageNameVariantsUrl parameter<br><br> |
---|
995 | * |
---|
996 | * For a description of the parameter, refer to the general VLO |
---|
997 | * documentation. |
---|
998 | * |
---|
999 | * @param param the value |
---|
1000 | */ |
---|
1001 | public void setLanguageNameVariantsUrl(String param) { |
---|
1002 | languageNameVariantsUrl = param; |
---|
1003 | } |
---|
1004 | |
---|
1005 | /** |
---|
1006 | * Get the value of the licenseAvailabilityMapUrl parameter<br><br> |
---|
1007 | * |
---|
1008 | * For a description of the parameter, refer to the general VLO |
---|
1009 | * documentation. |
---|
1010 | * |
---|
1011 | * @return the value |
---|
1012 | */ |
---|
1013 | public String getLicenseAvailabilityMapUrl() { |
---|
1014 | return licenseAvailabilityMapUrl; |
---|
1015 | } |
---|
1016 | |
---|
1017 | /** |
---|
1018 | * Set the value of the licenseAvailabilityMapUrl parameter<br><br> |
---|
1019 | * |
---|
1020 | * For a description of the parameter, refer to the general VLO |
---|
1021 | * documentation. |
---|
1022 | * |
---|
1023 | * @param param the value |
---|
1024 | */ |
---|
1025 | public void setLicenseAvailabilityMapUrl(String param) { |
---|
1026 | licenseAvailabilityMapUrl = param; |
---|
1027 | } |
---|
1028 | |
---|
1029 | /** |
---|
1030 | * Get the value of the cqlEndpointFilter parameter<br><br> |
---|
1031 | * |
---|
1032 | * For a description of the parameter, refer to the general VLO |
---|
1033 | * documentation. |
---|
1034 | * |
---|
1035 | * @return the value |
---|
1036 | */ |
---|
1037 | public String getCqlEndpointFilter() { |
---|
1038 | return cqlEndpointFilter; |
---|
1039 | } |
---|
1040 | |
---|
1041 | /** |
---|
1042 | * Set the value of the cqlEndpointFilter parameter<br><br> |
---|
1043 | * |
---|
1044 | * For a description of the parameter, refer to the general VLO |
---|
1045 | * documentation. |
---|
1046 | * |
---|
1047 | * @param param the value |
---|
1048 | */ |
---|
1049 | public void setCqlEndpointFilter(String param) { |
---|
1050 | cqlEndpointFilter = param; |
---|
1051 | } |
---|
1052 | |
---|
1053 | /** |
---|
1054 | * Get the value of the cqlEndpointAlternative parameter<br><br> |
---|
1055 | * |
---|
1056 | * For a description of the parameter, refer to the general VLO |
---|
1057 | * documentation. |
---|
1058 | * |
---|
1059 | * @return the value |
---|
1060 | */ |
---|
1061 | public String getCqlEndpointAlternative() { |
---|
1062 | return cqlEndpointAlternative; |
---|
1063 | } |
---|
1064 | |
---|
1065 | /** |
---|
1066 | * Set the value of the cqlEndpointAlternative parameter<br><br> |
---|
1067 | * |
---|
1068 | * For a description of the parameter, refer to the general VLO |
---|
1069 | * documentation. |
---|
1070 | * |
---|
1071 | * @param param the value |
---|
1072 | */ |
---|
1073 | public void setCqlEndpointAlternative(String param) { |
---|
1074 | cqlEndpointAlternative = param; |
---|
1075 | } |
---|
1076 | |
---|
1077 | /** |
---|
1078 | * Sets the originating file for the current configuration |
---|
1079 | * |
---|
1080 | * @param configFile the file this config was read from |
---|
1081 | */ |
---|
1082 | public void setConfigLocation(URI configFile) { |
---|
1083 | this.configLocation = configFile; |
---|
1084 | } |
---|
1085 | |
---|
1086 | /** |
---|
1087 | * |
---|
1088 | * @return the file this config was read from. may be null! |
---|
1089 | */ |
---|
1090 | public URI getConfigLocation() { |
---|
1091 | return configLocation; |
---|
1092 | } |
---|
1093 | |
---|
1094 | public void setShowResultScores(boolean showResultScores) { |
---|
1095 | this.showResultScores = showResultScores; |
---|
1096 | } |
---|
1097 | |
---|
1098 | public boolean isShowResultScores() { |
---|
1099 | return showResultScores; |
---|
1100 | } |
---|
1101 | |
---|
1102 | /** |
---|
1103 | * Get the value of processHierarchies |
---|
1104 | * |
---|
1105 | * @return the value of processHierarchies |
---|
1106 | */ |
---|
1107 | public boolean isProcessHierarchies() { |
---|
1108 | return processHierarchies; |
---|
1109 | } |
---|
1110 | |
---|
1111 | /** |
---|
1112 | * Set the value of processHierarchies |
---|
1113 | * |
---|
1114 | * @param processHierarchies new value of processHierarchies |
---|
1115 | */ |
---|
1116 | public void setProcessHierarchies(boolean processHierarchies) { |
---|
1117 | this.processHierarchies = processHierarchies; |
---|
1118 | } |
---|
1119 | } |
---|