Package com.denimgroup.threadfix.service.defects

Examples of com.denimgroup.threadfix.service.defects.DefectMetadata


    public static DefectMetadata getBasicMetadata(ProjectMetadata projectMetadata) {

        if (projectMetadata.getEditableFields() != null && !projectMetadata.getEditableFields().isEmpty()) {
            // TODO create default field map
            return new DefectMetadata("test", "test", null, null, null, null, null, new HashMap<String, Object>());
        } else {
            return new DefectMetadata("Dummy Description", "simple preamble",
                    projectMetadata.getComponents().get(0),
                    projectMetadata.getVersions().get(0),
                    projectMetadata.getSeverities().get(0),
                    projectMetadata.getPriorities().get(0),
                    projectMetadata.getStatuses().get(0));
View Full Code Here


    } else {
      log.info("About to submit a defect to the defect tracker.");
    }
   
    String defectId = dt.createDefect(vulnsWithoutDefects,
        new DefectMetadata(editedSummary, editedPreamble,
        component, version, severity, priority, status, fieldsMap));

    if (defectId != null) {
     
      Defect defect = new Defect();
View Full Code Here

TOP

Related Classes of com.denimgroup.threadfix.service.defects.DefectMetadata

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.