public interface ProjectCache
Modifier and Type | Method and Description |
---|---|
java.lang.Iterable<com.google.gerrit.reviewdb.client.Project.NameKey> |
all() |
java.lang.Iterable<com.google.gerrit.reviewdb.client.Project.NameKey> |
byName(java.lang.String prefix)
Filter the set of registered project names by common prefix.
|
ProjectState |
checkedGet(com.google.gerrit.reviewdb.client.Project.NameKey projectName)
Get the cached data for a project by its unique name.
|
void |
evict(com.google.gerrit.reviewdb.client.Project.NameKey p)
Invalidate the cached information about the given project.
|
void |
evict(com.google.gerrit.reviewdb.client.Project p)
Invalidate the cached information about the given project.
|
ProjectState |
get(com.google.gerrit.reviewdb.client.Project.NameKey projectName)
Get the cached data for a project by its unique name.
|
ProjectState |
getAllProjects() |
ProjectState |
getAllUsers() |
java.util.Set<com.google.gerrit.reviewdb.client.AccountGroup.UUID> |
guessRelevantGroupUUIDs() |
void |
onCreateProject(com.google.gerrit.reviewdb.client.Project.NameKey newProjectName)
Notify the cache that a new project was constructed.
|
void |
remove(com.google.gerrit.reviewdb.client.Project.NameKey name)
Remove information about the given project from the cache.
|
void |
remove(com.google.gerrit.reviewdb.client.Project p)
Remove information about the given project from the cache.
|
ProjectState getAllProjects()
ProjectState getAllUsers()
ProjectState get(com.google.gerrit.reviewdb.client.Project.NameKey projectName)
projectName
- name of the project.checkedGet(com.google.gerrit.reviewdb.client.Project.NameKey)
ProjectState checkedGet(com.google.gerrit.reviewdb.client.Project.NameKey projectName) throws java.io.IOException
projectName
- name of the project.java.io.IOException
- when there was an error.void evict(com.google.gerrit.reviewdb.client.Project p)
void evict(com.google.gerrit.reviewdb.client.Project.NameKey p)
void remove(com.google.gerrit.reviewdb.client.Project p)
all()
.void remove(com.google.gerrit.reviewdb.client.Project.NameKey name)
all()
.java.lang.Iterable<com.google.gerrit.reviewdb.client.Project.NameKey> all()
java.util.Set<com.google.gerrit.reviewdb.client.AccountGroup.UUID> guessRelevantGroupUUIDs()
java.lang.Iterable<com.google.gerrit.reviewdb.client.Project.NameKey> byName(java.lang.String prefix)
prefix
- common prefix.void onCreateProject(com.google.gerrit.reviewdb.client.Project.NameKey newProjectName)