Class DataspaceValidationReportExportService
- All Implemented Interfaces:
UserService<DataspaceEntitySelection>
This service is activated from the actions tab in Dataspaces under Repository Management in Administration. It generates the validation
report for selected dataspace in CSV format and automatically downloads it.
The report will include the following information: dataset label, table label, field label, severity of the validation item, validation
message, record ID, and record label.
During report generation, a loading indicator will be displayed, along with a back button to close the service. If the download does not
start automatically, you can initiate it manually.
- Author:
- APGAR Consulting
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprocessEventOutcome(UserServiceProcessEventOutcomeContext<DataspaceEntitySelection> context, UserServiceEventOutcome outcome) Returns standard outcomes (outcomes created byUserServiceNext).voidsetupDisplay(UserServiceSetupDisplayContext<DataspaceEntitySelection> aContext, UserServiceDisplayConfigurator aConfigurator) Sets up the display and functionality of the validation report export user service.voidsetupObjectContext(UserServiceSetupObjectContext<DataspaceEntitySelection> aContext, UserServiceObjectContextBuilder aBuilder) Defines/Removes objects managed by the user service.voidPerforms custom validation on a form submit.
-
Constructor Details
-
DataspaceValidationReportExportService
public DataspaceValidationReportExportService()
-
-
Method Details
-
processEventOutcome
public UserServiceEventOutcome processEventOutcome(UserServiceProcessEventOutcomeContext<DataspaceEntitySelection> context, UserServiceEventOutcome outcome) Returns standard outcomes (outcomes created byUserServiceNext).- Specified by:
processEventOutcomein interfaceUserService<DataspaceEntitySelection>- Parameters:
context- the context for the event outcome of the user service processoutcome- the outcome of the user service event- Returns:
- event outcome of the user service
-
setupDisplay
public void setupDisplay(UserServiceSetupDisplayContext<DataspaceEntitySelection> aContext, UserServiceDisplayConfigurator aConfigurator) Sets up the display and functionality of the validation report export user service.The service includes a back button to close the service and displays a loading indicator while the report is being generated in Excel. Once the generation is complete, the report will be automatically downloaded. If the download does not occur automatically, a link will be provided for manual download.
- Specified by:
setupDisplayin interfaceUserService<DataspaceEntitySelection>- Parameters:
aContext- the setup display context of the user serviceaConfigurator- the display configurator of the user service
-
setupObjectContext
public void setupObjectContext(UserServiceSetupObjectContext<DataspaceEntitySelection> aContext, UserServiceObjectContextBuilder aBuilder) Defines/Removes objects managed by the user service. By default, it does nothing.- Specified by:
setupObjectContextin interfaceUserService<DataspaceEntitySelection>- Parameters:
aContext- provides information about the current contextaBuilder- provides methods to define or remove objects
-
validate
Performs custom validation on a form submit. By default, it does nothing.- Specified by:
validatein interfaceUserService<DataspaceEntitySelection>- Parameters:
aContext- the context for user service validation
-