com.capitalone.dashboard.model.WhiteSourceComponent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core Show documentation
Show all versions of core Show documentation
Core package shared by API layer and Microservices
package com.capitalone.dashboard.model;
import java.util.Objects;
public class WhiteSourceComponent extends CollectorItem {
public static final String PRODUCT_NAME = "productName";
public static final String PROJECT_NAME = "projectName";
public static final String PRODUCT_TOKEN = "productToken";
public static final String PROJECT_TOKEN = "projectToken";
public static final String ORG_NAME = "orgName";
public String getOrgName() {
return (String) getOptions().get(ORG_NAME);
}
public void setOrgName(String orgName){
getOptions().put(ORG_NAME,orgName);
}
public String getProductName() {
return (String) getOptions().get(PRODUCT_NAME);
}
public void setProductName(String productName) {
getOptions().put(PRODUCT_NAME, productName);
}
public String getProjectName() {
return (String) getOptions().get(PROJECT_NAME);
}
public void setProjectName(String projectName) {
getOptions().put(PROJECT_NAME, projectName);
}
public String getProductToken() {
return (String) getOptions().get(PRODUCT_TOKEN);
}
public void setProductToken(String productToken) {
getOptions().put(PRODUCT_TOKEN, productToken);
}
public String getProjectToken() {
return (String) getOptions().get(PROJECT_TOKEN);
}
public void setProjectToken(String projectToken) {
getOptions().put(PROJECT_TOKEN, projectToken);
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || !(o instanceof WhiteSourceComponent)) return false;
WhiteSourceComponent that = (WhiteSourceComponent) o;
return Objects.equals(getOrgName(), that.getOrgName()) && Objects.equals(getProjectToken(), that.getProjectToken());
}
@Override
public int hashCode() {
int result = 31 * getOrgName().hashCode()+ getProjectToken().hashCode();
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy