diff --git a/open-metadata-implementation/access-services/asset-lineage/asset-lineage-server/src/main/java/org/odpi/openmetadata/accessservices/assetlineage/handlers/HandlerHelper.java b/open-metadata-implementation/access-services/asset-lineage/asset-lineage-server/src/main/java/org/odpi/openmetadata/accessservices/assetlineage/handlers/HandlerHelper.java index fc936d47798..16df1c3fff9 100644 --- a/open-metadata-implementation/access-services/asset-lineage/asset-lineage-server/src/main/java/org/odpi/openmetadata/accessservices/assetlineage/handlers/HandlerHelper.java +++ b/open-metadata-implementation/access-services/asset-lineage/asset-lineage-server/src/main/java/org/odpi/openmetadata/accessservices/assetlineage/handlers/HandlerHelper.java @@ -251,8 +251,7 @@ private boolean addPagedEntities(String userId, String entityTypeName, SearchPro FindEntitiesParameters findEntitiesParameters, List allEntities, int startingFrom, int pageSize) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException { final String methodName = "addPagedEntities"; - String typeDefGUID = getTypeGUID(userId, entityTypeName); - List pagedEntities = genericHandler.findEntities(userId, typeDefGUID, findEntitiesParameters.getEntitySubtypeGUIDs(), + List pagedEntities = genericHandler.findEntities(userId, entityTypeName, findEntitiesParameters.getEntitySubtypeGUIDs(), searchProperties, findEntitiesParameters.getLimitResultsByStatus(), findEntitiesParameters.getSearchClassifications(), null, findEntitiesParameters.getSequencingProperty(), findEntitiesParameters.getSequencingOrder(), true, false, startingFrom, pageSize, clockService.getNow(), methodName); diff --git a/open-metadata-implementation/access-services/asset-lineage/asset-lineage-server/src/test/java/org/odpi/openmetadata/accessservices/assetlineage/handlers/HandlerHelperTest.java b/open-metadata-implementation/access-services/asset-lineage/asset-lineage-server/src/test/java/org/odpi/openmetadata/accessservices/assetlineage/handlers/HandlerHelperTest.java index d85f7dcd361..f26a87bd452 100644 --- a/open-metadata-implementation/access-services/asset-lineage/asset-lineage-server/src/test/java/org/odpi/openmetadata/accessservices/assetlineage/handlers/HandlerHelperTest.java +++ b/open-metadata-implementation/access-services/asset-lineage/asset-lineage-server/src/test/java/org/odpi/openmetadata/accessservices/assetlineage/handlers/HandlerHelperTest.java @@ -205,11 +205,10 @@ void findEntitiesByType() throws PropertyServerException, UserNotAuthorizedExcep when(findEntitiesParameters.getEntitySubtypeGUIDs()).thenReturn(guids); when(invalidParameterHandler.getMaxPagingSize()).thenReturn(500); - mockTypeDef(ENTITY_TYPE_NAME, ENTITY_TYPE_GUID); List entities = new ArrayList<>(); EntityDetail entityDetail = mock(EntityDetail.class); entities.add(entityDetail); - when(genericHandler.findEntities(USER, ENTITY_TYPE_GUID, guids, searchProperties, Collections.emptyList(), + when(genericHandler.findEntities(USER, ENTITY_TYPE_NAME, guids, searchProperties, Collections.emptyList(), null, null, null, null, true, false, 0, 500, null, "addPagedEntities")).thenReturn(entities); @@ -226,8 +225,7 @@ void findEntitiesByType_noEntity() throws PropertyServerException, UserNotAuthor when(findEntitiesParameters.getEntitySubtypeGUIDs()).thenReturn(guids); when(invalidParameterHandler.getMaxPagingSize()).thenReturn(500); - mockTypeDef(ENTITY_TYPE_NAME, ENTITY_TYPE_GUID); - when(genericHandler.findEntities(USER, ENTITY_TYPE_GUID, guids, searchProperties, Collections.emptyList(), + when(genericHandler.findEntities(USER, ENTITY_TYPE_NAME, guids, searchProperties, Collections.emptyList(), null, null, null, null, true, false, 0, 500, null, "addPagedEntities")).thenReturn(null);