-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #327 from folio-org/modfqmmgr-389
[MODFQMMGR-389] Migration service interface
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package org.folio.fqm.service; | ||
|
||
import java.util.List; | ||
import org.apache.commons.lang3.NotImplementedException; | ||
|
||
public class MigrationService { | ||
|
||
public int getLatestVersion() { | ||
// return 1; | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public boolean isMigrationNeeded(String fqlQuery) { | ||
// return true; | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public boolean isMigrationNeeded(MigratableQueryInformation migratableQueryInformation) { | ||
return isMigrationNeeded(migratableQueryInformation.fqlQuery()); | ||
} | ||
|
||
public MigratableQueryInformation migrate(MigratableQueryInformation migratableQueryInformation) { | ||
// return migratableQueryInformation; | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public record MigratableQueryInformation(String entityTypeId, String fqlQuery, List<String> fields) {} | ||
} |