Skip to content

Commit

Permalink
Feat: add crud storage boolean to storage and report (#329)
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthijsSmets authored Oct 29, 2024
1 parent 6522d19 commit 65ca7ab
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/nl/nn/testtool/Report.java
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,10 @@ public Storage getStorage() {
return storage;
}

public boolean isCrudStorage() {
return storage.isCrudStorage();
}

public void setStorageId(Integer storageId) {
transientStorageId = storageId;
}
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/nl/nn/testtool/storage/Storage.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,8 @@ public List<List<Object>> getMetadata(int maxNumberOfRecords, List<String> metad
public List getFilterValues(String column) throws StorageException;

public String getUserHelp(String column);

default boolean isCrudStorage() {
return this instanceof CrudStorage;
}
}

0 comments on commit 65ca7ab

Please sign in to comment.