20
20
import io .apicurio .registry .events .dto .ArtifactRuleChange ;
21
21
import io .apicurio .registry .events .dto .ArtifactStateChange ;
22
22
import io .apicurio .registry .events .dto .RegistryEventType ;
23
- import io .apicurio .registry .storage .ArtifactAlreadyExistsException ;
24
- import io .apicurio .registry .storage .ArtifactNotFoundException ;
25
- import io .apicurio .registry .storage .ContentNotFoundException ;
26
- import io .apicurio .registry .storage .GroupAlreadyExistsException ;
27
- import io .apicurio .registry .storage .GroupNotFoundException ;
28
- import io .apicurio .registry .storage .RegistryStorageException ;
29
- import io .apicurio .registry .storage .RuleAlreadyExistsException ;
30
- import io .apicurio .registry .storage .RuleNotFoundException ;
31
- import io .apicurio .registry .storage .VersionNotFoundException ;
23
+ import io .apicurio .registry .storage .*;
32
24
import io .apicurio .registry .storage .decorator .RegistryStorageDecorator ;
33
- import io .apicurio .registry .storage .dto .ArtifactMetaDataDto ;
34
- import io .apicurio .registry .storage .dto .ArtifactOwnerDto ;
35
- import io .apicurio .registry .storage .dto .ArtifactReferenceDto ;
36
- import io .apicurio .registry .storage .dto .ContentWrapperDto ;
37
- import io .apicurio .registry .storage .dto .EditableArtifactMetaDataDto ;
38
- import io .apicurio .registry .storage .dto .GroupMetaDataDto ;
39
- import io .apicurio .registry .storage .dto .GroupSearchResultsDto ;
40
- import io .apicurio .registry .storage .dto .OrderBy ;
41
- import io .apicurio .registry .storage .dto .OrderDirection ;
42
- import io .apicurio .registry .storage .dto .RuleConfigurationDto ;
43
- import io .apicurio .registry .storage .dto .SearchFilter ;
44
- import io .apicurio .registry .storage .dto .StoredArtifactDto ;
25
+ import io .apicurio .registry .storage .dto .*;
45
26
import io .apicurio .registry .types .ArtifactState ;
46
27
import io .apicurio .registry .types .RuleType ;
28
+ import jakarta .enterprise .context .ApplicationScoped ;
29
+ import jakarta .inject .Inject ;
47
30
48
31
import java .util .HashMap ;
49
32
import java .util .List ;
50
- import java .util .Map ;
51
33
import java .util .Optional ;
52
- import java .util .Set ;
53
- import jakarta .enterprise .context .ApplicationScoped ;
54
- import jakarta .inject .Inject ;
55
34
56
35
/**
57
36
* @author Fabian Martinez
@@ -125,7 +104,7 @@ public ArtifactMetaDataDto createArtifact(String groupId, String artifactId,
125
104
*/
126
105
@ Override
127
106
public ArtifactMetaDataDto createArtifactWithMetadata (String groupId , String artifactId , String version ,
128
- String artifactType , ContentHandle content , EditableArtifactMetaDataDto metaData , List <ArtifactReferenceDto > references ) throws ArtifactAlreadyExistsException , RegistryStorageException {
107
+ String artifactType , ContentHandle content , EditableArtifactMetaDataDto metaData , List <ArtifactReferenceDto > references ) throws ArtifactAlreadyExistsException , RegistryStorageException {
129
108
ArtifactMetaDataDto meta = delegate .createArtifactWithMetadata (groupId , artifactId , version , artifactType , content , metaData , references );
130
109
ArtifactId data = new ArtifactId ();
131
110
data .setGroupId (groupId );
@@ -154,26 +133,6 @@ public void deleteArtifacts(String groupId) throws RegistryStorageException {
154
133
fireEvent (RegistryEventType .ARTIFACTS_IN_GROUP_DELETED , groupId , data , null );
155
134
}
156
135
157
- @ Override
158
- public StoredArtifactDto getArtifact (String groupId , String artifactId ) throws ArtifactNotFoundException , RegistryStorageException {
159
- return delegate .getArtifact (groupId , artifactId );
160
- }
161
-
162
- @ Override
163
- public StoredArtifactDto getArtifact (String groupId , String artifactId , ArtifactRetrievalBehavior behavior ) throws ArtifactNotFoundException , RegistryStorageException {
164
- return delegate .getArtifact (groupId , artifactId , behavior );
165
- }
166
-
167
- @ Override
168
- public ContentWrapperDto getArtifactByContentHash (String contentHash ) throws ContentNotFoundException , RegistryStorageException {
169
- return delegate .getArtifactByContentHash (contentHash );
170
- }
171
-
172
- @ Override
173
- public ContentWrapperDto getArtifactByContentId (long contentId ) throws ContentNotFoundException , RegistryStorageException {
174
- return delegate .getArtifactByContentId (contentId );
175
- }
176
-
177
136
@ Override
178
137
public ArtifactMetaDataDto updateArtifact (String groupId , String artifactId , String version , String artifactType , ContentHandle content , List <ArtifactReferenceDto > references )
179
138
throws ArtifactNotFoundException , RegistryStorageException {
@@ -189,7 +148,7 @@ public ArtifactMetaDataDto updateArtifact(String groupId, String artifactId, Str
189
148
190
149
@ Override
191
150
public ArtifactMetaDataDto updateArtifactWithMetadata (String groupId , String artifactId , String version , String artifactType , ContentHandle content ,
192
- EditableArtifactMetaDataDto metaData , List <ArtifactReferenceDto > references ) throws ArtifactNotFoundException , RegistryStorageException {
151
+ EditableArtifactMetaDataDto metaData , List <ArtifactReferenceDto > references ) throws ArtifactNotFoundException , RegistryStorageException {
193
152
ArtifactMetaDataDto meta = delegate .updateArtifactWithMetadata (groupId , artifactId , version , artifactType , content , metaData , references );
194
153
ArtifactId data = new ArtifactId ();
195
154
data .setGroupId (groupId );
@@ -212,11 +171,6 @@ public void updateArtifactOwner(String groupId, String artifactId, ArtifactOwner
212
171
//TODO consider a change ownership event
213
172
}
214
173
215
- @ Override
216
- public List <RuleType > getArtifactRules (String groupId , String artifactId ) throws ArtifactNotFoundException , RegistryStorageException {
217
- return delegate .getArtifactRules (groupId , artifactId );
218
- }
219
-
220
174
/**
221
175
* @see io.apicurio.registry.storage.RegistryStorage#createArtifactRule(java.lang.String, java.lang.String, io.apicurio.registry.types.RuleType, io.apicurio.registry.storage.dto.RuleConfigurationDto)
222
176
*/
@@ -333,28 +287,4 @@ public void deleteGroup(String groupId) throws GroupNotFoundException, RegistryS
333
287
data .setGroupId (groupId );
334
288
fireEvent (RegistryEventType .GROUP_DELETED , groupId , data , null );
335
289
}
336
-
337
- /**
338
- * @see io.apicurio.registry.storage.RegistryStorage#resolveReferences(List)
339
- */
340
- @ Override
341
- public Map <String , ContentHandle > resolveReferences (List <ArtifactReferenceDto > references ) {
342
- return delegate .resolveReferences (references );
343
- }
344
-
345
- /**
346
- * @see io.apicurio.registry.storage.RegistryStorage#isArtifactExists(String, String)
347
- */
348
- @ Override
349
- public boolean isArtifactExists (String groupId , String artifactId ) throws RegistryStorageException {
350
- return delegate .isArtifactExists (groupId , artifactId );
351
- }
352
-
353
- /**
354
- * @see io.apicurio.registry.storage.RegistryStorage#searchGroups(Set, OrderBy, OrderDirection, Integer, Integer)
355
- */
356
- @ Override
357
- public GroupSearchResultsDto searchGroups (Set <SearchFilter > filters , OrderBy orderBy , OrderDirection orderDirection , Integer offset , Integer limit ) {
358
- return delegate .searchGroups (filters , orderBy , orderDirection , offset , limit );
359
- }
360
290
}
0 commit comments