Class AssetController
java.lang.Object
org.odpi.openmetadata.userinterface.uichassis.springboot.api.asset.AssetController
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAssetContext
(String guid) searchAssets
(String searchCriteria, List<String> types, String sequencingProperty, SequencingOrder sequencingOrder, boolean caseSensitive, boolean exactMatch, Integer from, Integer pageSize) searchAssetsByTypeGUID
(String typeGUID) searchAssetsByTypeName
(String typeName)
-
Constructor Details
-
AssetController
public AssetController()
-
-
Method Details
-
searchAssets
@GetMapping(path="/search") public List<Elements> searchAssets(@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, InvalidParameterException - Parameters:
searchCriteria
- 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 backendInvalidParameterException
- if parameter validation fails
-
searchAssetsByTypeName
@GetMapping(path="/search-by-type-name/{typeName}") public List<Elements> searchAssetsByTypeName(@PathVariable("typeName") String typeName) throws PropertyServerException, InvalidParameterException - Parameters:
typeName
- the assets type name to search for- Returns:
- list of assets by type name
- Throws:
PropertyServerException
- if a configuration on the backendInvalidParameterException
- if parameter validation fails
-
searchAssetsByTypeGUID
@GetMapping(path="/search-by-type-guid/{typeGUID}") public List<Elements> searchAssetsByTypeGUID(@PathVariable("typeGUID") String typeGUID) throws PropertyServerException, InvalidParameterException - Parameters:
typeGUID
- the assets type GUID to search for- Returns:
- list of assets by type GUID
- Throws:
PropertyServerException
- if a configuration on the backendInvalidParameterException
- if parameter validation fails
-
getSupportedTypes
@GetMapping(path="/types") public List<Type> getSupportedTypes() throws PropertyServerException, InvalidParameterException- Returns:
- the supported types from AssetCatalog OMAS
- Throws:
PropertyServerException
- if a configuration on the backendInvalidParameterException
- if parameter validation fails
-
getAsset
@GetMapping("/{guid}") public AssetCatalogBean getAsset(@PathVariable("guid") String guid) throws PropertyServerException, InvalidParameterException - Parameters:
guid
- of the Entity to be retrieved- Returns:
- the entity details
- Throws:
PropertyServerException
- if a configuration on the backendInvalidParameterException
- if parameter validation fails
-
getAssetContext
@GetMapping("/{guid}/context") public Elements getAssetContext(@PathVariable("guid") String guid) throws PropertyServerException, InvalidParameterException - Parameters:
guid
- of the Entity to be retrieved- Returns:
- the entity context
- Throws:
PropertyServerException
- if a configuration on the backendInvalidParameterException
- if parameter validation fails
-