Commits

Markus Andreassen authored e60da19eea2 Merge
Pull request #30: 126.96 Datagenerator genindførsel

Merge in COM/erstatnings-cpr-numre from 126.96_Datagenerator_genindførsel to main * commit 'd67cc98bb8096b848570338604b2a6e996778a99': 126.96 Tilføjet output af identifiers til csv-fil 126.96 Datagenerator kan nu køres fra mvn 126.96 Færdiggjort datagenerator Geninført mere Datagenerator 126.96 Fikset et par fejl i Datageneratoren 126.96 Genindført datagenerator
No tags

ecpr2-datagenerator/src/main/java/dk/sds/ecpr2/constants/SearchConstants.java

Added
1 +/**
2 + * MIT License
3 + *
4 + * Copyright (c) 2017 Trifork
5 + *
6 + * Permission is hereby granted, free of charge, to any person obtaining a copy
7 + * of this software and associated documentation files (the "Software"), to deal
8 + * in the Software without restriction, including without limitation the rights
9 + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 + * copies of the Software, and to permit persons to whom the Software is
11 + * furnished to do so, subject to the following conditions:
12 + *
13 + * The above copyright notice and this permission notice shall be included in all
14 + * copies or substantial portions of the Software.
15 + *
16 + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 + * SOFTWARE.
23 + */
24 +package dk.sds.ecpr2.constants;
25 +
26 +public class SearchConstants {
27 + public static final String PERSON_UUID = "personuuid";
28 + public static final String FAMILY_NAME = "familyname";
29 + public static final String GIVEN_NAME = "givenname";
30 + public static final String GENDER = "gender";
31 + public static final String BIRTH_DATE = "birthdate";
32 + public static final String CONTACT = "contact";
33 + public static final String STREET_ADDRESS = "streetaddress";
34 + public static final String CITY = "city";
35 + public static final String DISTRICT = "district";
36 + public static final String STATE = "state";
37 + public static final String POSTAL_CODE = "postalcode";
38 + public static final String COUNTRY = "country";
39 +
40 + // To be removed
41 + public static final String CONTACT_SYSTEM = "contactsystem";
42 +
43 + public static boolean canBeWildCard(String fieldName) {
44 + if (PERSON_UUID.equals(fieldName)) {
45 + return false;
46 + }
47 + if (GENDER.equals(fieldName)) {
48 + return false;
49 + }
50 + if (POSTAL_CODE.equals(fieldName)) {
51 + return false;
52 + }
53 + if (COUNTRY.equals(fieldName)) {
54 + return false;
55 + }
56 +
57 + return true;
58 + }
59 +}

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut