6
6
import io .apicurio .registry .model .GA ;
7
7
import io .apicurio .registry .model .GAV ;
8
8
import io .apicurio .registry .storage .RegistryStorage ;
9
- import io .apicurio .registry .storage .dto .ArtifactMetaDataDto ;
10
- import io .apicurio .registry .storage .dto .ArtifactReferenceDto ;
11
- import io .apicurio .registry .storage .dto .ArtifactSearchResultsDto ;
12
- import io .apicurio .registry .storage .dto .ArtifactVersionMetaDataDto ;
13
- import io .apicurio .registry .storage .dto .CommentDto ;
14
- import io .apicurio .registry .storage .dto .ContentWrapperDto ;
15
- import io .apicurio .registry .storage .dto .GroupMetaDataDto ;
16
- import io .apicurio .registry .storage .dto .GroupSearchResultsDto ;
17
- import io .apicurio .registry .storage .dto .OrderBy ;
18
- import io .apicurio .registry .storage .dto .OrderDirection ;
19
- import io .apicurio .registry .storage .dto .RoleMappingDto ;
20
- import io .apicurio .registry .storage .dto .RoleMappingSearchResultsDto ;
21
- import io .apicurio .registry .storage .dto .RuleConfigurationDto ;
22
- import io .apicurio .registry .storage .dto .SearchFilter ;
23
- import io .apicurio .registry .storage .dto .StoredArtifactVersionDto ;
24
- import io .apicurio .registry .storage .dto .VersionSearchResultsDto ;
9
+ import io .apicurio .registry .storage .dto .*;
25
10
import io .apicurio .registry .storage .error .ArtifactNotFoundException ;
26
11
import io .apicurio .registry .storage .error .ContentNotFoundException ;
27
12
import io .apicurio .registry .storage .error .GroupNotFoundException ;
@@ -47,11 +32,9 @@ public abstract class RegistryStorageDecoratorReadOnlyBase implements RegistrySt
47
32
48
33
protected RegistryStorage delegate ;
49
34
50
-
51
35
protected RegistryStorageDecoratorReadOnlyBase () {
52
36
}
53
37
54
-
55
38
public void setDelegate (RegistryStorage delegate ) {
56
39
this .delegate = delegate ;
57
40
}
@@ -71,89 +54,76 @@ public boolean isReady() {
71
54
return delegate .isReady ();
72
55
}
73
56
74
-
75
57
@ Override
76
58
public boolean isAlive () {
77
59
return delegate .isAlive ();
78
60
}
79
61
80
-
81
62
@ Override
82
63
public boolean isReadOnly () {
83
64
return delegate .isReadOnly ();
84
65
}
85
66
86
-
87
67
@ Override
88
68
public ContentWrapperDto getContentById (long contentId )
89
69
throws ContentNotFoundException , RegistryStorageException {
90
70
return delegate .getContentById (contentId );
91
71
}
92
72
93
-
94
73
@ Override
95
74
public ContentWrapperDto getContentByHash (String contentHash )
96
75
throws ContentNotFoundException , RegistryStorageException {
97
76
return delegate .getContentByHash (contentHash );
98
77
}
99
78
100
-
101
79
@ Override
102
80
public List <ArtifactVersionMetaDataDto > getArtifactVersionsByContentId (long contentId ) {
103
81
return delegate .getArtifactVersionsByContentId (contentId );
104
82
}
105
83
106
-
107
84
@ Override
108
85
public Set <String > getArtifactIds (Integer limit ) {
109
86
return delegate .getArtifactIds (limit );
110
87
}
111
88
112
-
113
89
@ Override
114
90
public ArtifactSearchResultsDto searchArtifacts (Set <SearchFilter > filters , OrderBy orderBy ,
115
91
OrderDirection orderDirection , int offset , int limit ) {
116
92
return delegate .searchArtifacts (filters , orderBy , orderDirection , offset , limit );
117
93
}
118
94
119
-
120
95
@ Override
121
96
public ArtifactMetaDataDto getArtifactMetaData (String groupId , String artifactId )
122
97
throws ArtifactNotFoundException , RegistryStorageException {
123
98
return delegate .getArtifactMetaData (groupId , artifactId );
124
99
}
125
100
126
-
127
101
@ Override
128
102
public ArtifactVersionMetaDataDto getArtifactVersionMetaDataByContent (String groupId , String artifactId ,
129
- boolean canonical , ContentHandle content , List <ArtifactReferenceDto > artifactReferences )
103
+ boolean canonical , ContentHandle content , List <ArtifactReferenceDto > artifactReferences )
130
104
throws ArtifactNotFoundException , RegistryStorageException {
131
105
return delegate .getArtifactVersionMetaDataByContent (groupId , artifactId , canonical , content , artifactReferences );
132
106
}
133
107
134
-
135
108
@ Override
136
109
public List <RuleType > getArtifactRules (String groupId , String artifactId )
137
110
throws ArtifactNotFoundException , RegistryStorageException {
138
111
return delegate .getArtifactRules (groupId , artifactId );
139
112
}
140
113
141
-
142
114
@ Override
143
115
public void createArtifactRule (String groupId , String artifactId , RuleType rule ,
144
116
RuleConfigurationDto config )
145
117
throws ArtifactNotFoundException , RuleAlreadyExistsException , RegistryStorageException {
146
118
delegate .createArtifactRule (groupId , artifactId , rule , config );
147
119
}
148
120
149
-
150
121
@ Override
151
122
public RuleConfigurationDto getArtifactRule (String groupId , String artifactId , RuleType rule )
152
123
throws ArtifactNotFoundException , RuleNotFoundException , RegistryStorageException {
153
124
return delegate .getArtifactRule (groupId , artifactId , rule );
154
125
}
155
126
156
-
157
127
@ Override
158
128
public List <String > getArtifactVersions (String groupId , String artifactId )
159
129
throws ArtifactNotFoundException , RegistryStorageException {
@@ -166,145 +136,123 @@ public VersionSearchResultsDto searchVersions(Set<SearchFilter> filters, OrderBy
166
136
return delegate .searchVersions (filters , orderBy , orderDirection , offset , limit );
167
137
}
168
138
169
-
170
139
@ Override
171
140
public StoredArtifactVersionDto getArtifactVersionContent (long globalId )
172
141
throws ArtifactNotFoundException , RegistryStorageException {
173
142
return delegate .getArtifactVersionContent (globalId );
174
143
}
175
144
176
-
177
145
@ Override
178
146
public StoredArtifactVersionDto getArtifactVersionContent (String groupId , String artifactId , String version )
179
147
throws ArtifactNotFoundException , VersionNotFoundException , RegistryStorageException {
180
148
return delegate .getArtifactVersionContent (groupId , artifactId , version );
181
149
}
182
150
183
-
184
151
@ Override
185
152
public ArtifactVersionMetaDataDto getArtifactVersionMetaData (String groupId , String artifactId ,
186
153
String version )
187
154
throws ArtifactNotFoundException , VersionNotFoundException , RegistryStorageException {
188
155
return delegate .getArtifactVersionMetaData (groupId , artifactId , version );
189
156
}
190
-
191
-
157
+
192
158
@ Override
193
159
public ArtifactVersionMetaDataDto getArtifactVersionMetaData (Long globalId )
194
160
throws VersionNotFoundException , RegistryStorageException {
195
161
return delegate .getArtifactVersionMetaData (globalId );
196
162
}
197
163
198
-
199
164
@ Override
200
165
public List <RuleType > getGlobalRules () throws RegistryStorageException {
201
166
return delegate .getGlobalRules ();
202
167
}
203
168
204
-
205
169
@ Override
206
170
public RuleConfigurationDto getGlobalRule (RuleType rule )
207
171
throws RuleNotFoundException , RegistryStorageException {
208
172
return delegate .getGlobalRule (rule );
209
173
}
210
174
211
-
212
175
@ Override
213
176
public List <String > getGroupIds (Integer limit ) throws RegistryStorageException {
214
177
return delegate .getGroupIds (limit );
215
178
}
216
179
217
-
218
180
@ Override
219
181
public GroupMetaDataDto getGroupMetaData (String groupId )
220
182
throws GroupNotFoundException , RegistryStorageException {
221
183
return delegate .getGroupMetaData (groupId );
222
184
}
223
185
224
-
225
186
@ Override
226
187
public void exportData (Function <Entity , Void > handler ) throws RegistryStorageException {
227
188
delegate .exportData (handler );
228
189
}
229
190
230
-
231
191
@ Override
232
192
public long countArtifacts () throws RegistryStorageException {
233
193
return delegate .countArtifacts ();
234
194
}
235
195
236
-
237
196
@ Override
238
197
public long countArtifactVersions (String groupId , String artifactId ) throws RegistryStorageException {
239
198
return delegate .countArtifactVersions (groupId , artifactId );
240
199
}
241
-
242
-
200
+
243
201
@ Override
244
202
public long countActiveArtifactVersions (String groupId , String artifactId ) throws RegistryStorageException {
245
203
return delegate .countActiveArtifactVersions (groupId , artifactId );
246
204
}
247
205
248
-
249
206
@ Override
250
207
public long countTotalArtifactVersions () throws RegistryStorageException {
251
208
return delegate .countTotalArtifactVersions ();
252
209
}
253
210
254
-
255
211
@ Override
256
212
public RoleMappingDto getRoleMapping (String principalId ) throws RegistryStorageException {
257
213
return delegate .getRoleMapping (principalId );
258
214
}
259
215
260
-
261
216
@ Override
262
217
public String getRoleForPrincipal (String principalId ) throws RegistryStorageException {
263
218
return delegate .getRoleForPrincipal (principalId );
264
219
}
265
220
266
-
267
221
@ Override
268
222
public List <RoleMappingDto > getRoleMappings () throws RegistryStorageException {
269
223
return delegate .getRoleMappings ();
270
224
}
271
-
225
+
272
226
@ Override
273
227
public RoleMappingSearchResultsDto searchRoleMappings (int offset , int limit ) throws RegistryStorageException {
274
228
return delegate .searchRoleMappings (offset , limit );
275
229
}
276
230
277
-
278
231
@ Override
279
232
public List <DynamicConfigPropertyDto > getConfigProperties () throws RegistryStorageException {
280
233
return delegate .getConfigProperties ();
281
234
}
282
235
283
-
284
236
@ Override
285
237
public DynamicConfigPropertyDto getConfigProperty (String propertyName ) {
286
238
return delegate .getConfigProperty (propertyName );
287
239
}
288
240
289
-
290
241
@ Override
291
242
public List <DynamicConfigPropertyDto > getStaleConfigProperties (Instant since ) {
292
243
return delegate .getStaleConfigProperties (since );
293
244
}
294
245
295
-
296
246
@ Override
297
247
public DynamicConfigPropertyDto getRawConfigProperty (String propertyName ) {
298
248
return delegate .getRawConfigProperty (propertyName );
299
249
}
300
250
301
-
302
251
@ Override
303
252
public Map <String , ContentHandle > resolveReferences (List <ArtifactReferenceDto > references ) {
304
253
return delegate .resolveReferences (references );
305
254
}
306
255
307
-
308
256
@ Override
309
257
public boolean isArtifactExists (String groupId , String artifactId ) throws RegistryStorageException {
310
258
return delegate .isArtifactExists (groupId , artifactId );
@@ -315,98 +263,85 @@ public boolean isGroupExists(String groupId) throws RegistryStorageException {
315
263
return delegate .isGroupExists (groupId );
316
264
}
317
265
318
-
319
266
@ Override
320
267
public boolean isArtifactVersionExists (String groupId , String artifactId , String version ) throws RegistryStorageException {
321
268
return delegate .isArtifactVersionExists (groupId , artifactId , version );
322
269
}
323
270
324
-
325
271
@ Override
326
272
public List <Long > getContentIdsReferencingArtifactVersion (String groupId , String artifactId , String version ) {
327
273
return delegate .getContentIdsReferencingArtifactVersion (groupId , artifactId , version );
328
274
}
329
275
330
-
331
276
@ Override
332
277
public List <Long > getGlobalIdsReferencingArtifactVersion (String groupId , String artifactId , String version ) {
333
278
return delegate .getGlobalIdsReferencingArtifactVersion (groupId , artifactId , version );
334
279
}
335
280
336
-
337
281
@ Override
338
282
public List <ArtifactReferenceDto > getInboundArtifactReferences (String groupId , String artifactId , String version ) {
339
283
return delegate .getInboundArtifactReferences (groupId , artifactId , version );
340
284
}
341
285
342
-
343
286
@ Override
344
287
public GroupSearchResultsDto searchGroups (Set <SearchFilter > filters , OrderBy orderBy , OrderDirection orderDirection , Integer offset , Integer limit ) {
345
288
return delegate .searchGroups (filters , orderBy , orderDirection , offset , limit );
346
289
}
347
290
348
-
349
291
@ Override
350
292
public List <CommentDto > getArtifactVersionComments (String groupId , String artifactId , String version ) {
351
293
return delegate .getArtifactVersionComments (groupId , artifactId , version );
352
294
}
353
295
354
-
355
296
@ Override
356
297
public boolean isContentExists (String contentHash ) throws RegistryStorageException {
357
298
return delegate .isContentExists (contentHash );
358
299
}
359
300
360
-
361
301
@ Override
362
302
public boolean isArtifactRuleExists (String groupId , String artifactId , RuleType rule ) throws RegistryStorageException {
363
303
return delegate .isArtifactRuleExists (groupId , artifactId , rule );
364
304
}
365
305
366
-
367
306
@ Override
368
307
public boolean isGlobalRuleExists (RuleType rule ) throws RegistryStorageException {
369
308
return delegate .isGlobalRuleExists (rule );
370
309
}
371
310
372
-
373
311
@ Override
374
312
public boolean isRoleMappingExists (String principalId ) {
375
313
return delegate .isRoleMappingExists (principalId );
376
314
}
377
315
378
-
379
316
@ Override
380
317
public Optional <Long > contentIdFromHash (String contentHash ) {
381
318
return delegate .contentIdFromHash (contentHash );
382
319
}
383
320
384
-
385
321
@ Override
386
322
public List <Long > getEnabledArtifactContentIds (String groupId , String artifactId ) {
387
323
return delegate .getEnabledArtifactContentIds (groupId , artifactId );
388
324
}
389
325
390
326
@ Override
391
- public List <String > getArtifactVersions (String groupId , String artifactId , ArtifactRetrievalBehavior behavior ) throws ArtifactNotFoundException , RegistryStorageException {
327
+ public List <String > getArtifactVersions (String groupId , String artifactId , ArtifactRetrievalBehavior behavior )
328
+ throws ArtifactNotFoundException , RegistryStorageException {
392
329
return delegate .getArtifactVersions (groupId , artifactId , behavior );
393
330
}
394
331
395
-
396
332
@ Override
397
333
public GAV getArtifactBranchTip (GA ga , BranchId branchId , ArtifactRetrievalBehavior behavior ) {
398
334
return delegate .getArtifactBranchTip (ga , branchId , behavior );
399
335
}
400
336
401
-
402
337
@ Override
403
338
public Map <BranchId , List <GAV >> getArtifactBranches (GA ga ) {
404
339
return delegate .getArtifactBranches (ga );
405
340
}
406
341
407
-
408
342
@ Override
409
343
public List <GAV > getArtifactBranch (GA ga , BranchId branchId , ArtifactRetrievalBehavior behavior ) {
410
344
return delegate .getArtifactBranch (ga , branchId , behavior );
411
345
}
346
+
412
347
}
0 commit comments