mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-21 21:25:38 +00:00
bug4811: completed first untested implementation of PermissionChangeListeners
This commit is contained in:
+6
@@ -386,6 +386,12 @@ public class AccessControlStoreImpl implements AccessControlStore {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Iterable<OwnershipAnnotation> getOwnerhipsWithGroupOwner(UserGroup owningUserGroup) {
|
||||
final Set<OwnershipAnnotation> ownerships = userGroupToOwnership.get(owningUserGroup);
|
||||
return ownerships==null ? Collections.emptySet() : Collections.unmodifiableCollection(ownerships);
|
||||
}
|
||||
|
||||
@Override
|
||||
public OwnershipAnnotation getOwnership(final QualifiedObjectIdentifier idOfOwnedObjectAsString) {
|
||||
|
||||
+7
@@ -706,6 +706,13 @@ public class UserStoreImpl implements UserStore {
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
public Iterable<UserGroup> getUserGroupsWithRole(RoleDefinition roleDefinition) {
|
||||
return LockUtil.executeWithReadLockAndResult(userGroupsLock, () -> {
|
||||
return roleDefinition == null ? null : new HashSet<>(roleDefinitionsToUserGroups.get(roleDefinition));
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
public UserGroup getUserGroup(UUID id) {
|
||||
return LockUtil.executeWithReadLockAndResult(userGroupsLock, () -> {
|
||||
|
||||
Reference in New Issue
Block a user