@Singleton public class CreateRefControl extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
checkCreateRef(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(org.eclipse.jgit.lib.Repository repo,
Branch.NameKey branch,
org.eclipse.jgit.revwalk.RevObject object)
throws AuthException,
PermissionBackendException,
NoSuchProjectException,
IOException
CurrentUser can create a new Git ref.repo - 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.NoSuchProjectExceptionIOException