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.Repository
Wrapper aroundDelegateRepository
that 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 void
create(boolean bare)
org.eclipse.jgit.attributes.AttributesNodeProvider
createAttributesNodeProvider()
org.eclipse.jgit.lib.StoredConfig
getConfig()
String
getIdentifier()
org.eclipse.jgit.lib.ObjectDatabase
getObjectDatabase()
org.eclipse.jgit.lib.RefDatabase
getRefDatabase()
org.eclipse.jgit.lib.ReflogReader
getReflogReader(String refName)
void
notifyIndexChanged(boolean internal)
void
scanForRepoChanges()
-
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:
create
in classorg.eclipse.jgit.lib.Repository
- Throws:
IOException
-
getIdentifier
public String getIdentifier()
- Specified by:
getIdentifier
in classorg.eclipse.jgit.lib.Repository
-
getObjectDatabase
public org.eclipse.jgit.lib.ObjectDatabase getObjectDatabase()
- Specified by:
getObjectDatabase
in classorg.eclipse.jgit.lib.Repository
-
getConfig
public org.eclipse.jgit.lib.StoredConfig getConfig()
- Specified by:
getConfig
in classorg.eclipse.jgit.lib.Repository
-
createAttributesNodeProvider
public org.eclipse.jgit.attributes.AttributesNodeProvider createAttributesNodeProvider()
- Specified by:
createAttributesNodeProvider
in classorg.eclipse.jgit.lib.Repository
-
scanForRepoChanges
public void scanForRepoChanges() throws IOException
- Specified by:
scanForRepoChanges
in classorg.eclipse.jgit.lib.Repository
- Throws:
IOException
-
notifyIndexChanged
public void notifyIndexChanged(boolean internal)
- Specified by:
notifyIndexChanged
in classorg.eclipse.jgit.lib.Repository
-
getReflogReader
public org.eclipse.jgit.lib.ReflogReader getReflogReader(String refName) throws IOException
- Specified by:
getReflogReader
in classorg.eclipse.jgit.lib.Repository
- Throws:
IOException
-
-