File tree Expand file tree Collapse file tree
Source/HttpsRichardy.Federation.Domain/Filtering Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,6 +3,18 @@ namespace HttpsRichardy.Federation.Domain.Filtering.Builders;
33public sealed class GroupFiltersBuilder :
44 FiltersBuilderBase < GroupFilters , GroupFiltersBuilder >
55{
6+ public GroupFiltersBuilder WithIdentifiers ( string [ ] identifiers )
7+ {
8+ var validIdentifiers = identifiers ?
9+ . Where ( identifier => ! string . IsNullOrWhiteSpace ( identifier ) )
10+ . ToArray ( ) ;
11+
12+ if ( validIdentifiers ? . Length > 0 )
13+ _filters . Identifiers = validIdentifiers ;
14+
15+ return this ;
16+ }
17+
618 public GroupFiltersBuilder WithRealmId ( string ? realmId )
719 {
820 _filters . RealmId = realmId ;
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ public sealed class GroupFilters : Filters
44{
55 public string ? RealmId { get ; set ; }
66 public string ? Name { get ; set ; }
7+ public string [ ] ? Identifiers { get ; set ; }
78
89 public static GroupFiltersBuilder WithSpecifications ( ) => new ( ) ;
910}
You can’t perform that action at this time.
0 commit comments