Class GovernanceEngineConfigurationHandler
java.lang.Object
org.odpi.openmetadata.frameworkservices.gaf.handlers.GovernanceEngineConfigurationHandler
GovernanceEngineConfigurationHandler provides the open metadata server side implementation of
the configuration of governance engines and governance services, which is part of the
Open Governance Framework (OGF).
-
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.
-
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- the user is 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- the user is not authorized to issue this request.PropertyServerException- problem retrieving the governance service definition.
-
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- the user is 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- the user is not authorized to issue this request.PropertyServerException- problem retrieving the governance service and/or governance engine definitions.
-