Package org.miaixz.bus.gitlab.models
Class EpicFilter
java.lang.Object
org.miaixz.bus.gitlab.models.EpicFilter
- All Implemented Interfaces:
Serializable
This class is used to filter Groups when getting lists of epics.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the query params specified by this filter.withAuthorId(Long authorId) Add 'author id' filter.withAuthorUsername(String authorUsername) Add 'author username' filter.withCreatedAfter(Date createdAfter) Add 'created after' filter.withIncludeAncestorGroups(Boolean includeAncestorGroups) Add 'include ancestor groups' filter.withIncludeDescendantGroups(Boolean includeDescendantGroups) Add 'include descendant groups' filter.withLabels(String labels) Add 'labels' filter.withMyReactionEmoji(String myReactionEmoji) Add 'my reaction emoji' filter.withNot(Map<EpicFilter.EpicField, Object> not) Add 'not' filter.withNot(EpicFilter.EpicField field, Object value) Add 'not' filter entry.withOrderBy(Constants.EpicOrderBy orderBy) Add 'order by' filter.withoutAuthorId(Long authorId) Add author_id to the 'not' filter entry.withoutAuthorUsername(String authorUsername) Add author_username to the 'not' filter entry.withoutLabels(String... labels) Add labels to the 'not' filter entry.withSearch(String search) Add 'search' filter.Add 'sort' filter.withState(AbstractEpic.EpicState state) Add 'state' filter.withUpdatedAfter(Date updatedAfter) Add 'updated after' filter.withUpdatedBefore(Date updatedBefore) Add 'updated before' filter.
-
Constructor Details
-
EpicFilter
public EpicFilter()
-
-
Method Details
-
withState
Add 'state' filter.- Parameters:
state- the 'state' filter- Returns:
- the reference to this EpicFilter instance
-
withAuthorId
Add 'author id' filter.- Parameters:
authorId- the author id filter- Returns:
- the reference to this EpicFilter instance
-
withAuthorUsername
Add 'author username' filter.- Parameters:
authorUsername- the 'author username' filter- Returns:
- the reference to this EpicFilter instance
-
withLabels
Add 'labels' filter.- Parameters:
labels- the labels filter- Returns:
- the reference to this EpicFilter instance
-
withOrderBy
Add 'order by' filter.- Parameters:
orderBy- the 'order by' filter- Returns:
- the reference to this GroupFilter instance
-
withSortOrder
Add 'sort' filter.- Parameters:
sort- sort direction, ASC or DESC- Returns:
- the reference to this GroupFilter instance
-
withSearch
Add 'search' filter.- Parameters:
search- the 'search' filter- Returns:
- the reference to this EpicFilter instance
-
withCreatedAfter
Add 'created after' filter.- Parameters:
createdAfter- the 'created after' filter- Returns:
- the reference to this EpicFilter instance
-
withUpdatedAfter
Add 'updated after' filter.- Parameters:
updatedAfter- the 'updated after' filter- Returns:
- the reference to this EpicFilter instance
-
withUpdatedBefore
Add 'updated before' filter.- Parameters:
updatedBefore- the 'updated before' filter- Returns:
- the reference to this EpicFilter instance
-
withIncludeAncestorGroups
Add 'include ancestor groups' filter.- Parameters:
includeAncestorGroups- the 'include ancestor groups' filter- Returns:
- the reference to this EpicFilter instance
-
withIncludeDescendantGroups
Add 'include descendant groups' filter.- Parameters:
includeDescendantGroups- the 'include descendant groups' filter- Returns:
- the reference to this EpicFilter instance
-
withMyReactionEmoji
Add 'my reaction emoji' filter.- Parameters:
myReactionEmoji- the 'my reaction emoji' filter- Returns:
- the reference to this EpicFilter instance
-
withNot
Add 'not' filter.- Parameters:
not- the 'not' filter- Returns:
- the reference to this EpicFilter instance
-
withoutAuthorId
Add author_id to the 'not' filter entry.- Parameters:
authorId- the id of the author to add to the filter- Returns:
- the reference to this EpicFilter instance
-
withoutAuthorUsername
Add author_username to the 'not' filter entry.- Parameters:
authorUsername- the username of the author to add to the filter- Returns:
- the reference to this EpicFilter instance
-
withoutLabels
Add labels to the 'not' filter entry.- Parameters:
labels- the labels to add to the filter- Returns:
- the reference to this EpicFilter instance
-
withNot
Add 'not' filter entry.- Parameters:
field- the field to be added to the 'not' valuevalue- the value for the entry- Returns:
- the reference to this EpicFilter instance
-
getQueryParams
Get the query params specified by this filter.- Returns:
- a GitLabApiForm instance holding the query parameters for this GroupFilter instance
-