@Test @DisplayName("Asset Universe") void testGetAssetUniverse() throws PropertyServerException, InvalidParameterException { AssetDescriptionResponse expectedResponse = mockAssetDescriptionResponse(); when(assetCatalog.getAssetUniverse(anyString(), anyString(), anyString())).thenReturn(expectedResponse); AssetDescription response = assetCatalogOMASService.getAssetUniverse(user, assetId, typeDef); verifyAssetDescriptionResult(response); }
public AssetDescription getAssetUniverse(String user, String assetId, String assetType) throws PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException { try { return assetCatalog.getAssetUniverse(user, assetId, assetType).getAssetDescription(); } catch (PropertyServerException | org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException e) { LOG.error(String.format("Error retrieving asset universe for %s", assetId)); throw e; } }
AssetCatalogOMASService { public AssetDescription getAssetUniverse(String user, String assetId, String assetType) throws PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException { try { return assetCatalog.getAssetUniverse(user, assetId, assetType).getAssetDescription(); } catch (PropertyServerException | org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException e) { LOG.error(String.format("Error retrieving asset universe for %s", assetId)); throw e; } } }
AssetCatalogOMASService { public AssetDescription getAssetUniverse(String user, String assetId, String assetType) throws PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException { try { return assetCatalog.getAssetUniverse(user, assetId, assetType).getAssetDescription(); } catch (PropertyServerException | org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException e) { LOG.error(String.format("Error retrieving asset universe for %s", assetId)); throw e; } } @Autowired  AssetCatalogOMASService(AssetCatalog assetCatalog); }
AssetCatalogOMASService { public AssetDescription getAssetUniverse(String user, String assetId, String assetType) throws PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException { try { return assetCatalog.getAssetUniverse(user, assetId, assetType).getAssetDescription(); } catch (PropertyServerException | org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException e) { LOG.error(String.format("Error retrieving asset universe for %s", assetId)); throw e; } } @Autowired  AssetCatalogOMASService(AssetCatalog assetCatalog); AssetDescription getAssetDetails(String user,
                                            String assetId,
                                            String assetType); AssetDescription getAssetUniverse(String user,
                                             String assetId,
                                             String assetType); List<Relationship> getAssetRelationships(String user, String assetId,
                                                    String assetType,
                                                    String relationshipTypeGUID,
                                                    Integer from,
                                                    Integer pageSize); List<Classification> getClassificationsForAsset(String user,
                                                           String assetId,
                                                           String assetType,
                                                           String classificationName); List<AssetElements> searchAssets(String user,
                                            String searchCriteria,
                                            SearchParameters searchParameters); AssetElements getAssetContext(String userId,
                                         String assetId,
                                         String assetType); List<Type> getSupportedTypes(String userId); }
AssetCatalogOMASService { public AssetDescription getAssetUniverse(String user, String assetId, String assetType) throws PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException { try { return assetCatalog.getAssetUniverse(user, assetId, assetType).getAssetDescription(); } catch (PropertyServerException | org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException e) { LOG.error(String.format("Error retrieving asset universe for %s", assetId)); throw e; } } @Autowired  AssetCatalogOMASService(AssetCatalog assetCatalog); AssetDescription getAssetDetails(String user,
                                            String assetId,
                                            String assetType); AssetDescription getAssetUniverse(String user,
                                             String assetId,
                                             String assetType); List<Relationship> getAssetRelationships(String user, String assetId,
                                                    String assetType,
                                                    String relationshipTypeGUID,
                                                    Integer from,
                                                    Integer pageSize); List<Classification> getClassificationsForAsset(String user,
                                                           String assetId,
                                                           String assetType,
                                                           String classificationName); List<AssetElements> searchAssets(String user,
                                            String searchCriteria,
                                            SearchParameters searchParameters); AssetElements getAssetContext(String userId,
                                         String assetId,
                                         String assetType); List<Type> getSupportedTypes(String userId);  }