Class AssetController
java.lang.Object
org.odpi.openmetadata.viewservices.assetcatalog.server.spring.AssetController
@RestController
@RequestMapping("/servers/{serverName}/api/open-metadata/asset-catalog/old/assets")
@Deprecated
public class AssetController
extends Object
Deprecated.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Fetch asset's header, classification and properties.getAssetContext
(String serverName, String guid) Deprecated.Return the full context of an asset/glossary term based on its identifier.getSupportedTypes
(String serverName) Deprecated.Returns the list with supported types for search, including the subtypes supportedsearchAssets
(String serverName, String searchCriteria, List<String> types, String sequencingProperty, SequencingOrder sequencingOrder, boolean caseSensitive, boolean exactMatch, Integer from, Integer pageSize) Deprecated.Return a list of assets matching the search criteria without the full contextsearchAssetsByTypeGUID
(String serverName, String typeGUID) Deprecated.Return a list of assets matching the type GUID without the full context The list includes also subtypessearchAssetsByTypeName
(String serverName, String typeName) Deprecated.Return a list of assets matching the type name without the full context The list includes also subtypes
-
Constructor Details
-
AssetController
public AssetController()Deprecated.
-
-
Method Details
-
searchAssets
@GetMapping(path="/search") public List<Elements> searchAssets(@PathVariable String serverName, @RequestParam("q") String searchCriteria, @RequestParam("types") List<String> types, @RequestParam(name="sequencingProperty",defaultValue="displayName") String sequencingProperty, @RequestParam(name="sequencingOrder",defaultValue="PROPERTY_ASCENDING") SequencingOrder sequencingOrder, @RequestParam(defaultValue="false") boolean caseSensitive, @RequestParam(defaultValue="false") boolean exactMatch, @RequestParam(defaultValue="0") Integer from, @RequestParam(defaultValue="10") Integer pageSize) throws PropertyServerException, UserNotAuthorizedException, InvalidParameterException Deprecated.Return a list of assets matching the search criteria without the full context- Parameters:
serverName
- name of the server to route the request tosearchCriteria
- the query parameter with the search phrasetypes
- OM types list to search forsequencingProperty
- name of the property based on which to sort the resultsequencingOrder
- PROPERTY_ASCENDING or PROPERTY_DESCENDINGcaseSensitive
- set case sensitive flagexactMatch
- set exact match flagfrom
- the offset for the resultspageSize
- the number of results per page- Returns:
- list of assets
- Throws:
PropertyServerException
- if a configuration on the backendUserNotAuthorizedException
- security access problemInvalidParameterException
- if parameter validation fails
-
searchAssetsByTypeName
@GetMapping(path="/search-by-type-name/{typeName}") public List<Elements> searchAssetsByTypeName(@PathVariable String serverName, @PathVariable("typeName") String typeName) throws PropertyServerException, UserNotAuthorizedException, InvalidParameterException Deprecated.Return a list of assets matching the type name without the full context The list includes also subtypes- Parameters:
serverName
- name of the server to route the request totypeName
- the assets type name to search for- Returns:
- list of assets by type name
- Throws:
PropertyServerException
- if a configuration on the backendUserNotAuthorizedException
- security access problemInvalidParameterException
- if parameter validation fails
-
searchAssetsByTypeGUID
@GetMapping(path="/search-by-type-guid/{typeGUID}") public List<Elements> searchAssetsByTypeGUID(@PathVariable String serverName, @PathVariable("typeGUID") String typeGUID) throws PropertyServerException, UserNotAuthorizedException, InvalidParameterException Deprecated.Return a list of assets matching the type GUID without the full context The list includes also subtypes- Parameters:
serverName
- name of the server to route the request totypeGUID
- the assets type GUID to search for- Returns:
- list of assets by type GUID
- Throws:
PropertyServerException
- if a configuration on the backendUserNotAuthorizedException
- security access problemInvalidParameterException
- if parameter validation fails
-
getSupportedTypes
@GetMapping(path="/types") public List<Type> getSupportedTypes(@PathVariable String serverName) throws PropertyServerException, UserNotAuthorizedException, InvalidParameterException Deprecated.Returns the list with supported types for search, including the subtypes supported- Parameters:
serverName
- name of the server to route the request to- Returns:
- the supported types from Asset Consumer OMAS
- Throws:
PropertyServerException
- if a configuration on the backendInvalidParameterException
- if parameter validation failsUserNotAuthorizedException
- security access problem
-
getAsset
@GetMapping("/{guid}") public AssetCatalogBean getAsset(@PathVariable String serverName, @PathVariable("guid") String guid) throws PropertyServerException, UserNotAuthorizedException, InvalidParameterException Deprecated.Fetch asset's header, classification and properties.- Parameters:
serverName
- name of the server to route the request toguid
- of the Entity to be retrieved- Returns:
- the entity details
- Throws:
PropertyServerException
- if a configuration on the backendUserNotAuthorizedException
- security access problemInvalidParameterException
- if parameter validation fails
-
getAssetContext
@GetMapping("/{guid}/context") public Elements getAssetContext(@PathVariable String serverName, @PathVariable("guid") String guid) throws PropertyServerException, UserNotAuthorizedException, InvalidParameterException Deprecated.Return the full context of an asset/glossary term based on its identifier. The response contains the list of the connections assigned to the asset.- Parameters:
serverName
- name of the server to route the request toguid
- of the Entity to be retrieved- Returns:
- the entity context
- Throws:
PropertyServerException
- if a configuration on the backendUserNotAuthorizedException
- security access problemInvalidParameterException
- if parameter validation fails
-