Class DataspaceValidationReportExportServiceDeclaration
java.lang.Object
com.apgar.common.lib.service.declaration.DataspaceValidationReportExportServiceDeclaration
- All Implemented Interfaces:
UserServiceDeclaration<DataspaceEntitySelection,,ActivationContextOnDataspace> UserServiceDeclaration.OnDataspace
public class DataspaceValidationReportExportServiceDeclaration
extends Object
implements 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
UserServiceDeclaration.OnAssociation, UserServiceDeclaration.OnAssociationRecord, UserServiceDeclaration.OnDataset, UserServiceDeclaration.OnDataspace, UserServiceDeclaration.OnHierarchy, UserServiceDeclaration.OnHierarchyNode, UserServiceDeclaration.OnRecord, UserServiceDeclaration.OnTableView -
Constructor Summary
ConstructorsConstructorDescriptionConstructor to be used to register this user service for a specific module. -
Method Summary
Modifier and TypeMethodDescriptionCreates a new user service implementation of the dataspace 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
-
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
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 interfaceUserServiceDeclaration<DataspaceEntitySelection,ActivationContextOnDataspace> - 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<DataspaceEntitySelection,ActivationContextOnDataspace> - Parameters:
context- the declaration context of the web component
-
defineProperties
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 interfaceUserServiceDeclaration<DataspaceEntitySelection,ActivationContextOnDataspace> - Parameters:
context- the properties definition context of the user service
-
getServiceKey
Returns the identifier of the user service.- Specified by:
getServiceKeyin interfaceUserServiceDeclaration<DataspaceEntitySelection,ActivationContextOnDataspace> - 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 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 interfaceUserServiceDeclaration<DataspaceEntitySelection,ActivationContextOnDataspace> - Parameters:
context- the activation context on the dataset
-