Class ValidationReportExportServiceDeclaration
java.lang.Object
com.apgar.common.lib.service.declaration.ValidationReportExportServiceDeclaration
- All Implemented Interfaces:
com.orchestranetworks.userservice.declaration.UserServiceDeclaration<com.orchestranetworks.ui.selection.TableViewEntitySelection,,com.orchestranetworks.userservice.declaration.ActivationContextOnTableView> com.orchestranetworks.userservice.declaration.UserServiceDeclaration.OnTableView
public class ValidationReportExportServiceDeclaration
extends Object
implements com.orchestranetworks.userservice.declaration.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
com.orchestranetworks.userservice.declaration.UserServiceDeclaration.OnAssociation, com.orchestranetworks.userservice.declaration.UserServiceDeclaration.OnAssociationRecord, com.orchestranetworks.userservice.declaration.UserServiceDeclaration.OnDataset, com.orchestranetworks.userservice.declaration.UserServiceDeclaration.OnDataspace, com.orchestranetworks.userservice.declaration.UserServiceDeclaration.OnHierarchy, com.orchestranetworks.userservice.declaration.UserServiceDeclaration.OnHierarchyNode, com.orchestranetworks.userservice.declaration.UserServiceDeclaration.OnRecord, com.orchestranetworks.userservice.declaration.UserServiceDeclaration.OnTableView -
Constructor Summary
ConstructorsConstructorDescriptionValidationReportExportServiceDeclaration(String moduleName) Constructor to be used to register this user service for a specific module. -
Method Summary
Modifier and TypeMethodDescriptioncom.orchestranetworks.userservice.UserService<com.orchestranetworks.ui.selection.TableViewEntitySelection>Creates a new user service implementation of the validation report export.voiddeclareWebComponent(com.orchestranetworks.userservice.declaration.WebComponentDeclarationContext context) Defines the web component properties of the user service.voiddefineActivation(com.orchestranetworks.userservice.declaration.ActivationContextOnTableView context) Defines the activation scope of this service.voiddefineProperties(com.orchestranetworks.userservice.declaration.UserServicePropertiesDefinitionContext context) Defines the properties of the user service.com.orchestranetworks.service.ServiceKeyReturns 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
public com.orchestranetworks.userservice.UserService<com.orchestranetworks.ui.selection.TableViewEntitySelection> 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 interfacecom.orchestranetworks.userservice.declaration.UserServiceDeclaration<com.orchestranetworks.ui.selection.TableViewEntitySelection,com.orchestranetworks.userservice.declaration.ActivationContextOnTableView> - Returns:
- the user service that is launched
-
declareWebComponent
public void declareWebComponent(com.orchestranetworks.userservice.declaration.WebComponentDeclarationContext context) Defines the web component properties of the user service. By default, this method is empty.- Specified by:
declareWebComponentin interfacecom.orchestranetworks.userservice.declaration.UserServiceDeclaration<com.orchestranetworks.ui.selection.TableViewEntitySelection,com.orchestranetworks.userservice.declaration.ActivationContextOnTableView> - Parameters:
context- the declaration context of the web component
-
defineProperties
public void defineProperties(com.orchestranetworks.userservice.declaration.UserServicePropertiesDefinitionContext context) 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 interfacecom.orchestranetworks.userservice.declaration.UserServiceDeclaration<com.orchestranetworks.ui.selection.TableViewEntitySelection,com.orchestranetworks.userservice.declaration.ActivationContextOnTableView> - Parameters:
context- the properties definition context of the user service
-
getServiceKey
public com.orchestranetworks.service.ServiceKey getServiceKey()Returns the identifier of the user service.- Specified by:
getServiceKeyin interfacecom.orchestranetworks.userservice.declaration.UserServiceDeclaration<com.orchestranetworks.ui.selection.TableViewEntitySelection,com.orchestranetworks.userservice.declaration.ActivationContextOnTableView> - Returns:
- the ID of the user service as a
ServiceKey
-
defineActivation
public void defineActivation(com.orchestranetworks.userservice.declaration.ActivationContextOnTableView context) 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 interfacecom.orchestranetworks.userservice.declaration.UserServiceDeclaration<com.orchestranetworks.ui.selection.TableViewEntitySelection,com.orchestranetworks.userservice.declaration.ActivationContextOnTableView> - Parameters:
context- the activation context on the table view
-