Package com.google.gerrit.server.git
Class UsersSelfAdvertiseRefsHook
- java.lang.Object
-
- com.google.gerrit.server.git.UsersSelfAdvertiseRefsHook
-
- All Implemented Interfaces:
org.eclipse.jgit.transport.AdvertiseRefsHook
public class UsersSelfAdvertiseRefsHook extends Object implements org.eclipse.jgit.transport.AdvertiseRefsHook
Advertisesrefs/users/self
for authenticated users when interacting with theAll-Users
repository.
-
-
Constructor Summary
Constructors Constructor Description UsersSelfAdvertiseRefsHook(com.google.inject.Provider<CurrentUser> userProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
advertiseRefs(org.eclipse.jgit.transport.ReceivePack receivePack)
void
advertiseRefs(org.eclipse.jgit.transport.UploadPack uploadPack)
-
-
-
Constructor Detail
-
UsersSelfAdvertiseRefsHook
@Inject public UsersSelfAdvertiseRefsHook(com.google.inject.Provider<CurrentUser> userProvider)
-
-
Method Detail
-
advertiseRefs
public void advertiseRefs(org.eclipse.jgit.transport.UploadPack uploadPack) throws org.eclipse.jgit.transport.ServiceMayNotContinueException
- Specified by:
advertiseRefs
in interfaceorg.eclipse.jgit.transport.AdvertiseRefsHook
- Throws:
org.eclipse.jgit.transport.ServiceMayNotContinueException
-
advertiseRefs
public void advertiseRefs(org.eclipse.jgit.transport.ReceivePack receivePack) throws org.eclipse.jgit.transport.ServiceMayNotContinueException
- Specified by:
advertiseRefs
in interfaceorg.eclipse.jgit.transport.AdvertiseRefsHook
- Throws:
org.eclipse.jgit.transport.ServiceMayNotContinueException
-
-