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 SummaryFields inherited from class org.eclipse.jgit.lib.RefDatabaseadditionalRefsNames, ALL, MAX_SYMBOLIC_REF_DEPTH, SEARCH_PATH
- 
Method SummaryModifier 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.DelegateRefDatabaseclose, create, getAdditionalRefs, getDelegate, hasFastTipsWithSha1, hasVersioning, peel, performsAtomicTransactions, refreshMethods inherited from class org.eclipse.jgit.lib.RefDatabasefindRef, findRef, getRef
- 
Method Details- 
isNameConflicting- Overrides:
- isNameConflictingin class- DelegateRefDatabase
 
- 
getConflictingNames- Overrides:
- getConflictingNamesin class- DelegateRefDatabase
- Throws:
- IOException
 
- 
newUpdate- Overrides:
- newUpdatein class- DelegateRefDatabase
 
- 
newRename- Overrides:
- newRenamein class- DelegateRefDatabase
 
- 
newBatchUpdatepublic org.eclipse.jgit.lib.BatchRefUpdate newBatchUpdate()- Overrides:
- newBatchUpdatein class- DelegateRefDatabase
 
- 
exactRef- Overrides:
- exactRefin class- DelegateRefDatabase
- Throws:
- IOException
 
- 
getRefs- Overrides:
- getRefsin class- DelegateRefDatabase
- Throws:
- IOException
 
- 
getRefsByPrefix- Overrides:
- getRefsByPrefixin class- DelegateRefDatabase
- Throws:
- IOException
 
- 
getRefsByPrefixWithExclusionspublic List<org.eclipse.jgit.lib.Ref> getRefsByPrefixWithExclusions(String include, Set<String> excludes) throws IOException - Overrides:
- getRefsByPrefixWithExclusionsin class- DelegateRefDatabase
- Throws:
- IOException
 
- 
getRefsByPrefix- Overrides:
- getRefsByPrefixin class- DelegateRefDatabase
- Throws:
- IOException
 
- 
exactRef- Overrides:
- exactRefin class- DelegateRefDatabase
- Throws:
- IOException
 
- 
firstExactRef- Overrides:
- firstExactRefin class- DelegateRefDatabase
- Throws:
- IOException
 
- 
getRefs- Overrides:
- getRefsin class- DelegateRefDatabase
- Throws:
- IOException
 
- 
getTipsWithSha1@NonNull public Set<org.eclipse.jgit.lib.Ref> getTipsWithSha1(org.eclipse.jgit.lib.ObjectId id) throws IOException - Overrides:
- getTipsWithSha1in class- DelegateRefDatabase
- Throws:
- IOException
 
- 
hasRefs- Overrides:
- hasRefsin class- DelegateRefDatabase
- Throws:
- IOException
 
 
-