|
17 | 17 |
|
18 | 18 | package net.croz.nrich.registry.api.core.model;
|
19 | 19 |
|
20 |
| -import lombok.Builder; |
21 | 20 | import lombok.Getter;
|
22 | 21 | import lombok.Setter;
|
23 | 22 |
|
|
29 | 28 | */
|
30 | 29 | @Setter
|
31 | 30 | @Getter
|
32 |
| -@Builder |
33 | 31 | public class RegistryOverrideConfiguration {
|
34 | 32 |
|
35 | 33 | /**
|
36 | 34 | * Whether this entity is read only.
|
37 | 35 | */
|
38 |
| - private boolean readOnly; |
| 36 | + private boolean readOnly = false; |
39 | 37 |
|
40 | 38 | /**
|
41 | 39 | * Whether new instances of this entity can be created.
|
42 | 40 | */
|
43 |
| - private boolean creatable; |
| 41 | + private boolean creatable = true; |
44 | 42 |
|
45 | 43 | /**
|
46 | 44 | * Whether this entity can be updated.
|
47 | 45 | */
|
48 |
| - private boolean updateable; |
| 46 | + private boolean updateable = true; |
49 | 47 |
|
50 | 48 | /**
|
51 | 49 | * Whether this entity can be deleted.
|
52 | 50 | */
|
53 |
| - private boolean deletable; |
| 51 | + private boolean deletable = true; |
54 | 52 |
|
55 | 53 | /**
|
56 | 54 | * Whether history for this entity is available.
|
57 | 55 | */
|
58 |
| - private boolean isHistoryAvailable; |
| 56 | + private boolean isHistoryAvailable = false; |
59 | 57 |
|
60 | 58 | /**
|
61 | 59 | * List of properties that should be excluded from configuration.
|
62 | 60 | */
|
63 |
| - private List<String> ignoredPropertyList; |
| 61 | + private List<String> ignoredPropertyList = Collections.emptyList(); |
64 | 62 |
|
65 | 63 | /**
|
66 | 64 | * Order of properties.
|
67 | 65 | */
|
68 |
| - private List<String> propertyDisplayOrderList; |
| 66 | + private List<String> propertyDisplayOrderList = Collections.emptyList(); |
69 | 67 |
|
70 | 68 | /**
|
71 | 69 | * List of non-editable properties.
|
72 | 70 | */
|
73 |
| - private List<String> nonEditablePropertyList; |
| 71 | + private List<String> nonEditablePropertyList = Collections.emptyList(); |
74 | 72 |
|
75 | 73 | /**
|
76 | 74 | * List of non sortable properties.
|
77 | 75 | */
|
78 |
| - private List<String> nonSortablePropertyList; |
| 76 | + private List<String> nonSortablePropertyList = Collections.emptyList(); |
79 | 77 |
|
80 | 78 | /**
|
81 | 79 | * List of non-searchable properties.
|
82 | 80 | */
|
83 |
| - private List<String> nonSearchablePropertyList; |
| 81 | + private List<String> nonSearchablePropertyList = Collections.emptyList(); |
84 | 82 |
|
85 |
| - public static RegistryOverrideConfiguration defaultConfiguration() { |
86 |
| - return RegistryOverrideConfiguration.builder() |
87 |
| - .readOnly(false) |
88 |
| - .creatable(true) |
89 |
| - .updateable(true) |
90 |
| - .deletable(true) |
91 |
| - .isHistoryAvailable(false) |
92 |
| - .ignoredPropertyList(Collections.emptyList()) |
93 |
| - .propertyDisplayOrderList(Collections.emptyList()) |
94 |
| - .nonEditablePropertyList(Collections.emptyList()) |
95 |
| - .nonSortablePropertyList(Collections.emptyList()) |
96 |
| - .nonSearchablePropertyList(Collections.emptyList()) |
97 |
| - .build(); |
98 |
| - } |
99 | 83 | }
|
0 commit comments