Skip to content

Commit f8ac520

Browse files
committed
Deprecated minAccessLevel().
1 parent 8436750 commit f8ac520

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/main/java/org/gitlab4j/api/models/ProjectFilter.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,12 +212,24 @@ public ProjectFilter withRepositoryChecksumFailed(Boolean repositoryChecksumFail
212212
*
213213
* @param minAccessLevel limit by current user minimal access level
214214
* @return the reference to this ProjectFilter instance
215+
* @deprecated Replaced by {@link #withMinAccessLevel(AccessLevel) getComponentAt}
215216
*/
216217
public ProjectFilter minAccessLevel(AccessLevel minAccessLevel) {
217218
this.minAccessLevel = minAccessLevel;
218219
return (this);
219220
}
220221

222+
/**
223+
* Limit by current user minimal access level
224+
*
225+
* @param minAccessLevel limit by current user minimal access level
226+
* @return the reference to this ProjectFilter instance
227+
*/
228+
public ProjectFilter withMinAccessLevel(AccessLevel minAccessLevel) {
229+
this.minAccessLevel = minAccessLevel;
230+
return (this);
231+
}
232+
221233
/**
222234
* Get the query params specified by this filter.
223235
*

0 commit comments

Comments
 (0)