Class DataspaceValidationReportExportServiceDeclaration
java.lang.Object
com.apgar.common.lib.service.declaration.DataspaceValidationReportExportServiceDeclaration
- All Implemented Interfaces:
com.orchestranetworks.userservice.declaration.UserServiceDeclaration<com.orchestranetworks.ui.selection.DataspaceEntitySelection,,com.orchestranetworks.userservice.declaration.ActivationContextOnDataspace> com.orchestranetworks.userservice.declaration.UserServiceDeclaration.OnDataspace
public class DataspaceValidationReportExportServiceDeclaration
extends Object
implements com.orchestranetworks.userservice.declaration.UserServiceDeclaration.OnDataspace
Service Declaration for the Dataspace Validation Report Export Service.
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.DataspaceValidationReportExportServiceDeclaration
public class RegisterServlet extends ModuleRegistrationServlet {
@Override
public void handleServiceRegistration(ModuleServiceRegistrationContext context) {
context.registerUserService(new DataspaceValidationReportExportServiceDeclaration(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
ConstructorsConstructorDescriptionConstructor to be used to register this user service for a specific module. -
Method Summary
Modifier and TypeMethodDescriptioncom.orchestranetworks.userservice.UserService<com.orchestranetworks.ui.selection.DataspaceEntitySelection>Creates a new user service implementation of the dataspace validation report export.voiddeclareWebComponent(com.orchestranetworks.userservice.declaration.WebComponentDeclarationContext context) Defines the web component properties of the user service.voiddefineActivation(com.orchestranetworks.userservice.declaration.ActivationContextOnDataspace 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
-
DataspaceValidationReportExportServiceDeclaration
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.DataspaceEntitySelection> createUserService()Creates a new user service implementation of the dataspace 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.DataspaceEntitySelection,com.orchestranetworks.userservice.declaration.ActivationContextOnDataspace> - 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.DataspaceEntitySelection,com.orchestranetworks.userservice.declaration.ActivationContextOnDataspace> - 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 Dataspace Validation Report Export and sets the following confirmation message before launching: Dataspace Validation Report Export?
- Specified by:
definePropertiesin interfacecom.orchestranetworks.userservice.declaration.UserServiceDeclaration<com.orchestranetworks.ui.selection.DataspaceEntitySelection,com.orchestranetworks.userservice.declaration.ActivationContextOnDataspace> - 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.DataspaceEntitySelection,com.orchestranetworks.userservice.declaration.ActivationContextOnDataspace> - Returns:
- the ID of the user service as a
ServiceKey
-
defineActivation
public void defineActivation(com.orchestranetworks.userservice.declaration.ActivationContextOnDataspace context) Defines the activation scope of this service. By default, it is activated for all branches. *To customize the activation, you can either extend this class or customize it through dataspace permissions in the UI administration tab.
- Specified by:
defineActivationin interfacecom.orchestranetworks.userservice.declaration.UserServiceDeclaration<com.orchestranetworks.ui.selection.DataspaceEntitySelection,com.orchestranetworks.userservice.declaration.ActivationContextOnDataspace> - Parameters:
context- the activation context on the dataset
-