/*
 *  Copyright 2008 Anuradha.
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 *  under the License.
 */
package org.netbeans.cubeon.bugzilla.api.model;

/**
 * Contains basic information about bug, it will be used to represent
 * bug's list elements (rows).
 *
 * @author radoslaw.holewa
 */
public class BugSummary {

    /**
     * Closed bug status value.
     */
    public static final String CLOSED_STATUS = "CLOSED";
    /**
     * Open bug status value.
     */
    public static final String OPEN_STATUS = "OPEN";
    /**
     * Enhancment severity value.
     */
    public static final String ENHANCMENT_SERVERITY = "ENHANCMENT";
    /**
     * Bug id.
     */
    private String id;
    /**
     * Bug's short description.
     */
    private String summary;
    /**
     * Long description.
     */
    private String description;
    /**
     * Bug serverity.
     */
    private String severity;
    /**
     * Bug priority.
     */
    private String priority;
    /**
     * Bug operating system.
     */
    private String operatingSystem;
    /**
     * Bug asignee.
     */
    private String assignee;
    /**
     * Bug status.
     */
    private String status;
    /**
     * Bug resolution.
     */
    private String resolution;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getSeverity() {
        return severity;
    }

    public void setSeverity(String severity) {
        this.severity = severity;
    }

    public String getPriority() {
        return priority;
    }

    public void setPriority(String priority) {
        this.priority = priority;
    }

    public String getOperatingSystem() {
        return operatingSystem;
    }

    public void setOperatingSystem(String operatingSystem) {
        this.operatingSystem = operatingSystem;
    }

    public String getAssignee() {
        return assignee;
    }

    public void setAssignee(String assignee) {
        this.assignee = assignee;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getResolution() {
        return resolution;
    }

    public void setResolution(String resolution) {
        this.resolution = resolution;
    }

    public boolean isEnhancment() {
        return ENHANCMENT_SERVERITY.equalsIgnoreCase(severity);
    }
}
