Skip to content

Commit

Permalink
Merge pull request #327 from folio-org/modfqmmgr-389
Browse files Browse the repository at this point in the history
[MODFQMMGR-389] Migration service interface
  • Loading branch information
mweaver-ebsco authored Jul 16, 2024
2 parents 2dbadea + 95a4d5c commit 602e2ee
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/main/java/org/folio/fqm/service/MigrationService.java
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) {}
}

0 comments on commit 602e2ee

Please sign in to comment.