Skip to content

Commit

Permalink
odpi#5399 generic handlers dependancy test
Browse files Browse the repository at this point in the history
Signed-off-by: David Radley <david_radley@uk.ibm.com>
Signed-off-by: Bogdan Sava <bogdan.sava@gmail.com>
  • Loading branch information
davidradl authored and bogdan-sava committed Jul 7, 2021
1 parent 9f36692 commit 2adf76d
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@
<artifactId>repository-services-apis</artifactId>
</dependency>

<dependency>
<groupId>org.odpi.egeria</groupId>
<artifactId>generic-handlers</artifactId>
</dependency>

<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
Expand Down Expand Up @@ -92,6 +97,11 @@
<artifactId>repository-handler</artifactId>
</dependency>

<dependency>
<groupId>org.odpi.egeria</groupId>
<artifactId>ocf-metadata-management</artifactId>
</dependency>

<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,16 @@

import org.odpi.openmetadata.accessservices.subjectarea.ffdc.SubjectAreaErrorCode;
import org.odpi.openmetadata.accessservices.subjectarea.handlers.*;
import org.odpi.openmetadata.accessservices.subjectarea.properties.objects.glossary.Glossary;
import org.odpi.openmetadata.accessservices.subjectarea.utilities.OMRSAPIHelper;
import org.odpi.openmetadata.adminservices.configuration.registration.AccessServiceDescription;
import org.odpi.openmetadata.commonservices.multitenant.OMASServiceInstance;
import org.odpi.openmetadata.commonservices.multitenant.ffdc.exceptions.NewInstanceException;
import org.odpi.openmetadata.frameworks.auditlog.AuditLog;
import org.odpi.openmetadata.frameworks.connectors.properties.beans.Referenceable;
import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryConnector;
import org.odpi.openmetadata.commonservices.generichandlers.*;
import org.odpi.openmetadata.commonservices.ocf.metadatamanagement.converters.ReferencableConverter;

/**
* SubjectAreaRESTServicesInstance caches references to OMRS objects for a specific server.
Expand Down Expand Up @@ -62,6 +66,20 @@ public SubjectAreaServicesInstance(OMRSRepositoryConnector repositoryConnector,
repositoryHelper
);
}
OpenMetadataAPIGenericHandler<Glossary> genericHandler = new OpenMetadataAPIGenericHandler<>(
new GlossaryConverter<>(repositoryHelper, serviceName, serverName),
Referenceable.class, // no beans
serviceName,
serverName,
invalidParameterHandler,
repositoryHandler,
repositoryHelper,
localServerUserId,
securityVerifier,
supportedZones,
defaultZones,
publishZones,
auditLog);

this.glossaryHandler= new SubjectAreaGlossaryHandler(oMRSAPIHelper, maxPageSize);

Expand Down

0 comments on commit 2adf76d

Please sign in to comment.