Package com.google.gerrit.server.git
Class PermissionAwareReadOnlyRefDatabase
- java.lang.Object
-
- org.eclipse.jgit.lib.RefDatabase
-
- com.google.gerrit.server.git.DelegateRefDatabase
-
- com.google.gerrit.server.git.PermissionAwareReadOnlyRefDatabase
-
public class PermissionAwareReadOnlyRefDatabase extends DelegateRefDatabase
Wrapper aroundDelegateRefDatabase
that filters all refs usingPermissionBackend
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.jgit.lib.Ref
exactRef(String name)
Map<String,org.eclipse.jgit.lib.Ref>
exactRef(String... refs)
org.eclipse.jgit.lib.Ref
firstExactRef(String... refs)
Map<String,org.eclipse.jgit.lib.Ref>
getRefs(String prefix)
List<org.eclipse.jgit.lib.Ref>
getRefsByPrefix(String prefix)
boolean
isNameConflicting(String name)
org.eclipse.jgit.lib.RefRename
newRename(String fromName, String toName)
org.eclipse.jgit.lib.RefUpdate
newUpdate(String name, boolean detach)
-
Methods inherited from class com.google.gerrit.server.git.DelegateRefDatabase
close, create, getAdditionalRefs, peel
-
-
-
-
Method Detail
-
isNameConflicting
public boolean isNameConflicting(String name)
- Overrides:
isNameConflicting
in classDelegateRefDatabase
-
newUpdate
public org.eclipse.jgit.lib.RefUpdate newUpdate(String name, boolean detach)
- Overrides:
newUpdate
in classDelegateRefDatabase
-
newRename
public org.eclipse.jgit.lib.RefRename newRename(String fromName, String toName)
- Overrides:
newRename
in classDelegateRefDatabase
-
exactRef
public org.eclipse.jgit.lib.Ref exactRef(String name) throws IOException
- Overrides:
exactRef
in classDelegateRefDatabase
- Throws:
IOException
-
getRefs
public Map<String,org.eclipse.jgit.lib.Ref> getRefs(String prefix) throws IOException
- Overrides:
getRefs
in classDelegateRefDatabase
- Throws:
IOException
-
getRefsByPrefix
public List<org.eclipse.jgit.lib.Ref> getRefsByPrefix(String prefix) throws IOException
- Overrides:
getRefsByPrefix
in classorg.eclipse.jgit.lib.RefDatabase
- Throws:
IOException
-
exactRef
@NonNull public Map<String,org.eclipse.jgit.lib.Ref> exactRef(String... refs) throws IOException
- Overrides:
exactRef
in classorg.eclipse.jgit.lib.RefDatabase
- Throws:
IOException
-
firstExactRef
@Nullable public org.eclipse.jgit.lib.Ref firstExactRef(String... refs) throws IOException
- Overrides:
firstExactRef
in classorg.eclipse.jgit.lib.RefDatabase
- Throws:
IOException
-
-