public interface

RecentlyAccessedRepositoriesService

com.atlassian.bitbucket.user.RecentlyAccessedRepositoriesService

Class Overview

Provides a history of repositories users have browsed.

Summary

Public Methods
@Nonnull Page<Repository> findByCurrentUser(Permission permission, PageRequest pageRequest)
Returns a page of repositories accessed most recently by the current user.
@Nonnull Page<Repository> findByCurrentUser(PageRequest pageRequest)
Returns a page of repositories accessed most recently by the current user.

Public Methods

@Nonnull public Page<Repository> findByCurrentUser (Permission permission, PageRequest pageRequest)

Returns a page of repositories accessed most recently by the current user. The list is ordered most recent to least recent. Only repositories the user can currently access at the level specified by permission are returned.

Parameters
permission the permission that the effective user has to have with regards to the returned repositories. The permission has to be repository-related
pageRequest describes the page of recently accessed repositories to retrieve
Throws
AuthorisationException if there is no current effective user
ArgumentValidationException if the permission is not related to repository

@Nonnull public Page<Repository> findByCurrentUser (PageRequest pageRequest)

Returns a page of repositories accessed most recently by the current user. The list is ordered most recent to least recent. Only repositories the user can currently access are returned.

This method provides exactly the same result as findByCurrentUser(Permission, PageRequest) invoked with REPO_READ.

Parameters
pageRequest describes the page of recently accessed repositories to retrieve
Throws
AuthorisationException if there is no current effective user