Class GovernanceEngineConfigurationHandler
java.lang.Object
org.odpi.openmetadata.frameworkservices.gaf.handlers.GovernanceEngineConfigurationHandler
GovernanceConfigurationHandler provides the open metadata server side implementation of
GovernanceConfigurationServer which is part of the Open Governance Framework (ODF).
-
Constructor Summary
ConstructorsConstructorDescriptionGovernanceEngineConfigurationHandler(String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper, String localServerUserId, OpenMetadataServerSecurityVerifier securityVerifier, AuditLog auditLog) Construct the governance engine configuration handler caching the objects needed to operate within a single server instance. -
Method Summary
Modifier and TypeMethodDescriptiongetGovernanceEngineByName(String userId, String name) Return the properties from a governance engine definition.getGovernanceServiceByGUID(String userId, String guid) Return the properties from a governance service definition.getRegisteredGovernanceService(String userId, String governanceEngineGUID, String governanceServiceGUID) Retrieve a specific governance service registrations with a particular governance engine.getRegisteredGovernanceServices(String userId, String governanceEngineGUID, int startingFrom, int maximumResults) Retrieve the identifiers of the registered governance services with a governance engine.voidregisterGovernanceServiceWithEngine(String userId, String governanceEngineGUID, String governanceServiceGUID, String governanceRequestType, String serviceRequestType, Map<String, String> defaultAnalysisParameters, List<String> serviceSupportedZones) Register a governance service with a specific governance engine.
-
Constructor Details
-
GovernanceEngineConfigurationHandler
public GovernanceEngineConfigurationHandler(String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper, String localServerUserId, OpenMetadataServerSecurityVerifier securityVerifier, AuditLog auditLog) Construct the governance engine configuration handler caching the objects needed to operate within a single server instance.- Parameters:
serviceName- name of this serviceserverName- name of the local serverinvalidParameterHandler- handler for managing parameter errorsrepositoryHandler- manages calls to the repository servicesrepositoryHelper- provides utilities for manipulating the repository services objectslocalServerUserId- userId for this serversecurityVerifier- open metadata security services verifierauditLog- logging destination
-
-
Method Details
-
getGovernanceEngineByName
public GovernanceEngineElement getGovernanceEngineByName(String userId, String name) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Return the properties from a governance engine definition. The governance engine definition is completely contained in a single entity that can be retrieved from the repository services and converted to a bean.- Parameters:
userId- identifier of calling username- qualified name or display name (if unique).- Returns:
- properties from the governance engine definition.
- Throws:
InvalidParameterException- one of the parameters is null or invalid.UserNotAuthorizedException- user not authorized to issue this request.PropertyServerException- problem retrieving the governance engine definition.
-
getGovernanceServiceByGUID
public GovernanceServiceElement getGovernanceServiceByGUID(String userId, String guid) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Return the properties from a governance service definition.- Parameters:
userId- identifier of calling userguid- unique identifier (guid) of the governance service definition.- Returns:
- properties of the governance service.
- Throws:
InvalidParameterException- one of the parameters is null or invalid.UserNotAuthorizedException- user not authorized to issue this request.PropertyServerException- problem retrieving the governance service definition.
-
registerGovernanceServiceWithEngine
public void registerGovernanceServiceWithEngine(String userId, String governanceEngineGUID, String governanceServiceGUID, String governanceRequestType, String serviceRequestType, Map<String, String> defaultAnalysisParameters, List<String> serviceSupportedZones) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerExceptionRegister a governance service with a specific governance engine. Both the governance service and the governance engine already exist, so it is just a question of creating a relationship between them.- Parameters:
userId- identifier of calling usergovernanceEngineGUID- unique identifier of the governance engine.governanceServiceGUID- unique identifier of the governance service.governanceRequestType- list of governance request types that this governance service is able to process.serviceRequestType- request type supported by the servicedefaultAnalysisParameters- list of analysis parameters that are passed to the governance service (via the governance context). These values can be overridden on the actual governance request.serviceSupportedZones- supported zones for calling service- Throws:
InvalidParameterException- one of the parameters is null or invalid.UserNotAuthorizedException- user not authorized to issue this request.PropertyServerException- problem retrieving the governance service and/or governance engine definitions.
-
getRegisteredGovernanceService
public RegisteredGovernanceServiceElement getRegisteredGovernanceService(String userId, String governanceEngineGUID, String governanceServiceGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve a specific governance service registrations with a particular governance engine.- Parameters:
userId- identifier of calling usergovernanceEngineGUID- unique identifier of the governance engine.governanceServiceGUID- unique identifier of the registered governance service.- Returns:
- details of the governance service and the asset types it is registered for.
- Throws:
InvalidParameterException- one of the parameters is null or invalid.UserNotAuthorizedException- user not authorized to issue this request.PropertyServerException- problem retrieving the governance service and/or governance engine definitions.
-
getRegisteredGovernanceServices
public List<RegisteredGovernanceServiceElement> getRegisteredGovernanceServices(String userId, String governanceEngineGUID, int startingFrom, int maximumResults) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the identifiers of the registered governance services with a governance engine.- Parameters:
userId- identifier of calling usergovernanceEngineGUID- unique identifier of the governance engine.startingFrom- initial position in the stored list.maximumResults- maximum number of definitions to return on this call.- Returns:
- list of unique identifiers
- Throws:
InvalidParameterException- one of the parameters is null or invalid.UserNotAuthorizedException- user not authorized to issue this request.PropertyServerException- problem retrieving the governance service and/or governance engine definitions.
-