Skip to content

Commit c759667

Browse files
Merge pull request #374 from checkmarx-ltd/develop
CXFLW-967 Custom Map Fix
2 parents 6711533 + 3f8f52a commit c759667

File tree

20 files changed

+1300
-1
lines changed

20 files changed

+1300
-1
lines changed

pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
</parent>
1111
<groupId>com.github.checkmarx-ltd</groupId>
1212
<artifactId>cx-spring-boot-sdk</artifactId>
13-
<version>0.5.69</version>
13+
14+
<version>0.5.70</version>
1415
<name>cx-spring-boot-sdk</name>
1516
<description>Checkmarx Java Spring Boot SDK</description>
1617
<properties>

src/main/java/com/checkmarx/sdk/config/CxProperties.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ public class CxProperties extends CxPropertiesBase{
6363

6464
private Map<String, String> customStateMap;
6565

66+
@Getter @Setter
67+
private Map<String, String> customStateFalsePositiveMap;
68+
6669
private Map<String, String> sshKeyList;
6770

6871
private Boolean cxBranch = false;
@@ -302,6 +305,14 @@ public String getStateFullName(String key){
302305
return stateFullName;
303306
}
304307

308+
public String checkCustomFalsePositive(String key){
309+
try {
310+
return customStateFalsePositiveMap.get(key);
311+
}catch (Exception e){
312+
return null;
313+
}
314+
}
315+
305316
public Boolean getGroupBySeverity() {
306317
return groupBySeverity;
307318
}
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
2+
package com.checkmarx.sdk.remotesettings.custom;
3+
4+
import java.util.LinkedHashMap;
5+
import java.util.Map;
6+
import javax.annotation.Generated;
7+
8+
@Generated("jsonschema2pojo")
9+
public class Customremotemain {
10+
11+
private String path;
12+
private Integer pullingCommandId;
13+
private Link link;
14+
private Map<String, Object> additionalProperties = new LinkedHashMap<String, Object>();
15+
16+
public String getPath() {
17+
return path;
18+
}
19+
20+
public void setPath(String path) {
21+
this.path = path;
22+
}
23+
24+
public Customremotemain withPath(String path) {
25+
this.path = path;
26+
return this;
27+
}
28+
29+
public Integer getPullingCommandId() {
30+
return pullingCommandId;
31+
}
32+
33+
public void setPullingCommandId(Integer pullingCommandId) {
34+
this.pullingCommandId = pullingCommandId;
35+
}
36+
37+
public Customremotemain withPullingCommandId(Integer pullingCommandId) {
38+
this.pullingCommandId = pullingCommandId;
39+
return this;
40+
}
41+
42+
public Link getLink() {
43+
return link;
44+
}
45+
46+
public void setLink(Link link) {
47+
this.link = link;
48+
}
49+
50+
public Customremotemain withLink(Link link) {
51+
this.link = link;
52+
return this;
53+
}
54+
55+
public Map<String, Object> getAdditionalProperties() {
56+
return this.additionalProperties;
57+
}
58+
59+
public void setAdditionalProperty(String name, Object value) {
60+
this.additionalProperties.put(name, value);
61+
}
62+
63+
public Customremotemain withAdditionalProperty(String name, Object value) {
64+
this.additionalProperties.put(name, value);
65+
return this;
66+
}
67+
68+
}
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
2+
package com.checkmarx.sdk.remotesettings.custom;
3+
4+
import java.util.LinkedHashMap;
5+
import java.util.Map;
6+
import javax.annotation.Generated;
7+
8+
@Generated("jsonschema2pojo")
9+
public class Link {
10+
11+
private String rel;
12+
private String uri;
13+
private Map<String, Object> additionalProperties = new LinkedHashMap<String, Object>();
14+
15+
public String getRel() {
16+
return rel;
17+
}
18+
19+
public void setRel(String rel) {
20+
this.rel = rel;
21+
}
22+
23+
public Link withRel(String rel) {
24+
this.rel = rel;
25+
return this;
26+
}
27+
28+
public String getUri() {
29+
return uri;
30+
}
31+
32+
public void setUri(String uri) {
33+
this.uri = uri;
34+
}
35+
36+
public Link withUri(String uri) {
37+
this.uri = uri;
38+
return this;
39+
}
40+
41+
public Map<String, Object> getAdditionalProperties() {
42+
return this.additionalProperties;
43+
}
44+
45+
public void setAdditionalProperty(String name, Object value) {
46+
this.additionalProperties.put(name, value);
47+
}
48+
49+
public Link withAdditionalProperty(String name, Object value) {
50+
this.additionalProperties.put(name, value);
51+
return this;
52+
}
53+
54+
}
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
2+
package com.checkmarx.sdk.remotesettings.exclude;
3+
4+
import java.util.LinkedHashMap;
5+
import java.util.Map;
6+
import javax.annotation.Generated;
7+
8+
@Generated("jsonschema2pojo")
9+
public class ExcludeSettingsmain {
10+
11+
private Integer projectId;
12+
private String excludeFoldersPattern;
13+
private String excludeFilesPattern;
14+
private Link link;
15+
private Map<String, Object> additionalProperties = new LinkedHashMap<String, Object>();
16+
17+
public Integer getProjectId() {
18+
return projectId;
19+
}
20+
21+
public void setProjectId(Integer projectId) {
22+
this.projectId = projectId;
23+
}
24+
25+
public ExcludeSettingsmain withProjectId(Integer projectId) {
26+
this.projectId = projectId;
27+
return this;
28+
}
29+
30+
public String getExcludeFoldersPattern() {
31+
return excludeFoldersPattern;
32+
}
33+
34+
public void setExcludeFoldersPattern(String excludeFoldersPattern) {
35+
this.excludeFoldersPattern = excludeFoldersPattern;
36+
}
37+
38+
public ExcludeSettingsmain withExcludeFoldersPattern(String excludeFoldersPattern) {
39+
this.excludeFoldersPattern = excludeFoldersPattern;
40+
return this;
41+
}
42+
43+
public String getExcludeFilesPattern() {
44+
return excludeFilesPattern;
45+
}
46+
47+
public void setExcludeFilesPattern(String excludeFilesPattern) {
48+
this.excludeFilesPattern = excludeFilesPattern;
49+
}
50+
51+
public ExcludeSettingsmain withExcludeFilesPattern(String excludeFilesPattern) {
52+
this.excludeFilesPattern = excludeFilesPattern;
53+
return this;
54+
}
55+
56+
public Link getLink() {
57+
return link;
58+
}
59+
60+
public void setLink(Link link) {
61+
this.link = link;
62+
}
63+
64+
public ExcludeSettingsmain withLink(Link link) {
65+
this.link = link;
66+
return this;
67+
}
68+
69+
public Map<String, Object> getAdditionalProperties() {
70+
return this.additionalProperties;
71+
}
72+
73+
public void setAdditionalProperty(String name, Object value) {
74+
this.additionalProperties.put(name, value);
75+
}
76+
77+
public ExcludeSettingsmain withAdditionalProperty(String name, Object value) {
78+
this.additionalProperties.put(name, value);
79+
return this;
80+
}
81+
82+
}
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
2+
package com.checkmarx.sdk.remotesettings.exclude;
3+
4+
import java.util.LinkedHashMap;
5+
import java.util.Map;
6+
import javax.annotation.Generated;
7+
8+
@Generated("jsonschema2pojo")
9+
public class Link {
10+
11+
private String rel;
12+
private String uri;
13+
private Map<String, Object> additionalProperties = new LinkedHashMap<String, Object>();
14+
15+
public String getRel() {
16+
return rel;
17+
}
18+
19+
public void setRel(String rel) {
20+
this.rel = rel;
21+
}
22+
23+
public Link withRel(String rel) {
24+
this.rel = rel;
25+
return this;
26+
}
27+
28+
public String getUri() {
29+
return uri;
30+
}
31+
32+
public void setUri(String uri) {
33+
this.uri = uri;
34+
}
35+
36+
public Link withUri(String uri) {
37+
this.uri = uri;
38+
return this;
39+
}
40+
41+
public Map<String, Object> getAdditionalProperties() {
42+
return this.additionalProperties;
43+
}
44+
45+
public void setAdditionalProperty(String name, Object value) {
46+
this.additionalProperties.put(name, value);
47+
}
48+
49+
public Link withAdditionalProperty(String name, Object value) {
50+
this.additionalProperties.put(name, value);
51+
return this;
52+
}
53+
54+
}
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
2+
package com.checkmarx.sdk.remotesettings.git;
3+
4+
import java.util.LinkedHashMap;
5+
import java.util.Map;
6+
import javax.annotation.Generated;
7+
8+
@Generated("jsonschema2pojo")
9+
public class Gitremotemain {
10+
11+
private String url;
12+
private String branch;
13+
private Boolean useSsh;
14+
private Link link;
15+
private Map<String, Object> additionalProperties = new LinkedHashMap<String, Object>();
16+
17+
public String getUrl() {
18+
return url;
19+
}
20+
21+
public void setUrl(String url) {
22+
this.url = url;
23+
}
24+
25+
public Gitremotemain withUrl(String url) {
26+
this.url = url;
27+
return this;
28+
}
29+
30+
public String getBranch() {
31+
return branch;
32+
}
33+
34+
public void setBranch(String branch) {
35+
this.branch = branch;
36+
}
37+
38+
public Gitremotemain withBranch(String branch) {
39+
this.branch = branch;
40+
return this;
41+
}
42+
43+
public Boolean getUseSsh() {
44+
return useSsh;
45+
}
46+
47+
public void setUseSsh(Boolean useSsh) {
48+
this.useSsh = useSsh;
49+
}
50+
51+
public Gitremotemain withUseSsh(Boolean useSsh) {
52+
this.useSsh = useSsh;
53+
return this;
54+
}
55+
56+
public Link getLink() {
57+
return link;
58+
}
59+
60+
public void setLink(Link link) {
61+
this.link = link;
62+
}
63+
64+
public Gitremotemain withLink(Link link) {
65+
this.link = link;
66+
return this;
67+
}
68+
69+
public Map<String, Object> getAdditionalProperties() {
70+
return this.additionalProperties;
71+
}
72+
73+
public void setAdditionalProperty(String name, Object value) {
74+
this.additionalProperties.put(name, value);
75+
}
76+
77+
public Gitremotemain withAdditionalProperty(String name, Object value) {
78+
this.additionalProperties.put(name, value);
79+
return this;
80+
}
81+
82+
}

0 commit comments

Comments
 (0)