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
Wrapper around
DelegateRefDatabase
that filters all refs using PermissionBackend
.-
Field Summary
Fields inherited from class org.eclipse.jgit.lib.RefDatabase
additionalRefsNames, ALL, MAX_SYMBOLIC_REF_DEPTH, SEARCH_PATH
-
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.jgit.lib.Ref
org.eclipse.jgit.lib.Ref
firstExactRef
(String... refs) getConflictingNames
(String name) List<org.eclipse.jgit.lib.Ref>
getRefs()
List<org.eclipse.jgit.lib.Ref>
getRefsByPrefix
(String prefix) List<org.eclipse.jgit.lib.Ref>
getRefsByPrefix
(String... prefixes) List<org.eclipse.jgit.lib.Ref>
getRefsByPrefixWithExclusions
(String include, Set<String> excludes) Set<org.eclipse.jgit.lib.Ref>
getTipsWithSha1
(org.eclipse.jgit.lib.ObjectId id) boolean
hasRefs()
boolean
isNameConflicting
(String name) org.eclipse.jgit.lib.BatchRefUpdate
org.eclipse.jgit.lib.RefRename
org.eclipse.jgit.lib.RefUpdate
Methods inherited from class com.google.gerrit.server.git.DelegateRefDatabase
close, create, getAdditionalRefs, getDelegate, hasFastTipsWithSha1, hasVersioning, peel, performsAtomicTransactions, refresh
Methods inherited from class org.eclipse.jgit.lib.RefDatabase
findRef, findRef, getRef
-
Method Details
-
isNameConflicting
- Overrides:
isNameConflicting
in classDelegateRefDatabase
-
getConflictingNames
- Overrides:
getConflictingNames
in classDelegateRefDatabase
- Throws:
IOException
-
newUpdate
- Overrides:
newUpdate
in classDelegateRefDatabase
-
newRename
- Overrides:
newRename
in classDelegateRefDatabase
-
newBatchUpdate
public org.eclipse.jgit.lib.BatchRefUpdate newBatchUpdate()- Overrides:
newBatchUpdate
in classDelegateRefDatabase
-
exactRef
- Overrides:
exactRef
in classDelegateRefDatabase
- Throws:
IOException
-
getRefs
- Overrides:
getRefs
in classDelegateRefDatabase
- Throws:
IOException
-
getRefsByPrefix
- Overrides:
getRefsByPrefix
in classDelegateRefDatabase
- Throws:
IOException
-
getRefsByPrefixWithExclusions
public List<org.eclipse.jgit.lib.Ref> getRefsByPrefixWithExclusions(String include, Set<String> excludes) throws IOException - Overrides:
getRefsByPrefixWithExclusions
in classDelegateRefDatabase
- Throws:
IOException
-
getRefsByPrefix
- Overrides:
getRefsByPrefix
in classDelegateRefDatabase
- Throws:
IOException
-
exactRef
- Overrides:
exactRef
in classDelegateRefDatabase
- Throws:
IOException
-
firstExactRef
- Overrides:
firstExactRef
in classDelegateRefDatabase
- Throws:
IOException
-
getRefs
- Overrides:
getRefs
in classDelegateRefDatabase
- Throws:
IOException
-
getTipsWithSha1
@NonNull public Set<org.eclipse.jgit.lib.Ref> getTipsWithSha1(org.eclipse.jgit.lib.ObjectId id) throws IOException - Overrides:
getTipsWithSha1
in classDelegateRefDatabase
- Throws:
IOException
-
hasRefs
- Overrides:
hasRefs
in classDelegateRefDatabase
- Throws:
IOException
-