Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
佳 邓
Gitlab4j Api
Commits
8af68995
Unverified
Commit
8af68995
authored
Mar 08, 2022
by
Gautier de Saint Martin Lacaze
Committed by
GitHub
Mar 08, 2022
Browse files
Merge pull request #797 from Djcd/feature/groupFilter_topLevelOnly
Add top_level_only parameter to GroupFilter
parents
231d5066
7bd07f0d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/models/GroupFilter.java
View file @
8af68995
...
...
@@ -20,6 +20,7 @@ public class GroupFilter {
private
Boolean
withCustomAttributes
;
private
Boolean
owned
;
private
AccessLevel
accessLevel
;
private
Boolean
topLevelOnly
;
/**
* Do not include the provided groups IDs.
...
...
@@ -29,7 +30,7 @@ public class GroupFilter {
*/
public
GroupFilter
withSkipGroups
(
List
<
Integer
>
skipGroups
)
{
this
.
skipGroups
=
skipGroups
;
return
(
this
);
return
(
this
);
}
/**
...
...
@@ -41,7 +42,7 @@ public class GroupFilter {
*/
public
GroupFilter
withAllAvailabley
(
Boolean
allAvailable
)
{
this
.
allAvailable
=
allAvailable
;
return
(
this
);
return
(
this
);
}
/**
...
...
@@ -90,7 +91,7 @@ public class GroupFilter {
/**
* Include custom attributes in response (admins only).
*
*
* @param withCustomAttributes if true, include custom attributes in the response
* @return the reference to this GroupFilter instance
*/
...
...
@@ -121,6 +122,17 @@ public class GroupFilter {
return
(
this
);
}
/**
* Limit by groups which are top level groups
*
* @param topLevelOnly if true, limit to groups which are top level groups
* @return the reference to this GroupFilter instance
*/
public
GroupFilter
withTopLevelOnly
(
Boolean
topLevelOnly
)
{
this
.
topLevelOnly
=
topLevelOnly
;
return
(
this
);
}
/**
* Get the query params specified by this filter.
*
...
...
@@ -135,8 +147,9 @@ public class GroupFilter {
.
withParam
(
"sort"
,
sort
)
.
withParam
(
"statistics"
,
statistics
)
.
withParam
(
"with_custom_attributes"
,
withCustomAttributes
)
.
withParam
(
"owned"
,
owned
)
.
withParam
(
"owned"
,
owned
)
.
withParam
(
"min_access_level"
,
accessLevel
)
.
withParam
(
"top_level_only"
,
topLevelOnly
)
);
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment