package com.capitalone.dashboard.model;

/**
 * CollectorItem extension to store the instance, build job and build url.
 */
public class HudsonJob extends CollectorItem {
    private static final String INSTANCE_URL = "instanceUrl";
    private static final String JOB_NAME = "jobName";
    private static final String JOB_URL = "jobUrl";

    public String getInstanceUrl() {
        return (String) getOptions().get(INSTANCE_URL);
    }

    public void setInstanceUrl(String instanceUrl) {
        getOptions().put(INSTANCE_URL, instanceUrl);
    }

    public String getJobName() {
        return (String) getOptions().get(JOB_NAME);
    }

    public void setJobName(String jobName) {
        getOptions().put(JOB_NAME, jobName);
    }

    public String getJobUrl() {
        return (String) getOptions().get(JOB_URL);
    }

    public void setJobUrl(String jobUrl) {
        getOptions().put(JOB_URL, jobUrl);
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
        	return true;
        }
        if (o == null || getClass() != o.getClass()) {
        	return false;
        }

        HudsonJob hudsonJob = (HudsonJob) o;

        return getInstanceUrl().equals(hudsonJob.getInstanceUrl()) && getJobName().equals(hudsonJob.getJobName());
    }

    @Override
    public int hashCode() {
        int result = getInstanceUrl().hashCode();
        result = 31 * result + getJobName().hashCode();
        return result;
    }
}

@@ -148,16 +148,19 @@
 extends 
+Job
 Collecto
@@ -170,761 +170,8 @@
 em %7B
-%0A    private static final String INSTANCE_URL = %22instanceUrl%22;%0A    private static final String JOB_NAME = %22jobName%22;%0A    private static final String JOB_URL = %22jobUrl%22;%0A%0A    public String getInstanceUrl() %7B%0A        return (String) getOptions().get(INSTANCE_URL);%0A    %7D%0A%0A    public void setInstanceUrl(String instanceUrl) %7B%0A        getOptions().put(INSTANCE_URL, instanceUrl);%0A    %7D%0A%0A    public String getJobName() %7B%0A        return (String) getOptions().get(JOB_NAME);%0A    %7D%0A%0A    public void setJobName(String jobName) %7B%0A        getOptions().put(JOB_NAME, jobName);%0A    %7D%0A%0A    public String getJobUrl() %7B%0A        return (String) getOptions().get(JOB_URL);%0A    %7D%0A%0A    public void setJobUrl(String jobUrl) %7B%0A        getOptions().put(JOB_URL, jobUrl);%0A    %7D
 %0A%0A  

Fix build - missed a class when refactoring