From d50e02314093db0ba788a6c79d852e3025d5b939 Mon Sep 17 00:00:00 2001 From: Martin Stockhammer Date: Sun, 3 Jan 2021 17:29:03 +0100 Subject: Adding ldap properties --- .../java/org/apache/archiva/configuration/util/ConfigMapper.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'archiva-modules/archiva-base/archiva-configuration') 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 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 mapping) { this.intFunctionMap.put( attributeName, mapping ); -- cgit v1.2.3