com.cx.restclient.sast.utils.SASTParam Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cx-client-common Show documentation
Show all versions of cx-client-common Show documentation
Web client for interaction with Checkmarx SAST, SCA and OSA products
package com.cx.restclient.sast.utils;
/**
* Created by Galn on 06/02/2018.
*/
public class SASTParam {
//REST PATH
public static final String SAST_ENGINE_CONFIG = "sast/engineConfigurations";
public static final String SAST_UPDATE_SCAN_SETTINGS = "sast/pluginsScanSettings"; //Update preset and configuration
public static final String SAST_GET_SCAN_SETTINGS = "/sast/scanSettings/{projectId}"; //Update preset and configuration
public static final String SAST_CREATE_SCAN = "sast/scans"; //Run a new Scan
public static final String SAST_SCAN = "sast/scans/{scanId}"; //Get Scan status (by scan ID)
public static final String SAST_QUEUE_SCAN_STATUS = "sast/scansQueue/{scanId}";
public static final String SAST_GET_PROJECT_BY_ID = "projects/{projectId}";
public static final String SAST_GET_PROJECT = "projects?projectname={name}&teamid={teamId}";// Get project)
public static final String SAST_GET_ALL_PROJECTS = "projects";// Get project)
public static final String SAST_ZIP_ATTACHMENTS = "projects/{projectId}/sourceCode/attachments";//Attach ZIP file
public static final String SAST_GET_PROJECT_SCANS = "sast/scans?projectId={projectId}";
public static final String SAST_GET_QUEUED_SCANS = "sast/scansQueue?projectId={projectId}";
public static final String SAST_CREATE_REMOTE_SOURCE_SCAN = "projects/%s/sourceCode/remoteSettings/%s/%s";
public static final String SAST_EXCLUDE_FOLDERS_FILES_PATTERNS = "projects/%s/sourceCode/excludeSettings";
//Once it has results
public static final String SAST_SCAN_RESULTS_STATISTICS = "sast/scans/{scanId}/resultsStatistics";
public static final String SAST_CREATE_REPORT = "reports/sastScan/"; //Create new report (get ID)
public static final String SAST_GET_REPORT_STATUS = "reports/sastScan/{reportId}/status"; //Get report status
public static final String SAST_GET_REPORT = "reports/sastScan/{reportId}"; //Get report status
public static final String SAST_GET_CXARM_STATUS = "sast/projects/{projectId}/publisher/policyFindings/status"; //Get report status
//ZIP PARAMS
public static final long MAX_ZIP_SIZE_BYTES = 2147483648L;
public static final String TEMP_FILE_NAME_TO_ZIP = "zippedSource";
//Links formats
public static final String LINK_FORMAT = "/CxWebClient/portal#/projectState/%d/Summary";
public static final String SCAN_LINK_FORMAT = "/CxWebClient/ViewerMain.aspx?scanId=%s&ProjectID=%s";
public static final String PROJECT_LINK_FORMAT = "/CxWebClient/portal#/projectState/%d/Summary";
//REPORT PARAMS
public static final String PDF_REPORT_NAME = "CxSASTReport";
}