public class ProjectControl extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ProjectControl.Factory |
static class |
ProjectControl.GenericFactory |
Modifier and Type | Method and Description |
---|---|
boolean |
allRefsAreVisible()
Can this user see all the refs in this projects?
|
boolean |
allRefsAreVisibleExcept(Set<String> except) |
boolean |
canAddRefs() |
com.google.gerrit.common.data.Capable |
canPushToAtLeastOneRef() |
boolean |
canReadCommit(org.eclipse.jgit.revwalk.RevWalk rw,
org.eclipse.jgit.revwalk.RevCommit commit) |
boolean |
canRunReceivePack() |
boolean |
canRunUploadPack() |
boolean |
canUpload() |
ChangeControl |
controlFor(com.google.gerrit.reviewdb.client.Change change) |
RefControl |
controlForRef(com.google.gerrit.reviewdb.client.Branch.NameKey ref) |
RefControl |
controlForRef(String refName) |
ProjectControl |
forUser(CurrentUser who) |
Set<com.google.gerrit.common.data.GroupReference> |
getAllGroups() |
CurrentUser |
getCurrentUser() |
com.google.gerrit.common.data.LabelTypes |
getLabelTypes() |
Set<com.google.gerrit.common.data.GroupReference> |
getLocalGroups() |
com.google.gerrit.reviewdb.client.Project |
getProject() |
ProjectState |
getProjectState() |
boolean |
isOwner()
Is this user a project owner? Ownership does not imply
isVisible() |
boolean |
isOwnerAnyRef()
Does this user have ownership on at least one reference name?
|
boolean |
isVisible()
Can this user see this project exists?
|
public static final int VISIBLE
public static final int OWNER
public ProjectControl forUser(CurrentUser who)
public ChangeControl controlFor(com.google.gerrit.reviewdb.client.Change change)
public RefControl controlForRef(com.google.gerrit.reviewdb.client.Branch.NameKey ref)
public RefControl controlForRef(String refName)
public CurrentUser getCurrentUser()
public ProjectState getProjectState()
public com.google.gerrit.reviewdb.client.Project getProject()
public com.google.gerrit.common.data.LabelTypes getLabelTypes()
public boolean isVisible()
public boolean canAddRefs()
public boolean canUpload()
public boolean allRefsAreVisible()
public boolean isOwner()
isVisible()
public boolean isOwnerAnyRef()
public com.google.gerrit.common.data.Capable canPushToAtLeastOneRef()
public Set<com.google.gerrit.common.data.GroupReference> getAllGroups()
public Set<com.google.gerrit.common.data.GroupReference> getLocalGroups()
public boolean canRunUploadPack()
public boolean canRunReceivePack()
public boolean canReadCommit(org.eclipse.jgit.revwalk.RevWalk rw, org.eclipse.jgit.revwalk.RevCommit commit)