com.capitalone.dashboard.model.AutoDiscovery 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 org.springframework.data.mongodb.core.mapping.Document;
import javax.validation.Valid;
import java.util.ArrayList;
import java.util.List;
/**
* A collection of auto discovered end points that represent a software
* project under development and/or in production use.
*
*/
@Document(collection="auto_discovery_status")
public class AutoDiscovery extends BaseModel {
@Valid
private AutoDiscoveryMetaData metaData;
@Valid
private List codeRepoEntries = new ArrayList<>();
@Valid
private List buildEntries = new ArrayList<>();
@Valid
private List securityScanEntries = new ArrayList<>();
@Valid
private List deploymentEntries = new ArrayList<>();
@Valid
private List libraryScanEntries = new ArrayList<>();
@Valid
private List functionalTestEntries = new ArrayList<>();
@Valid
private List artifactEntries = new ArrayList<>();
@Valid
private List staticCodeEntries = new ArrayList<>();
@Valid
private List featureEntries = new ArrayList<>();
@Valid
private List performanceTestEntries = new ArrayList<>();
@Valid
private List infraStructureScanEntries = new ArrayList<>();
private long createdTimestamp;
private long modifiedTimestamp;
public AutoDiscovery() {
metaData = null;
}
public AutoDiscovery(AutoDiscoveryMetaData metaData, List codeRepoEntries, List buildEntries, List securityScanEntries,
List deploymentEntries, List libraryScanEntries, List functionalTestEntries,
List artifactEntries, List staticCodeEntries, List featureEntries,List performanceTestEntries,
List infraStructureScanEntries) {
setMetaData(metaData);
setCodeRepoEntries(codeRepoEntries);
setBuildEntries(buildEntries);
setSecurityScanEntries(securityScanEntries);
setDeploymentEntries(deploymentEntries);
setLibraryScanEntries(libraryScanEntries);
setFunctionalTestEntries(functionalTestEntries);
setArtifactEntries(artifactEntries);
setStaticCodeEntries(staticCodeEntries);
setFeatureEntries(featureEntries);
setPerformanceTestEntries(performanceTestEntries);
setInfraStructureScanEntries(infraStructureScanEntries);
}
// Getters and setters
public AutoDiscoveryMetaData getMetaData() { return metaData; }
public void setMetaData(AutoDiscoveryMetaData metaData) { this.metaData = metaData; }
public List getCodeRepoEntries() {
return codeRepoEntries;
}
public void setCodeRepoEntries(List codeRepoEntries) {
this.codeRepoEntries = codeRepoEntries;
}
public List getBuildEntries() {
return buildEntries;
}
public void setBuildEntries(List buildEntries) {
this.buildEntries = buildEntries;
}
public List getSecurityScanEntries() {
return securityScanEntries;
}
public void setSecurityScanEntries(List securityScanEntries) {
this.securityScanEntries = securityScanEntries;
}
public List getDeploymentEntries() {
return deploymentEntries;
}
public void setDeploymentEntries(List deploymentEntries) {
this.deploymentEntries = deploymentEntries;
}
public List getLibraryScanEntries() {
return libraryScanEntries;
}
public void setLibraryScanEntries(List libraryScanEntries) {
this.libraryScanEntries = libraryScanEntries;
}
public List getFunctionalTestEntries() {
return functionalTestEntries;
}
public void setFunctionalTestEntries(List functionalTestEntries) {
this.functionalTestEntries = functionalTestEntries;
}
public List getArtifactEntries() {
return artifactEntries;
}
public void setArtifactEntries(List artifactEntries) {
this.artifactEntries = artifactEntries;
}
public List getStaticCodeEntries() { return staticCodeEntries; }
public void setStaticCodeEntries(List staticCodeEntries) {
this.staticCodeEntries = staticCodeEntries;
}
public List getPerformanceTestEntries() {
return performanceTestEntries;
}
public void setPerformanceTestEntries(List performanceTestEntries) {
this.performanceTestEntries = performanceTestEntries;
}
public long getCreatedTimestamp() {
return createdTimestamp;
}
public void setCreatedTimestamp(long createdTimestamp) {
this.createdTimestamp = createdTimestamp;
}
public long getModifiedTimestamp() {
return modifiedTimestamp;
}
public void setModifiedTimestamp(long modifiedTimestamp) {
this.modifiedTimestamp = modifiedTimestamp;
}
public List getFeatureEntries() { return featureEntries; }
public void setFeatureEntries(List featureEntries) {
this.featureEntries = featureEntries;
}
public List getInfraStructureScanEntries() {
return infraStructureScanEntries;
}
public void setInfraStructureScanEntries(List infraStructureScanEntries) {
this.infraStructureScanEntries = infraStructureScanEntries;
}
public List getAllEntries() {
List all = new ArrayList<>();
all.addAll(buildEntries);
all.addAll(codeRepoEntries);
all.addAll(staticCodeEntries);
all.addAll(libraryScanEntries);
all.addAll(securityScanEntries);
all.addAll(functionalTestEntries);
all.addAll(deploymentEntries);
all.addAll(featureEntries);
all.addAll(artifactEntries);
all.addAll(performanceTestEntries);
all.addAll(infraStructureScanEntries);
return all;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy