blob: 143bd35eb213bcbed77ecc40d96726f1a3f25658 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2013 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.rest.core;
import java.io.Serializable;
import java.util.Map;
import org.eclipse.mylyn.internal.bugzilla.rest.core.response.data.Field;
import org.eclipse.mylyn.internal.bugzilla.rest.core.response.data.Parameters;
import org.eclipse.mylyn.internal.bugzilla.rest.core.response.data.Product;
public class BugzillaRestConfiguration implements Serializable {
private static final long serialVersionUID = 4078343382335204804L;
private final String repositoryId;
private Map<String, Field> fields;
private Map<String, Product> products;
private Parameters parameters;
public BugzillaRestConfiguration(String repositoryId) {
this.repositoryId = repositoryId;
}
public String getRepositoryId() {
return repositoryId;
}
void setFields(Map<String, Field> fields) {
this.fields = fields;
}
public Map<String, Field> getFields() {
return fields;
}
public Field getFieldWithName(String fieldName) {
return fields.get(fieldName);
}
void setProducts(Map<String, Product> products) {
this.products = products;
}
public Map<String, Product> getProducts() {
return products;
}
public Product getProductWithName(String productName) {
return products.get(productName);
}
void setParameters(Parameters parameters) {
this.parameters = parameters;
}
public Parameters getParameters() {
return parameters;
}
}