Class OpenIntegrationHandler
java.lang.Object
org.odpi.openmetadata.frameworkservices.oif.handlers.OpenIntegrationHandler
OpenIntegrationHandler provides the open metadata server side implementation of
OpenIntegrationServer which is part of the Open Integration Framework (OIF).
-
Constructor Summary
ConstructorDescriptionOpenIntegrationHandler
(String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper, String localServerUserId, OpenMetadataServerSecurityVerifier securityVerifier, List<String> supportedZones, List<String> defaultZones, List<String> publishZones, AuditLog auditLog) Construct the governance engine configuration handler caching the objects needed to operate within a single server instance. -
Method Summary
Modifier and TypeMethodDescriptiongetIntegrationReport
(String userId, String reportGUID) Retrieve a specific integration report by unique identifier.getIntegrationReports
(String userId, Date afterCompletionDate, Date beforeStartDate, int startingFrom, int maximumResults) Retrieve the published integration reports.getIntegrationReportsForElement
(String userId, String elementGUID, Date afterCompletionDate, Date beforeStartDate, int startingFrom, int maximumResults) Retrieve the integration reports attached to an element.void
publishIntegrationReport
(String userId, String elementGUID, List<String> serviceSupportedZones, IntegrationReportProperties properties) Create a new integration report for an element (identified by elementGUID).
-
Constructor Details
-
OpenIntegrationHandler
public OpenIntegrationHandler(String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper, String localServerUserId, OpenMetadataServerSecurityVerifier securityVerifier, List<String> supportedZones, List<String> defaultZones, List<String> publishZones, 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 verifiersupportedZones
- list of zones that the access service is allowed to serve B instances from.defaultZones
- list of zones that the access service should set in all new B instances.publishZones
- list of zones that the access service sets up in published B instances.auditLog
- logging destination
-
-
Method Details
-
publishIntegrationReport
public void publishIntegrationReport(String userId, String elementGUID, List<String> serviceSupportedZones, IntegrationReportProperties properties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a new integration report for an element (identified by elementGUID).- Parameters:
userId
- calling userelementGUID
- element to attach the integration report toproperties
- properties of the report- Throws:
InvalidParameterException
- one of the parameters is null or invalid,UserNotAuthorizedException
- user not authorized to issue this request.PropertyServerException
- problem with the metadata server.
-
getIntegrationReport
public IntegrationReport getIntegrationReport(String userId, String reportGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve a specific integration report by unique identifier.- Parameters:
userId
- calling userreportGUID
- unique identifier of the integration report- Returns:
- report or null
- Throws:
InvalidParameterException
- one of the parameters is null or invalid,UserNotAuthorizedException
- user not authorized to issue this request.PropertyServerException
- problem with the metadata server.
-
getIntegrationReportsForElement
public List<IntegrationReport> getIntegrationReportsForElement(String userId, String elementGUID, Date afterCompletionDate, Date beforeStartDate, int startingFrom, int maximumResults) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the integration reports attached to an element. The list can be filtered by start and completion date of the report along with the paging options if there are many integration reports.- Parameters:
userId
- calling userelementGUID
- calling userafterCompletionDate
- restrict reports to those that completed after the requested time (null for any completion time).beforeStartDate
- restrict reports to those that started before the requested time (null for any start time).startingFrom
- initial position in the stored list.maximumResults
- maximum number of definitions to return on this call.- Returns:
- list of qualifying reports
- Throws:
InvalidParameterException
- one of the parameters is null or invalid,UserNotAuthorizedException
- user not authorized to issue this request.PropertyServerException
- problem with the metadata server.
-
getIntegrationReports
public List<IntegrationReport> getIntegrationReports(String userId, Date afterCompletionDate, Date beforeStartDate, int startingFrom, int maximumResults) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the published integration reports. The list can be filtered by start and completion date of the report along with the paging options if there are many integration reports.- Parameters:
userId
- calling userafterCompletionDate
- restrict reports to those that completed after the requested time (null for any completion time).beforeStartDate
- restrict reports to those that started before the requested time (null for any start time).startingFrom
- initial position in the stored list.maximumResults
- maximum number of definitions to return on this call.- Returns:
- list of qualifying reports
- Throws:
InvalidParameterException
- one of the parameters is null or invalid,UserNotAuthorizedException
- user not authorized to issue this request.PropertyServerException
- problem with the metadata server.
-