Class ValidationReportExportServiceDeclaration
java.lang.Object
com.apgar.common.lib.service.declaration.ValidationReportExportServiceDeclaration
- All Implemented Interfaces:
UserServiceDeclaration<TableViewEntitySelection,,ActivationContextOnTableView> UserServiceDeclaration.OnTableView
public class ValidationReportExportServiceDeclaration
extends Object
implements UserServiceDeclaration.OnTableView
Service Declaration for the Validation Report Export Service on tables.
To activate this service, you must register it within your module's context, specifically in the RegisterServlet class, which
extends ModuleRegistrationServlet. Below is a sample implementation of the registration:
import com.orchestranetworks.module.ModuleRegistrationServlet;
import com.orchestranetworks.module.ModuleServiceRegistrationContext;
import com.apgar.common.lib.service.declaration.ValidationReportExportServiceDeclaration
public class RegisterServlet extends ModuleRegistrationServlet {
@Override
public void handleServiceRegistration(ModuleServiceRegistrationContext context) {
context.registerUserService(new ValidationReportExportServiceDeclaration(context.getModuleName()));
}
}
- Author:
- APGAR Consulting
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.orchestranetworks.userservice.declaration.UserServiceDeclaration
UserServiceDeclaration.OnAssociation, UserServiceDeclaration.OnAssociationRecord, UserServiceDeclaration.OnDataset, UserServiceDeclaration.OnDataspace, UserServiceDeclaration.OnHierarchy, UserServiceDeclaration.OnHierarchyNode, UserServiceDeclaration.OnRecord, UserServiceDeclaration.OnTableView -
Constructor Summary
ConstructorsConstructorDescriptionValidationReportExportServiceDeclaration(String moduleName) Constructor to be used to register this user service for a specific module. -
Method Summary
Modifier and TypeMethodDescriptionCreates a new user service implementation of the validation report export.voidDefines the web component properties of the user service.voidDefines the activation scope of this service.voidDefines the properties of the user service.Returns the identifier of the user service.
-
Constructor Details
-
ValidationReportExportServiceDeclaration
Constructor to be used to register this user service for a specific module.- Parameters:
moduleName- the module for which the user service is declared
-
-
Method Details
-
createUserService
Creates a new user service implementation of the validation report export.This method is invoked whenever the declared user service is launched.
- Specified by:
createUserServicein interfaceUserServiceDeclaration<TableViewEntitySelection,ActivationContextOnTableView> - Returns:
- the user service that is launched
-
declareWebComponent
Defines the web component properties of the user service. By default, this method is empty.- Specified by:
declareWebComponentin interfaceUserServiceDeclaration<TableViewEntitySelection,ActivationContextOnTableView> - Parameters:
context- the declaration context of the web component
-
defineProperties
Defines the properties of the user service.It sets the service label to Validation Report Export and sets the following confirmation message before launching: Validation Report Export?
- Specified by:
definePropertiesin interfaceUserServiceDeclaration<TableViewEntitySelection,ActivationContextOnTableView> - Parameters:
context- the properties definition context of the user service
-
getServiceKey
Returns the identifier of the user service.- Specified by:
getServiceKeyin interfaceUserServiceDeclaration<TableViewEntitySelection,ActivationContextOnTableView> - Returns:
- the ID of the user service as a
ServiceKey
-
defineActivation
Defines the activation scope of this service. By default, it is activated for all tables and can be found under Actions in both table and record views. *To customize the activation, you can either extend this class or customize it through table permissions in the user interface.
- Specified by:
defineActivationin interfaceUserServiceDeclaration<TableViewEntitySelection,ActivationContextOnTableView> - Parameters:
context- the activation context on the table view
-