Package com.google.gerrit.server.project
Class CreateRefControl
java.lang.Object
com.google.gerrit.server.project.CreateRefControl
Manages access control for creating Git references (aka branches, tags).
- 
Method SummaryModifier and TypeMethodDescriptionvoidcheckCreateRef(com.google.inject.Provider<? extends CurrentUser> user, org.eclipse.jgit.lib.Repository repo, BranchNameKey destBranch, org.eclipse.jgit.revwalk.RevObject object, boolean forPush, BranchNameKey... sourceBranches) Checks whether theCurrentUsercan create a new Git ref.
- 
Method Details- 
checkCreateRefpublic void checkCreateRef(com.google.inject.Provider<? extends CurrentUser> user, org.eclipse.jgit.lib.Repository repo, BranchNameKey destBranch, org.eclipse.jgit.revwalk.RevObject object, boolean forPush, BranchNameKey... sourceBranches) throws AuthException, PermissionBackendException, NoSuchProjectException, IOException, ResourceConflictException Checks whether theCurrentUsercan create a new Git ref.- Parameters:
- user- the user performing the operation
- repo- repository on which user want to create
- destBranch- the branch the new- RevObjectshould be created on
- object- the object the user will start the reference with
- sourceBranches- the source ref from which the new ref is created from
- Throws:
- AuthException- if creation is denied; the message explains the denial.
- PermissionBackendException- on failure of permission checks.
- ResourceConflictException- if the project state does not permit the operation
- NoSuchProjectException
- IOException
 
 
-