public class StarredChangesUtil
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
StarredChangesUtil.IllegalLabelException |
static class |
StarredChangesUtil.StarField |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_LABEL |
static com.google.common.collect.ImmutableSortedSet<java.lang.String> |
DEFAULT_LABELS |
static java.lang.String |
IGNORE_LABEL |
Modifier and Type | Method and Description |
---|---|
java.util.Set<com.google.gerrit.reviewdb.client.Change.Id> |
byAccount(com.google.gerrit.reviewdb.client.Account.Id accountId,
java.lang.String label)
Deprecated.
|
com.google.common.collect.ImmutableMultimap<com.google.gerrit.reviewdb.client.Account.Id,java.lang.String> |
byChange(com.google.gerrit.reviewdb.client.Change.Id changeId) |
java.util.Set<com.google.gerrit.reviewdb.client.Account.Id> |
byChange(com.google.gerrit.reviewdb.client.Change.Id changeId,
java.lang.String label) |
com.google.common.collect.ImmutableMultimap<com.google.gerrit.reviewdb.client.Account.Id,java.lang.String> |
byChangeFromIndex(com.google.gerrit.reviewdb.client.Change.Id changeId) |
com.google.common.collect.ImmutableSortedSet<java.lang.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<java.lang.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,
java.util.Set<java.lang.String> labelsToAdd,
java.util.Set<java.lang.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,
java.util.SortedSet<java.lang.String> labels) |
public static final java.lang.String DEFAULT_LABEL
public static final java.lang.String IGNORE_LABEL
public static final com.google.common.collect.ImmutableSortedSet<java.lang.String> DEFAULT_LABELS
public com.google.common.collect.ImmutableSortedSet<java.lang.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<java.lang.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, java.util.Set<java.lang.String> labelsToAdd, java.util.Set<java.lang.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,java.lang.String> byChange(com.google.gerrit.reviewdb.client.Change.Id changeId) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public java.util.Set<com.google.gerrit.reviewdb.client.Account.Id> byChange(com.google.gerrit.reviewdb.client.Change.Id changeId, java.lang.String label) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
@Deprecated public java.util.Set<com.google.gerrit.reviewdb.client.Change.Id> byAccount(com.google.gerrit.reviewdb.client.Account.Id accountId, java.lang.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,java.lang.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, java.util.SortedSet<java.lang.String> labels) throws java.io.IOException
java.io.IOException