Add dialog with a warning to copy, add the setting to copy the protected custom fields #139

This commit is contained in:
J-Jamet committed 2018-07-12 21:53:05 +02:00
1 parent 3b5ef56c16
commit 32497a22d2
17 files changed
+139 -100

No files matched your search

@@ -44,6 +44,22 @@ public class ExtraFields implements Serializable, Cloneable {
return !getCustomProtectedFields().keySet().isEmpty();
}
public boolean containsCustomFieldsProtected() {
for (Map.Entry<String, ProtectedString> field : getCustomProtectedFields().entrySet()) {
if (field.getValue().isProtected())
return true;
}
return false;
}
public boolean containsCustomFieldsNotProtected() {
for (Map.Entry<String, ProtectedString> field : getCustomProtectedFields().entrySet()) {
if (!field.getValue().isProtected())
return true;
}
return false;
}
public String getProtectedStringValue(String key) {
ProtectedString value = fields.get(key);
if ( value == null ) return "";