Draft status patchset and change prefilter

Prefilters patchsets and change messages when generating ChangeDetails
based on whether or not the current user can see a draft status
patchset. Also prefilters changes based on draft change status and
user status in ChangeList. Clients will only receive patchsets or
changes that they can see.

Change-Id: I14434e7907fd23cb036cd231684b04b7983f2087
This commit is contained in:
Jason Tsay
2011-08-09 15:58:48 -07:00
committed by Mohan Zhang
parent 2c18a88823
commit cd58931fd8
4 changed files with 65 additions and 5 deletions

View File

@@ -188,6 +188,10 @@ public class ChangeDetail {
currentDetail = d;
}
public void setCurrentPatchSetId(final PatchSet.Id id) {
currentPatchSetId = id;
}
public String getDescription() {
return currentDetail != null ? currentDetail.getInfo().getMessage() : "";
}