You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: hooks/persistence-defectdojo/hook/src/main/java/io/securecodebox/persistence/config/PersistenceProviderConfig.java
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -85,13 +85,19 @@ public PersistenceProviderConfig(@NonNull final String[] args) {
85
85
}
86
86
}
87
87
88
+
/**
89
+
* Throws {@link DefectDojoPersistenceException} if {@link #isReadOnly()} is {@code true}
90
+
*/
88
91
publicStringgetRawResultUploadUrl() {
89
92
if (isReadOnly()) {
90
93
thrownewDefectDojoPersistenceException("Cannot access the RawResult Upload URL because the hook is executed in ReadOnly mode!");
91
94
}
92
95
returnrawResultUploadUrl;
93
96
}
94
97
98
+
/**
99
+
* Throws {@link DefectDojoPersistenceException} if {@link #isReadOnly()} is {@code true}
100
+
*/
95
101
publicStringgetFindingUploadUrl() {
96
102
if (isReadOnly()) {
97
103
thrownewDefectDojoPersistenceException("Cannot access the Finding Upload URL because the hook is executed in ReadOnly mode!");
0 commit comments