public interface MembershipCache
Modifier and Type | Method and Description |
---|---|
List<String> |
getGroupsForGroup(long directoryId,
String groupName)
Deprecated.
since 7.3 Use
getGroupsForGroup(long, String, Supplier) |
List<String> |
getGroupsForGroup(long directoryId,
String groupName,
Supplier<List<String>> valueSupplier)
Returns the list of groups names which the named group is a member of in the specified directory.
|
List<String> |
getGroupsForUser(long directoryId,
String userName)
Deprecated.
since 7.3 use
getGroupsForUser(long, String, Supplier) |
List<String> |
getGroupsForUser(long directoryId,
String userName,
Supplier<List<String>> valueSupplier)
Returns the list of groups names which the named user is a member of in the specified directory.
|
Boolean |
isGroupDirectMember(long directoryId,
String childGroupName,
String parentGroupName)
Deprecated.
since 7.3 Use
isGroupDirectMember(long, String, String, Supplier) |
boolean |
isGroupDirectMember(long directoryId,
String childGroupName,
String parentGroupName,
Supplier<Iterable<String>> groupMembershipSupplier)
Returns
true if the parentGroupName is in the cached list of parents of the child group,
false if parentGroupName is not in the list,. |
Boolean |
isUserDirectMember(long directoryId,
String userName,
String groupName)
Deprecated.
since 7.3 Use
isUserDirectMember(long, String, String, Supplier) |
boolean |
isUserDirectMember(long directoryId,
String userName,
String groupName,
Supplier<Iterable<String>> groupMembershipSupplier)
Returns
true if the groupName is in the cached list of parents of the user, false
if groupName is not in the list. |
void |
removeAllDirectoryMemberships(long directoryId)
Removes any entries in the cache which relate to the specified directory.
|
void |
removeAllGroupMemberships(long directoryId,
String groupName)
Removes any entries in the cache which contain the groupName in the specified directory.
|
void |
removeAllUserMemberships(long directoryId,
String userName)
Removes any entries in the cache which contain the userName in the specified directory.
|
void |
removeGroupGroupMemberships(long directoryId,
String groupName)
Removes any cached list of group names which are members of the named group in the specified directory.
|
void |
removeUserGroupMemberships(long directoryId,
String userName)
Removes any cached list of user names which are members of the named group in the specified directory.
|
void |
setGroupsForGroup(long directoryId,
String groupName,
Iterable<String> parentGroupNames)
Deprecated.
since 7.3 No Replacement. Use cache loading via
getGroupsForGroup(long, String, Supplier) |
void |
setGroupsForUser(long directoryId,
String userName,
Iterable<String> groupNames)
Deprecated.
since 7.3 No Replacement. Use cache loading via
getGroupsForUser(long, String, Supplier) |
@Deprecated Boolean isUserDirectMember(long directoryId, String userName, String groupName)
isUserDirectMember(long, String, String, Supplier)
true
if the groupName is in the cached list of parents of the user, false
if groupName is not in the list, or null
if there is no cached list for the user.boolean isUserDirectMember(long directoryId, String userName, String groupName, Supplier<Iterable<String>> groupMembershipSupplier)
true
if the groupName is in the cached list of parents of the user, false
if groupName is not in the list.groupMembershipSupplier
- a Supplier of group names for the user, if not already present in the cache@Deprecated Boolean isGroupDirectMember(long directoryId, String childGroupName, String parentGroupName)
isGroupDirectMember(long, String, String, Supplier)
true
if the parentGroupName is in the cached list of parents of the child group,
false
if parentGroupName is not in the list, or null
if there is no cached list for the child group.boolean isGroupDirectMember(long directoryId, String childGroupName, String parentGroupName, Supplier<Iterable<String>> groupMembershipSupplier)
true
if the parentGroupName is in the cached list of parents of the child group,
false
if parentGroupName is not in the list,.groupMembershipSupplier
- a Supplier of parent group names for the group, if not already present in the cache@Deprecated void setGroupsForUser(long directoryId, String userName, Iterable<String> groupNames)
getGroupsForUser(long, String, Supplier)
@Deprecated void setGroupsForGroup(long directoryId, String groupName, Iterable<String> parentGroupNames)
getGroupsForGroup(long, String, Supplier)
@Deprecated List<String> getGroupsForUser(long directoryId, String userName)
getGroupsForUser(long, String, Supplier)
null
if there is no cached list.List<String> getGroupsForUser(long directoryId, String userName, Supplier<List<String>> valueSupplier)
valueSupplier
- a Supplier of group names for the user, if not already present in the cache@Deprecated List<String> getGroupsForGroup(long directoryId, String groupName)
getGroupsForGroup(long, String, Supplier)
null
if there is no cached list.List<String> getGroupsForGroup(long directoryId, String groupName, Supplier<List<String>> valueSupplier)
valueSupplier
- a Supplier of the parent groups of the child group, if not already present in the cache.void removeUserGroupMemberships(long directoryId, String userName)
void removeGroupGroupMemberships(long directoryId, String groupName)
void removeAllUserMemberships(long directoryId, String userName)
This can be a slow operation if the cache is large. This is a trade-off of the cache design, which is optimised for fast retrieval of all parent groups of a user or group.
Removes any GROUPS_FOR_USER entry in this cache if it contains this group.
void removeAllGroupMemberships(long directoryId, String groupName)
This can be a slow operation if the cache is large. This is a trade-off of the cache design, which is optimised for fast retrieval of all parent groups of a user or group.
Removes any GROUPS_FOR_GROUP entry in this cache for the passed in group. Removes any GROUPS_FOR_USER entry in this cache if it contains this group.
void removeAllDirectoryMemberships(long directoryId)
This can be a slow operation if the cache is large. This is a trade-off of the cache design, which is optimised for fast retrieval of all parent groups of a user or group.
Copyright © 2003–2021 Atlassian. All rights reserved.