public RTQueryPage(TaskRepository taskRepository, IRepositoryQuery query) { super("Enter query parameters", taskRepository, query); try { urls = URLFactory.create(taskRepository.getRepositoryUrl()); } catch (MalformedURLException e) { throw new RuntimeException(e); } if (query != null) { this.titleString = query.getSummary(); this.queryString = query.getAttribute(RequestTrackerTaskDataHandler.QUERY_ID); } }
@Override public void applyTo(IRepositoryQuery query) { query.setAttribute(RequestTrackerTaskDataHandler.QUERY_ID, queryString); query.setUrl(urls.getBrowseTicketSearchUrl(queryString)); query.setSummary(getQueryTitle()); }