@ Nonnull @ ReturnsMutableCopy public ICommonsList < String > getAllUserGroupIDsWithAssignedRole ( @ Nullable final String sRoleID ) { if ( StringHelper . hasNoText ( sRoleID ) ) return getNone ( ) ; return getAllMapped ( aUserGroup -> aUserGroup . containsRoleID ( sRoleID ) , IUserGroup :: getID ) ; }
Get a collection of all user group IDs to which a certain role is assigned to .