public class StarredChangesUtil extends Object
Modifier and Type | Class and Description |
---|---|
static class |
StarredChangesUtil.IllegalLabelException |
static class |
StarredChangesUtil.StarField |
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_LABEL |
static com.google.common.collect.ImmutableSortedSet<String> |
DEFAULT_LABELS |
static String |
IGNORE_LABEL |
Modifier and Type | Method and Description |
---|---|
Set<com.google.gerrit.reviewdb.client.Change.Id> |
byAccount(com.google.gerrit.reviewdb.client.Account.Id accountId,
String label)
Deprecated.
|
com.google.common.collect.ImmutableMultimap<com.google.gerrit.reviewdb.client.Account.Id,String> |
byChange(com.google.gerrit.reviewdb.client.Change.Id changeId) |
Set<com.google.gerrit.reviewdb.client.Account.Id> |
byChange(com.google.gerrit.reviewdb.client.Change.Id changeId,
String label) |
com.google.common.collect.ImmutableMultimap<com.google.gerrit.reviewdb.client.Account.Id,String> |
byChangeFromIndex(com.google.gerrit.reviewdb.client.Change.Id changeId) |
com.google.common.collect.ImmutableSortedSet<String> |
getLabels(com.google.gerrit.reviewdb.client.Account.Id accountId,
com.google.gerrit.reviewdb.client.Change.Id changeId) |
org.eclipse.jgit.lib.ObjectId |
getObjectId(com.google.gerrit.reviewdb.client.Account.Id accountId,
com.google.gerrit.reviewdb.client.Change.Id changeId) |
com.google.common.collect.ImmutableSortedSet<String> |
star(com.google.gerrit.reviewdb.client.Account.Id accountId,
com.google.gerrit.reviewdb.client.Project.NameKey project,
com.google.gerrit.reviewdb.client.Change.Id changeId,
Set<String> labelsToAdd,
Set<String> labelsToRemove) |
void |
unstarAll(com.google.gerrit.reviewdb.client.Project.NameKey project,
com.google.gerrit.reviewdb.client.Change.Id changeId) |
static org.eclipse.jgit.lib.ObjectId |
writeLabels(org.eclipse.jgit.lib.Repository repo,
SortedSet<String> labels) |
public static final String DEFAULT_LABEL
public static final String IGNORE_LABEL
public static final com.google.common.collect.ImmutableSortedSet<String> DEFAULT_LABELS
public com.google.common.collect.ImmutableSortedSet<String> getLabels(com.google.gerrit.reviewdb.client.Account.Id accountId, com.google.gerrit.reviewdb.client.Change.Id changeId) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public com.google.common.collect.ImmutableSortedSet<String> star(com.google.gerrit.reviewdb.client.Account.Id accountId, com.google.gerrit.reviewdb.client.Project.NameKey project, com.google.gerrit.reviewdb.client.Change.Id changeId, Set<String> labelsToAdd, Set<String> labelsToRemove) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public void unstarAll(com.google.gerrit.reviewdb.client.Project.NameKey project, com.google.gerrit.reviewdb.client.Change.Id changeId) throws com.google.gwtorm.server.OrmException, NoSuchChangeException
com.google.gwtorm.server.OrmException
NoSuchChangeException
public com.google.common.collect.ImmutableMultimap<com.google.gerrit.reviewdb.client.Account.Id,String> byChange(com.google.gerrit.reviewdb.client.Change.Id changeId) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public Set<com.google.gerrit.reviewdb.client.Account.Id> byChange(com.google.gerrit.reviewdb.client.Change.Id changeId, String label) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
@Deprecated public Set<com.google.gerrit.reviewdb.client.Change.Id> byAccount(com.google.gerrit.reviewdb.client.Account.Id accountId, String label) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public com.google.common.collect.ImmutableMultimap<com.google.gerrit.reviewdb.client.Account.Id,String> byChangeFromIndex(com.google.gerrit.reviewdb.client.Change.Id changeId) throws com.google.gwtorm.server.OrmException, NoSuchChangeException
com.google.gwtorm.server.OrmException
NoSuchChangeException
public org.eclipse.jgit.lib.ObjectId getObjectId(com.google.gerrit.reviewdb.client.Account.Id accountId, com.google.gerrit.reviewdb.client.Change.Id changeId)
public static org.eclipse.jgit.lib.ObjectId writeLabels(org.eclipse.jgit.lib.Repository repo, SortedSet<String> labels) throws IOException
IOException