aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-base/archiva-configuration
diff options
context:
space:
mode:
authorMartin Stockhammer <martin_s@apache.org>2021-01-03 17:29:03 +0100
committerMartin Stockhammer <martin_s@apache.org>2021-01-03 17:29:03 +0100
commitd50e02314093db0ba788a6c79d852e3025d5b939 (patch)
treec800c3f4e20968f06c704708ab659f84d577e5db /archiva-modules/archiva-base/archiva-configuration
parent375a8d62308dd1b307316926ba6a46acc4a01eed (diff)
downloadarchiva-d50e02314093db0ba788a6c79d852e3025d5b939.tar.gz
archiva-d50e02314093db0ba788a6c79d852e3025d5b939.zip
Adding ldap properties
Diffstat (limited to 'archiva-modules/archiva-base/archiva-configuration')
-rw-r--r--archiva-modules/archiva-base/archiva-configuration/src/main/java/org/apache/archiva/configuration/util/ConfigMapper.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/archiva-modules/archiva-base/archiva-configuration/src/main/java/org/apache/archiva/configuration/util/ConfigMapper.java b/archiva-modules/archiva-base/archiva-configuration/src/main/java/org/apache/archiva/configuration/util/ConfigMapper.java
index 14b9613ac..f55dbbc66 100644
--- a/archiva-modules/archiva-base/archiva-configuration/src/main/java/org/apache/archiva/configuration/util/ConfigMapper.java
+++ b/archiva-modules/archiva-base/archiva-configuration/src/main/java/org/apache/archiva/configuration/util/ConfigMapper.java
@@ -1,4 +1,5 @@
-package org.apache.archiva.configuration.util;/*
+package org.apache.archiva.configuration.util;
+/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
@@ -76,6 +77,9 @@ public class ConfigMapper<T, K>
return prefixStringFunctionMap.keySet( ).stream( ).anyMatch( prefix -> attributeName.startsWith( prefix ) );
}
+ public boolean isMapping(String attributeName) {
+ return isStringMapping( attributeName ) || isIntMapping( attributeName ) || isBooleanMapping( attributeName );
+ }
public void addIntMapping( String attributeName, Function<T, Integer> mapping) {
this.intFunctionMap.put( attributeName, mapping );