public class StarredChangesUtil
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
StarredChangesUtil.IllegalLabelException |
static class |
StarredChangesUtil.StarField |
static class |
StarredChangesUtil.StarRef |
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<Change.Id> |
byAccount(Account.Id accountId,
java.lang.String label)
Deprecated.
|
com.google.common.collect.ImmutableMap<Account.Id,StarredChangesUtil.StarRef> |
byChange(Change.Id changeId) |
java.util.Set<Account.Id> |
byChange(Change.Id changeId,
java.lang.String label) |
com.google.common.collect.ImmutableListMultimap<Account.Id,java.lang.String> |
byChangeFromIndex(Change.Id changeId) |
com.google.common.collect.ImmutableSortedSet<java.lang.String> |
getLabels(Account.Id accountId,
Change.Id changeId) |
org.eclipse.jgit.lib.ObjectId |
getObjectId(Account.Id accountId,
Change.Id changeId) |
com.google.common.collect.ImmutableSortedSet<java.lang.String> |
star(Account.Id accountId,
Project.NameKey project,
Change.Id changeId,
java.util.Set<java.lang.String> labelsToAdd,
java.util.Set<java.lang.String> labelsToRemove) |
void |
unstarAll(Project.NameKey project,
Change.Id changeId) |
static org.eclipse.jgit.lib.ObjectId |
writeLabels(org.eclipse.jgit.lib.Repository repo,
java.util.Collection<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(Account.Id accountId, Change.Id changeId) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public com.google.common.collect.ImmutableSortedSet<java.lang.String> star(Account.Id accountId, Project.NameKey project, 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(Project.NameKey project, Change.Id changeId) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public com.google.common.collect.ImmutableMap<Account.Id,StarredChangesUtil.StarRef> byChange(Change.Id changeId) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public java.util.Set<Account.Id> byChange(Change.Id changeId, java.lang.String label) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
@Deprecated public java.util.Set<Change.Id> byAccount(Account.Id accountId, java.lang.String label) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public com.google.common.collect.ImmutableListMultimap<Account.Id,java.lang.String> byChangeFromIndex(Change.Id changeId) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public org.eclipse.jgit.lib.ObjectId getObjectId(Account.Id accountId, Change.Id changeId)
public static org.eclipse.jgit.lib.ObjectId writeLabels(org.eclipse.jgit.lib.Repository repo, java.util.Collection<java.lang.String> labels) throws java.io.IOException
java.io.IOException