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.Reforg.eclipse.jgit.lib.ReffirstExactRef(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) booleanhasRefs()booleanisNameConflicting(String name) org.eclipse.jgit.lib.BatchRefUpdateorg.eclipse.jgit.lib.RefRenameorg.eclipse.jgit.lib.RefUpdateMethods inherited from class com.google.gerrit.server.git.DelegateRefDatabase
close, create, getAdditionalRefs, getDelegate, getReflogReader, getReflogReader, hasFastTipsWithSha1, hasVersioning, peel, performsAtomicTransactions, refreshMethods inherited from class org.eclipse.jgit.lib.RefDatabase
findRef, findRef, packRefs
-
Method Details
-
isNameConflicting
- Overrides:
isNameConflictingin classDelegateRefDatabase
-
getConflictingNames
- Overrides:
getConflictingNamesin classDelegateRefDatabase- Throws:
IOException
-
newUpdate
- Overrides:
newUpdatein classDelegateRefDatabase
-
newRename
- Overrides:
newRenamein classDelegateRefDatabase
-
newBatchUpdate
public org.eclipse.jgit.lib.BatchRefUpdate newBatchUpdate()- Overrides:
newBatchUpdatein classDelegateRefDatabase
-
exactRef
- Overrides:
exactRefin classDelegateRefDatabase- Throws:
IOException
-
getRefs
- Overrides:
getRefsin classDelegateRefDatabase- Throws:
IOException
-
getRefsByPrefix
- Overrides:
getRefsByPrefixin classDelegateRefDatabase- Throws:
IOException
-
getRefsByPrefixWithExclusions
public List<org.eclipse.jgit.lib.Ref> getRefsByPrefixWithExclusions(String include, Set<String> excludes) throws IOException - Overrides:
getRefsByPrefixWithExclusionsin classDelegateRefDatabase- Throws:
IOException
-
getRefsByPrefix
- Overrides:
getRefsByPrefixin classDelegateRefDatabase- Throws:
IOException
-
exactRef
- Overrides:
exactRefin classDelegateRefDatabase- Throws:
IOException
-
firstExactRef
- Overrides:
firstExactRefin classDelegateRefDatabase- Throws:
IOException
-
getRefs
- Overrides:
getRefsin classDelegateRefDatabase- Throws:
IOException
-
getTipsWithSha1
@NonNull public Set<org.eclipse.jgit.lib.Ref> getTipsWithSha1(org.eclipse.jgit.lib.ObjectId id) throws IOException - Overrides:
getTipsWithSha1in classDelegateRefDatabase- Throws:
IOException
-
hasRefs
- Overrides:
hasRefsin classDelegateRefDatabase- Throws:
IOException
-