Пример #1
0
  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);
    }
  }
Пример #2
0
 @Override
 public void applyTo(IRepositoryQuery query) {
   query.setAttribute(RequestTrackerTaskDataHandler.QUERY_ID, queryString);
   query.setUrl(urls.getBrowseTicketSearchUrl(queryString));
   query.setSummary(getQueryTitle());
 }