com.atlassian.confluence.user.crowd
Class NameUtils

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

public class NameUtils
extends java.lang.Object


Constructor Summary
NameUtils()
           
 
Method Summary
static
<G extends com.atlassian.crowd.model.group.Group>
com.google.common.collect.ImmutableMap<java.lang.String,G>
canonicalGroupMapping(java.lang.Iterable<G> groups)
          Returns a mapping from lowercase canonical version of each name to the original group.
static com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> canonicalMapping(java.lang.Iterable<java.lang.String> names)
          Returns a mapping from lowercase canonical version of each name to the original.
static java.lang.String getCanonicalName(com.atlassian.crowd.model.group.Group group)
           
static java.lang.String getCanonicalName(java.lang.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 java.lang.String getCanonicalName(com.atlassian.crowd.model.group.Group group)

getCanonicalName

public static java.lang.String getCanonicalName(java.lang.String name)

canonicalMapping

public static com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> canonicalMapping(java.lang.Iterable<java.lang.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<java.lang.String,G> canonicalGroupMapping(java.lang.Iterable<G> groups)
Returns a mapping from lowercase canonical version of each name to the original group.



Copyright © 2003-2014 Atlassian. All Rights Reserved.