public class NestingHelper extends Object
Takes care of getting information in and out of the caches.
|Constructor and Description|
|Modifier and Type||Method and Description|
Takes a list of all groups, along with their direct children, and returns a list of group names.
Returns an unsorted list of groups that the user is a member of, either directly or indirectly.
public static List<String> cacheGroupRelationships(SOAPNestableGroup allGroups, BasicCache cache)
allGroups- The result of a call to
cache- The GroupCache to add the name and relationship data to.
public static List<String> getAllGroupsForUser(List<String> directGroups, Map<String,Set<String>> ancestorsByGroup)
directGroups- list of groups that the user is a direct member of
ancestorsByGroup- map of ancestor group names by group name
Copyright © 2021 Atlassian. All rights reserved.