@Internal public interface CachedRepositoryDefinitionManager extends CachedRepositoryDefinitionAccessor
Modifier and Type | Method and Description |
---|---|
void |
disableCache()
Disables cache.
|
Stream<VcsRepositoryData> |
findRepositoriesByPluginKey(String pluginKey)
Returns all repositories with the given plugin key
|
List<VcsRepositoryData> |
getProjectAndLinkedRepositories()
Get all linked and project repositories current user has permission to use in his plans.
|
@NotNull Stream<VcsRepositoryData> |
getProjectRepositories(long projectId)
Returns project repositories with the given project id
|
void |
initialiseCache()
Loads all repositories into cache and enables cache.
|
void |
invalidate(long repositoryId)
Invalidates the repository and re-reads it into cache.
|
void |
remove(long repositoryId)
Removes given repository from cache
|
findAllTopLevelRepositoriesIds, findLinkedRepositoryByName, findProjectRepositoryByName, findRepositoriesByProjectId, getAllTopLevelRepositories, getLinkedRepositories, getLinkedRepositoriesForAdministration, getVcsRepositoryData
Stream<VcsRepositoryData> findRepositoriesByPluginKey(String pluginKey)
@NotNull @NotNull Stream<VcsRepositoryData> getProjectRepositories(long projectId)
List<VcsRepositoryData> getProjectAndLinkedRepositories()
void invalidate(long repositoryId)
void remove(long repositoryId)
void initialiseCache()
void disableCache()
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.