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