| Constructor and Description |
|---|
CableImportExportService() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canImportCables() |
InputStream |
exportCables(Iterable<Cable> cables)
Exports cables to an Excel spreadsheet.
|
Query |
getNotDeletedQuery(Query query)
Constructs a new query for filtering out deleted cables and prepends it with passed query.
|
LoaderResult<Cable> |
importCables(InputStream inputStream)
Imports cables from Excel spreadsheet.
|
LoaderResult<Cable> |
importCables(InputStream inputStream,
boolean test)
Imports cables from Excel spreadsheet.
|
public LoaderResult<Cable> importCables(InputStream inputStream)
inputStream - the input stream representing the Excel fileIllegalStateException - if current user does not have permission for this actionpublic LoaderResult<Cable> importCables(InputStream inputStream, boolean test)
inputStream - the input stream representing the Excel filetest - if true, only a test whether the import would succeed is performed, and no cables are importedIllegalStateException - if current user does not have permission for this actionpublic InputStream exportCables(Iterable<Cable> cables)
cables - the cables to exportIllegalStateException - if current user does not have permission for this actionpublic boolean canImportCables()
public Query getNotDeletedQuery(Query query)
query - current query to which we want to add not deleted conditionsCopyright © 2025 European Spallation Source. All rights reserved.