com.atlassian.confluence.user.crowd
Class NameUtils

java.lang.Object
  extended by com.atlassian.confluence.user.crowd.NameUtils

public class NameUtils
extends Object


Constructor Summary
NameUtils()
           
 
Method Summary
static
<G extends com.atlassian.crowd.model.group.Group>
com.google.common.collect.ImmutableMap<String,G>
canonicalGroupMapping(Iterable<G> groups)
          Returns a mapping from lowercase canonical version of each name to the original group.
static com.google.common.collect.ImmutableMap<String,String> canonicalMapping(Iterable<String> names)
          Returns a mapping from lowercase canonical version of each name to the original.
static String getCanonicalName(com.atlassian.crowd.model.group.Group group)
           
static String getCanonicalName(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NameUtils

public NameUtils()
Method Detail

getCanonicalName

public static String getCanonicalName(com.atlassian.crowd.model.group.Group group)

getCanonicalName

public static String getCanonicalName(String name)

canonicalMapping

public static com.google.common.collect.ImmutableMap<String,String> canonicalMapping(Iterable<String> names)
Returns a mapping from lowercase canonical version of each name to the original.


canonicalGroupMapping

public static <G extends com.atlassian.crowd.model.group.Group> com.google.common.collect.ImmutableMap<String,G> canonicalGroupMapping(Iterable<G> groups)
Returns a mapping from lowercase canonical version of each name to the original group.



Copyright © 2003-2012 Atlassian. All Rights Reserved.