public class ProjectControl
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
ProjectControl.AssistedFactory |
static class |
ProjectControl.Factory |
static class |
ProjectControl.GenericFactory |
protected static class |
ProjectControl.Metrics |
Modifier and Type | Method and Description |
---|---|
Capable |
canPushToAtLeastOneRef() |
com.google.gerrit.server.project.ChangeControl |
controlFor(ChangeNotes notes) |
com.google.gerrit.server.project.ChangeControl |
controlFor(ReviewDb db,
Change change) |
RefControl |
controlForRef(Branch.NameKey ref) |
RefControl |
controlForRef(java.lang.String refName) |
ProjectControl |
forUser(CurrentUser who) |
Project |
getProject() |
ProjectState |
getProjectState() |
CurrentUser |
getUser() |
boolean |
isOwner()
Is this user a project owner?
|
public ProjectControl forUser(CurrentUser who)
public com.google.gerrit.server.project.ChangeControl controlFor(ReviewDb db, Change change) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public com.google.gerrit.server.project.ChangeControl controlFor(ChangeNotes notes)
public RefControl controlForRef(Branch.NameKey ref)
public RefControl controlForRef(java.lang.String refName)
public CurrentUser getUser()
public ProjectState getProjectState()
public Project getProject()
public boolean isOwner()
public Capable canPushToAtLeastOneRef()
Capable.OK
if the user can upload to at least one reference. Does not check
Contributor Agreements.