Add a project admin screen to show the projects you own

Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
Shawn O. Pearce
2008-12-31 18:12:11 -08:00
parent 0401f52dca
commit 53127b3a89
12 changed files with 400 additions and 0 deletions

View File

@@ -31,6 +31,9 @@ public interface ProjectAccess extends Access<Project, Project.NameKey> {
@Query("ORDER BY name")
ResultSet<Project> all() throws OrmException;
@Query("WHERE ownerGroupId = ?")
ResultSet<Project> ownedByGroup(AccountGroup.Id groupId) throws OrmException;
@Query("WHERE name.name >= ? AND name.name <= ? ORDER BY name LIMIT ?")
ResultSet<Project> suggestByName(String nameA, String nameB, int limit)
throws OrmException;