public class NestingHelper extends Object
Takes care of getting information in and out of the caches.
Constructor and Description |
---|
NestingHelper() |
Modifier and Type | Method and Description |
---|---|
static List<String> |
cacheGroupRelationships(SOAPNestableGroup[] allGroups,
BasicCache cache)
Takes a list of all groups, along with their direct children, and returns a list of group names.
|
static List<String> |
getAllGroupsForUser(List<String> directGroups,
Map<String,Set<String>> ancestorsByGroup)
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)
GroupMembershipManager.getMemberships(String)
.allGroups
- The result of a call to SecurityServerClient.findAllGroupRelationships()
.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 ofancestorsByGroup
- map of ancestor group names by group nameCopyright © 2020 Atlassian. All rights reserved.