Package com.google.gerrit.server.git
Class PermissionAwareRepository
- java.lang.Object
-
- org.eclipse.jgit.lib.Repository
-
- com.google.gerrit.server.git.PermissionAwareRepository
-
- All Implemented Interfaces:
AutoCloseable
public class PermissionAwareRepository extends org.eclipse.jgit.lib.RepositoryWrapper aroundDelegateRepositorythat overwritesgetRefDatabase()to return aPermissionAwareReadOnlyRefDatabase.
-
-
Constructor Summary
Constructors Constructor Description PermissionAwareRepository(org.eclipse.jgit.lib.Repository delegate, PermissionBackend.ForProject forProject)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreate(boolean bare)org.eclipse.jgit.attributes.AttributesNodeProvidercreateAttributesNodeProvider()org.eclipse.jgit.lib.StoredConfiggetConfig()StringgetIdentifier()org.eclipse.jgit.lib.ObjectDatabasegetObjectDatabase()org.eclipse.jgit.lib.RefDatabasegetRefDatabase()org.eclipse.jgit.lib.ReflogReadergetReflogReader(String refName)voidnotifyIndexChanged(boolean internal)voidscanForRepoChanges()-
Methods inherited from class org.eclipse.jgit.lib.Repository
autoGC, close, create, doClose, exactRef, findRef, fireEvent, getAdditionalHaves, getAllRefs, getAllRefsByPeeledObjectId, getBranch, getDirectory, getFS, getFullBranch, getGitwebDescription, getGlobalListenerList, getIndexFile, getListenerList, getRemoteName, getRemoteNames, getRepositoryState, getTags, getWorkTree, hasObject, incrementOpen, isBare, isValidRefName, lockDirCache, newObjectInserter, newObjectReader, normalizeBranchName, open, open, parseCommit, peel, readCherryPickHead, readCommitEditMsg, readDirCache, readMergeCommitMsg, readMergeHeads, readOrigHead, readRebaseTodo, readRevertHead, readSquashCommitMsg, renameRef, resolve, setGitwebDescription, shortenRefName, shortenRemoteBranchName, simplify, stripWorkDir, toString, updateRef, updateRef, writeCherryPickHead, writeCommitEditMsg, writeMergeCommitMsg, writeMergeHeads, writeOrigHead, writeRebaseTodoFile, writeRevertHead, writeSquashCommitMsg
-
-
-
-
Constructor Detail
-
PermissionAwareRepository
public PermissionAwareRepository(org.eclipse.jgit.lib.Repository delegate, PermissionBackend.ForProject forProject)
-
-
Method Detail
-
getRefDatabase
public org.eclipse.jgit.lib.RefDatabase getRefDatabase()
-
create
public void create(boolean bare) throws IOException- Specified by:
createin classorg.eclipse.jgit.lib.Repository- Throws:
IOException
-
getIdentifier
public String getIdentifier()
- Specified by:
getIdentifierin classorg.eclipse.jgit.lib.Repository
-
getObjectDatabase
public org.eclipse.jgit.lib.ObjectDatabase getObjectDatabase()
- Specified by:
getObjectDatabasein classorg.eclipse.jgit.lib.Repository
-
getConfig
public org.eclipse.jgit.lib.StoredConfig getConfig()
- Specified by:
getConfigin classorg.eclipse.jgit.lib.Repository
-
createAttributesNodeProvider
public org.eclipse.jgit.attributes.AttributesNodeProvider createAttributesNodeProvider()
- Specified by:
createAttributesNodeProviderin classorg.eclipse.jgit.lib.Repository
-
scanForRepoChanges
public void scanForRepoChanges() throws IOException- Specified by:
scanForRepoChangesin classorg.eclipse.jgit.lib.Repository- Throws:
IOException
-
notifyIndexChanged
public void notifyIndexChanged(boolean internal)
- Specified by:
notifyIndexChangedin classorg.eclipse.jgit.lib.Repository
-
getReflogReader
public org.eclipse.jgit.lib.ReflogReader getReflogReader(String refName) throws IOException
- Specified by:
getReflogReaderin classorg.eclipse.jgit.lib.Repository- Throws:
IOException
-
-