public interface RecentlyAccessedRepositoriesService
| Modifier and Type | Method and Description |
|---|---|
Page<Repository> |
findByCurrentUser(PageRequest pageRequest)
Returns a page of repositories accessed most recently by the current user.
|
Page<Repository> |
findByCurrentUser(Permission permission,
PageRequest pageRequest)
Returns a page of repositories accessed most recently by the current user.
|
@Nonnull Page<Repository> findByCurrentUser(@Nonnull PageRequest pageRequest)
can currently access are returned.
This method provides exactly the same result as findByCurrentUser(Permission, PageRequest) invoked
with Permission.REPO_READ.
pageRequest - describes the page of recently accessed repositories to retrieveAuthorisationException - if there is no current effective userfindByCurrentUser(Permission, PageRequest)@Nonnull Page<Repository> findByCurrentUser(@Nonnull Permission permission, @Nonnull PageRequest pageRequest)
permission
are returned.permission - the permission that the effective user has to have with regards to the returned repositories.
The permission has to be repository-relatedpageRequest - describes the page of recently accessed repositories to retrieveAuthorisationException - if there is no current effective userArgumentValidationException - if the permission is not related to repositoryCopyright © 2021 Atlassian. All rights reserved.