|
7 | 7 | import io.apicurio.registry.model.GA;
|
8 | 8 | import io.apicurio.registry.model.GAV;
|
9 | 9 | import io.apicurio.registry.model.VersionId;
|
10 |
| -import io.apicurio.registry.storage.dto.ArtifactMetaDataDto; |
11 |
| -import io.apicurio.registry.storage.dto.ArtifactReferenceDto; |
12 |
| -import io.apicurio.registry.storage.dto.ArtifactSearchResultsDto; |
13 |
| -import io.apicurio.registry.storage.dto.ArtifactVersionMetaDataDto; |
14 |
| -import io.apicurio.registry.storage.dto.CommentDto; |
15 |
| -import io.apicurio.registry.storage.dto.ContentWrapperDto; |
16 |
| -import io.apicurio.registry.storage.dto.DownloadContextDto; |
17 |
| -import io.apicurio.registry.storage.dto.EditableArtifactMetaDataDto; |
18 |
| -import io.apicurio.registry.storage.dto.EditableGroupMetaDataDto; |
19 |
| -import io.apicurio.registry.storage.dto.EditableVersionMetaDataDto; |
20 |
| -import io.apicurio.registry.storage.dto.GroupMetaDataDto; |
21 |
| -import io.apicurio.registry.storage.dto.GroupSearchResultsDto; |
22 |
| -import io.apicurio.registry.storage.dto.OrderBy; |
23 |
| -import io.apicurio.registry.storage.dto.OrderDirection; |
24 |
| -import io.apicurio.registry.storage.dto.RoleMappingDto; |
25 |
| -import io.apicurio.registry.storage.dto.RoleMappingSearchResultsDto; |
26 |
| -import io.apicurio.registry.storage.dto.RuleConfigurationDto; |
27 |
| -import io.apicurio.registry.storage.dto.SearchFilter; |
28 |
| -import io.apicurio.registry.storage.dto.StoredArtifactVersionDto; |
29 |
| -import io.apicurio.registry.storage.dto.VersionSearchResultsDto; |
30 |
| -import io.apicurio.registry.storage.error.ArtifactAlreadyExistsException; |
31 |
| -import io.apicurio.registry.storage.error.ArtifactNotFoundException; |
32 |
| -import io.apicurio.registry.storage.error.ContentNotFoundException; |
33 |
| -import io.apicurio.registry.storage.error.GroupAlreadyExistsException; |
34 |
| -import io.apicurio.registry.storage.error.GroupNotFoundException; |
35 |
| -import io.apicurio.registry.storage.error.RegistryStorageException; |
36 |
| -import io.apicurio.registry.storage.error.RuleAlreadyExistsException; |
37 |
| -import io.apicurio.registry.storage.error.RuleNotFoundException; |
38 |
| -import io.apicurio.registry.storage.error.VersionAlreadyExistsException; |
39 |
| -import io.apicurio.registry.storage.error.VersionNotFoundException; |
| 10 | +import io.apicurio.registry.storage.dto.*; |
| 11 | +import io.apicurio.registry.storage.error.*; |
40 | 12 | import io.apicurio.registry.storage.impexp.EntityInputStream;
|
41 | 13 | import io.apicurio.registry.types.RuleType;
|
42 | 14 | import io.apicurio.registry.utils.impexp.ArtifactBranchEntity;
|
@@ -399,7 +371,7 @@ VersionSearchResultsDto searchVersions(String groupId, String artifactId, OrderB
|
399 | 371 | /**
|
400 | 372 | * Gets the stored meta-data for a single version of an artifact. This will return all meta-data for the
|
401 | 373 | * version, including any user edited meta-data along with anything generated by the artifactStore.
|
402 |
| - * |
| 374 | + * |
403 | 375 | * @param globalId
|
404 | 376 | * @throws VersionNotFoundException
|
405 | 377 | * @throws RegistryStorageException
|
@@ -581,7 +553,7 @@ VersionSearchResultsDto searchVersions(String groupId, String artifactId, OrderB
|
581 | 553 | * @param limit the result size limit
|
582 | 554 | */
|
583 | 555 | RoleMappingSearchResultsDto searchRoleMappings(int offset, int limit) throws RegistryStorageException;
|
584 |
| - |
| 556 | + |
585 | 557 | /**
|
586 | 558 | * Gets the details of a single role mapping.
|
587 | 559 | *
|
@@ -865,6 +837,20 @@ VersionSearchResultsDto searchVersions(String groupId, String artifactId, OrderB
|
865 | 837 | */
|
866 | 838 | void deleteArtifactBranch(GA ga, BranchId branchId);
|
867 | 839 |
|
| 840 | + /** |
| 841 | + * Triggers a snapshot creation of the internal database. |
| 842 | + * |
| 843 | + * @throws RegistryStorageException |
| 844 | + */ |
| 845 | + String triggerSnapshotCreation() throws RegistryStorageException; |
| 846 | + |
| 847 | + /** |
| 848 | + * Creates the snapshot of the internal database based on configuration. |
| 849 | + * |
| 850 | + * @param snapshotLocation |
| 851 | + * @throws RegistryStorageException |
| 852 | + */ |
| 853 | + String createSnapshot(String snapshotLocation) throws RegistryStorageException; |
868 | 854 |
|
869 | 855 | enum ArtifactRetrievalBehavior {
|
870 | 856 | DEFAULT,
|
|
0 commit comments