com.atlassian.crowd.util
Class NestingHelper

java.lang.Object
  extended by com.atlassian.crowd.util.NestingHelper

public class NestingHelper
extends java.lang.Object

Encapsulates nasty logic related to making sure that all membership information returned to client applications is nesting-aware. The methods are named to match where they're called from in the GroupManager & GroupMembershipsManager.

Takes care of gettting information in & out of the caches.


Constructor Summary
NestingHelper()
           
 
Method Summary
static java.util.List getAllGroupNames(SOAPNestableGroup[] allGroups, BasicCache cache)
          Takes a list of all groups, along with their direct children, and returns a list of group names.
static java.util.List getAllGroupsForUser(java.util.List directGroups, BasicCache cache)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NestingHelper

public NestingHelper()
Method Detail

getAllGroupNames

public static java.util.List getAllGroupNames(SOAPNestableGroup[] allGroups,
                                              BasicCache cache)
Takes a list of all groups, along with their direct children, and returns a list of group names. Also caches group relationship data that's needed for other calls, such as GroupMembershipManager.getMemberships(String).

Parameters:
allGroups - The result of a call to SecurityServerClient.findAllGroupRelationships().
cache - The GroupCache to add the name & relationship data to.
Returns:

getAllGroupsForUser

public static java.util.List getAllGroupsForUser(java.util.List directGroups,
                                                 BasicCache cache)


Copyright © 2010 Atlassian. All Rights Reserved.