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