User Tools

Site Tools


ldap

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
ldap [2020/07/20 11:00] skipidarldap [2020/12/27 20:35] (current) – external edit 127.0.0.1
Line 365: Line 365:
     contextSource.setUserDn(env.getRequiredProperty("ldap.user"));     contextSource.setUserDn(env.getRequiredProperty("ldap.user"));
     contextSource.setPassword(env.getRequiredProperty("ldap.password"));     contextSource.setPassword(env.getRequiredProperty("ldap.password"));
-    contextSource.setPooled(false); // Robert improved the performance by 100x for PARALLEL requests by enabling that+    contextSource.setPooled(false); // pooling is enabled on the wrapper
  
     Map<String, Object> environment = new HashMap<>();     Map<String, Object> environment = new HashMap<>();
Line 1156: Line 1156:
     }     }
  
-    public String toTagsString(final String... tags) { 
-        return toTagsString(Arrays.asList(tags)); 
-    } 
  
-    public String toTagsString(final List<String> tags) { 
-        if(tags == null || tags.isEmpty()){ 
-            return null; 
-        } 
-        return cleanUpTags(tags.stream()) 
-                .collect(Collectors.joining(" ")); 
-    } 
  
-    public List<String> toCleanTagList(String[] tags) { 
-        return toCleanTagList(Arrays.asList(tags)); 
-    } 
  
-    public List<String> toCleanTagList(Collection<String> tags) { 
-        return cleanUpTags(tags.stream()) 
-                .collect(Collectors.toList()); 
-    } 
- 
-    private Stream<String> cleanUpTags(Stream<String> tags) { 
-        return tags.filter(s -> s != null && !s.isEmpty() && !s.contains(" ")) 
-                .map(s -> s.trim()) 
-                .sorted(String.CASE_INSENSITIVE_ORDER) 
-                .distinct(); 
-    } 
  
     /**     /**
ldap.1595242802.txt.gz · Last modified: (external edit)