blob: 52d0b6a177da104647f64a1e8239ddbf420da164 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2004, 2008 Tasktop Technologies 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:
* Tasktop Technologies - initial API and implementation
*******************************************************************************/
package org.eclipse.mylyn.bugzilla.deprecated;
import org.eclipse.mylyn.internal.bugzilla.core.BugzillaClient;
import org.eclipse.mylyn.internal.bugzilla.core.BugzillaCorePlugin;
import org.eclipse.mylyn.internal.bugzilla.core.IBugzillaConstants;
import org.eclipse.mylyn.internal.tasks.core.AbstractTask;
/**
* @author Mik Kersten
* @author Rob Elves
* @deprecated
*/
@Deprecated
public class BugzillaTask extends AbstractTask {
private String severity;
private String product;
public BugzillaTask(String repositoryUrl, String id, String label) {
super(repositoryUrl, id, label);
setUrl(BugzillaClient.getBugUrlWithoutLogin(repositoryUrl, id));
}
@Override
public String getTaskKind() {
return IBugzillaConstants.BUGZILLA_TASK_KIND;
}
@Override
public String toString() {
return "Bugzilla task: " + getHandleIdentifier();
}
@Override
public String getConnectorKind() {
return BugzillaCorePlugin.CONNECTOR_KIND;
}
public String getSeverity() {
return severity;
}
public void setSeverity(String severity) {
this.severity = severity;
}
public String getProduct() {
return product;
}
public void setProduct(String product) {
this.product = product;
}
@Override
public boolean isLocal() {
// ignore
return false;
}
}