Package org.gitlab4j.api.models
Class ProjectGroupsFilter
- java.lang.Object
-
- org.gitlab4j.api.models.ProjectGroupsFilter
-
- All Implemented Interfaces:
java.io.Serializable
public class ProjectGroupsFilter extends java.lang.Object implements java.io.SerializableThis class is used to filter Groups when getting lists of groups for a specified project.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ProjectGroupsFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GitLabFormgetQueryParams()Get the query params specified by this filter.ProjectGroupsFilterwithSearch(java.lang.String search)Search for specific groups.ProjectGroupsFilterwithSharedMinAccessLevel(AccessLevel sharedMinAccessLevel)Limit to shared groups with at least this role.ProjectGroupsFilterwithSharedVisibleOnly(java.lang.Boolean sharedVisibleOnly)Limit to shared groups user has access to.ProjectGroupsFilterwithSkipGroups(java.util.List<java.lang.Long> skipGroups)Do not include the provided groups IDs.ProjectGroupsFilterwithWithShared(java.lang.Boolean withShared)Include projects shared with this group.
-
-
-
Method Detail
-
withSearch
public ProjectGroupsFilter withSearch(java.lang.String search)
Search for specific groups.- Parameters:
search- the search criteria- Returns:
- the reference to this ProjectGroupsFilter instance
-
withSharedMinAccessLevel
public ProjectGroupsFilter withSharedMinAccessLevel(AccessLevel sharedMinAccessLevel)
Limit to shared groups with at least this role.- Parameters:
sharedMinAccessLevel- the minimal role- Returns:
- the reference to this ProjectGroupsFilter instance
-
withSharedVisibleOnly
public ProjectGroupsFilter withSharedVisibleOnly(java.lang.Boolean sharedVisibleOnly)
Limit to shared groups user has access to.- Parameters:
sharedVisibleOnly- if true limit to the shared groups user has access to.- Returns:
- the reference to this ProjectGroupsFilter instance
-
withSkipGroups
public ProjectGroupsFilter withSkipGroups(java.util.List<java.lang.Long> skipGroups)
Do not include the provided groups IDs.- Parameters:
skipGroups- List of group IDs to not include in the search- Returns:
- the reference to this ProjectGroupsFilter instance
-
withWithShared
public ProjectGroupsFilter withWithShared(java.lang.Boolean withShared)
Include projects shared with this group.- Parameters:
withShared- if true include projects shared with this group.- Returns:
- the reference to this ProjectGroupsFilter instance
-
getQueryParams
public GitLabForm getQueryParams()
Get the query params specified by this filter.- Returns:
- a GitLabApiForm instance holding the query parameters for this ProjectGroupsFilter instance
-
-