public class CreateRefControl extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
checkCreateRef(com.google.inject.Provider<? extends CurrentUser> user,
org.eclipse.jgit.lib.Repository repo,
Branch.NameKey branch,
org.eclipse.jgit.revwalk.RevObject object)
Checks whether the
CurrentUser can create a new Git ref. |
public void checkCreateRef(com.google.inject.Provider<? extends CurrentUser> user, org.eclipse.jgit.lib.Repository repo, Branch.NameKey branch, org.eclipse.jgit.revwalk.RevObject object) throws AuthException, PermissionBackendException, NoSuchProjectException, IOException, ResourceConflictException
CurrentUser can create a new Git ref.user - the user performing the operationrepo - repository on which user want to createbranch - the branch the new RevObject should be created onobject - the object the user will start the reference withAuthException - if creation is denied; the message explains the denial.PermissionBackendException - on failure of permission checks.ResourceConflictException - if the project state does not permit the operationNoSuchProjectExceptionIOException