public class ChangeControl extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ChangeControl.Factory |
static class |
ChangeControl.GenericFactory |
Modifier and Type | Method and Description |
---|---|
boolean |
canDelete(Change.Status status)
Can this user delete this change?
|
ChangeControl |
forUser(CurrentUser who) |
Change |
getChange() |
Change.Id |
getId() |
ChangeNotes |
getNotes() |
Project |
getProject() |
ProjectControl |
getProjectControl() |
RefControl |
getRefControl() |
CurrentUser |
getUser() |
Collection<PatchSet> |
getVisiblePatchSets(Collection<PatchSet> patchSets,
ReviewDb db) |
boolean |
isPatchVisible(PatchSet ps,
ChangeData cd)
Can this user see the given patchset?
|
boolean |
isRefVisible()
Can the user see this change? Does not account for draft status
|
boolean |
isVisible(ReviewDb db)
Can this user see this change?
|
public ChangeControl forUser(CurrentUser who)
public RefControl getRefControl()
public CurrentUser getUser()
public ProjectControl getProjectControl()
public Project getProject()
public Change.Id getId()
public Change getChange()
public ChangeNotes getNotes()
public boolean isVisible(ReviewDb db) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public boolean isRefVisible()
public boolean isPatchVisible(PatchSet ps, ChangeData cd) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public Collection<PatchSet> getVisiblePatchSets(Collection<PatchSet> patchSets, ReviewDb db) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
- an error occurred reading the database.public boolean canDelete(Change.Status status)