@Test public void testGetAvailableQueries() { addStoredQuery(); addGlobalQuery(); List<EntityQuery> list = favoritesService.getAvailableQueries("defect"); Assert.assertEquals(2, list.size()); Assert.assertEquals("test_query (project)", list.get(0).getName()); Assert.assertEquals("1", list.get(0).getValue("id")); Assert.assertEquals("global_test_query (global)", list.get(1).getName()); Assert.assertEquals("1", list.get(1).getValue("id")); }
public List<EntityQuery> getAvailableQueries(String entityType) { LinkedList<EntityQuery> list = new LinkedList<EntityQuery>(); process(list, projConf.getStoredFilters(entityType), "project"); process(list, aliConfiguration.getStoredFilters(entityType), "global"); return list; }
FavoritesService extends AbstractCachingService<FavoritesService.Favorite, EntityQuery, AbstractCachingService.Callback<EntityQuery>> { public List<EntityQuery> getAvailableQueries(String entityType) { LinkedList<EntityQuery> list = new LinkedList<EntityQuery>(); process(list, projConf.getStoredFilters(entityType), "project"); process(list, aliConfiguration.getStoredFilters(entityType), "global"); return list; } }
FavoritesService extends AbstractCachingService<FavoritesService.Favorite, EntityQuery, AbstractCachingService.Callback<EntityQuery>> { public List<EntityQuery> getAvailableQueries(String entityType) { LinkedList<EntityQuery> list = new LinkedList<EntityQuery>(); process(list, projConf.getStoredFilters(entityType), "project"); process(list, aliConfiguration.getStoredFilters(entityType), "global"); return list; } FavoritesService(Project project, EntityService entityService, AliProjectConfiguration projConf, MetadataService metadataService, FilterManager filterManager, RestService restService); }
FavoritesService extends AbstractCachingService<FavoritesService.Favorite, EntityQuery, AbstractCachingService.Callback<EntityQuery>> { public List<EntityQuery> getAvailableQueries(String entityType) { LinkedList<EntityQuery> list = new LinkedList<EntityQuery>(); process(list, projConf.getStoredFilters(entityType), "project"); process(list, aliConfiguration.getStoredFilters(entityType), "global"); return list; } FavoritesService(Project project, EntityService entityService, AliProjectConfiguration projConf, MetadataService metadataService, FilterManager filterManager, RestService restService); EntityQuery getFavorite(int id, String entityType); EntityQuery getStoredQuery(String entityType, String queryNameAndKind); List<EntityQuery> getAvailableQueries(String entityType); void unresolveQuery(EntityQuery query); }
FavoritesService extends AbstractCachingService<FavoritesService.Favorite, EntityQuery, AbstractCachingService.Callback<EntityQuery>> { public List<EntityQuery> getAvailableQueries(String entityType) { LinkedList<EntityQuery> list = new LinkedList<EntityQuery>(); process(list, projConf.getStoredFilters(entityType), "project"); process(list, aliConfiguration.getStoredFilters(entityType), "global"); return list; } FavoritesService(Project project, EntityService entityService, AliProjectConfiguration projConf, MetadataService metadataService, FilterManager filterManager, RestService restService); EntityQuery getFavorite(int id, String entityType); EntityQuery getStoredQuery(String entityType, String queryNameAndKind); List<EntityQuery> getAvailableQueries(String entityType); void unresolveQuery(EntityQuery query);  }