Package com.axelor.studio.service
Class StudioFileService
java.lang.Object
com.axelor.studio.service.StudioFileService
Service for processing and resolving files (data files, reports) attached to Studio resources.
Handles resolution of data files (CSV, XML) attached to Studio apps and determines the target model for import configuration. It also handles BIRT report files (.rptdesign) attached to Studio apps.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents a data file with its resolved model information.static classRepresents a report file with its path information. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionFinds data files attached to the given app resource.Finds report files attached to the given app resource.
-
Constructor Details
-
StudioFileService
public StudioFileService()
-
-
Method Details
-
findDataFiles
Finds data files attached to the given app resource.Looks for a DMS folder named "data" attached to the app and returns information about all CSV/XML files found within it.
- Parameters:
app- the app resource to check for data files- Returns:
- list of data file information
-
findReportFiles
Finds report files attached to the given app resource.Looks for a DMS folder named "reports" attached to the app and returns information about all report files found within it.
- Parameters:
app- the app resource to check for report files- Returns:
- list of report file information
-