/******************************************************************************* * Copyright (c) 2009 Frank Becker and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Frank Becker - initial API and implementation *******************************************************************************/ package org.eclipse.mylyn.internal.bugzilla.core; import java.util.LinkedHashMap; import java.util.LinkedList; import java.util.List; import java.util.Map; import org.eclipse.mylyn.tasks.core.RepositoryResponse; /** * @author Frank Becker */ public class BugzillaRepositoryResponse extends RepositoryResponse { private Map>> responseData = new LinkedHashMap>>(); public BugzillaRepositoryResponse(ResponseKind reposonseKind, String taskId) { super(reposonseKind, taskId); } public BugzillaRepositoryResponse() { // ignore } public Map>> getResponseData() { return responseData; } public void setResponseData(Map>> responseData) { this.responseData = responseData; } public void addResponseData(String dt1, String dt2, String response) { Map> responseMap = responseData.get(dt1); if (responseMap == null) { responseMap = new LinkedHashMap>(); responseData.put(dt1, responseMap); } List responseList = responseMap.get(dt2); if (responseList == null) { responseList = new LinkedList(); responseMap.put(dt2, responseList); } responseList.add(response); } }