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 aroundDelegateRefDatabasethat filters all refs usingPermissionBackend.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.jgit.lib.RefexactRef(String name)Map<String,org.eclipse.jgit.lib.Ref>exactRef(String... refs)org.eclipse.jgit.lib.ReffirstExactRef(String... refs)Collection<String>getConflictingNames(String name)List<org.eclipse.jgit.lib.Ref>getRefs()Map<String,org.eclipse.jgit.lib.Ref>getRefs(String prefix)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.BatchRefUpdatenewBatchUpdate()org.eclipse.jgit.lib.RefRenamenewRename(String fromName, String toName)org.eclipse.jgit.lib.RefUpdatenewUpdate(String name, boolean detach)-
Methods inherited from class com.google.gerrit.server.git.DelegateRefDatabase
close, create, getAdditionalRefs, getDelegate, hasFastTipsWithSha1, hasVersioning, peel, performsAtomicTransactions, refresh
-
-
-
-
Method Detail
-
isNameConflicting
public boolean isNameConflicting(String name)
- Overrides:
isNameConflictingin classDelegateRefDatabase
-
getConflictingNames
public Collection<String> getConflictingNames(String name) throws IOException
- Overrides:
getConflictingNamesin classDelegateRefDatabase- Throws:
IOException
-
newUpdate
public org.eclipse.jgit.lib.RefUpdate newUpdate(String name, boolean detach)
- Overrides:
newUpdatein classDelegateRefDatabase
-
newRename
public org.eclipse.jgit.lib.RefRename newRename(String fromName, String toName)
- Overrides:
newRenamein classDelegateRefDatabase
-
newBatchUpdate
public org.eclipse.jgit.lib.BatchRefUpdate newBatchUpdate()
- Overrides:
newBatchUpdatein classDelegateRefDatabase
-
exactRef
public org.eclipse.jgit.lib.Ref exactRef(String name) throws IOException
- Overrides:
exactRefin classDelegateRefDatabase- Throws:
IOException
-
getRefs
public Map<String,org.eclipse.jgit.lib.Ref> getRefs(String prefix) throws IOException
- Overrides:
getRefsin classDelegateRefDatabase- Throws:
IOException
-
getRefsByPrefix
public List<org.eclipse.jgit.lib.Ref> getRefsByPrefix(String prefix) throws IOException
- 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
public List<org.eclipse.jgit.lib.Ref> getRefsByPrefix(String... prefixes) throws IOException
- Overrides:
getRefsByPrefixin classDelegateRefDatabase- Throws:
IOException
-
exactRef
@NonNull public Map<String,org.eclipse.jgit.lib.Ref> exactRef(String... refs) throws IOException
- Overrides:
exactRefin classDelegateRefDatabase- Throws:
IOException
-
firstExactRef
@Nullable public org.eclipse.jgit.lib.Ref firstExactRef(String... refs) throws IOException
- Overrides:
firstExactRefin classDelegateRefDatabase- Throws:
IOException
-
getRefs
public List<org.eclipse.jgit.lib.Ref> getRefs() throws IOException
- 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
public boolean hasRefs() throws IOException- Overrides:
hasRefsin classDelegateRefDatabase- Throws:
IOException
-
-