public class GroupPatternMatcher extends Object
/tenants/** /users matches: /tenant/foo/bar/users and /tenant/foo/users /tenants/grp* /users matches: /tenant/grpOther/users but not /tenant/grpOther/foo/users
Constructor and Description |
---|
GroupPatternMatcher() |
Modifier and Type | Method and Description |
---|---|
static List<pl.edu.icm.unity.types.basic.Group> |
filterByIncludeGroupsMode(List<pl.edu.icm.unity.types.basic.Group> allGroups,
pl.edu.icm.unity.types.registration.GroupRegistrationParam.IncludeGroupsMode mode) |
static List<pl.edu.icm.unity.types.basic.Group> |
filterMatching(List<pl.edu.icm.unity.types.basic.Group> allGroups,
Collection<String> filter) |
static List<pl.edu.icm.unity.types.basic.Group> |
filterMatching(List<pl.edu.icm.unity.types.basic.Group> allGroups,
String pattern) |
static boolean |
isValidPattern(String groupPath) |
static boolean |
matches(String group,
String pattern) |
public static List<pl.edu.icm.unity.types.basic.Group> filterMatching(List<pl.edu.icm.unity.types.basic.Group> allGroups, String pattern)
public static List<pl.edu.icm.unity.types.basic.Group> filterByIncludeGroupsMode(List<pl.edu.icm.unity.types.basic.Group> allGroups, pl.edu.icm.unity.types.registration.GroupRegistrationParam.IncludeGroupsMode mode)
public static List<pl.edu.icm.unity.types.basic.Group> filterMatching(List<pl.edu.icm.unity.types.basic.Group> allGroups, Collection<String> filter)
public static boolean isValidPattern(String groupPath)
Copyright © 2019 Unity. All rights reserved.