java.lang.Object
org.odpi.openmetadata.userinterface.uichassis.springboot.api.asset.AssetController

@RestController @RequestMapping("/api/assets") public class AssetController extends Object
  • Constructor Details

    • AssetController

      public AssetController()
  • Method Details

    • searchAssets

      @GetMapping(path="/search") public List<org.odpi.openmetadata.accessservices.assetcatalog.model.Elements> searchAssets(@RequestParam("q") String searchCriteria, @RequestParam("types") List<String> types, @RequestParam(name="sequencingProperty",defaultValue="displayName") String sequencingProperty, @RequestParam(name="sequencingOrder",defaultValue="PROPERTY_ASCENDING") org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.SequencingOrder sequencingOrder, @RequestParam(defaultValue="false") boolean caseSensitive, @RequestParam(defaultValue="false") boolean exactMatch, @RequestParam(defaultValue="0") Integer from, @RequestParam(defaultValue="10") Integer pageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException
      Parameters:
      searchCriteria - the query parameter with the search phrase
      types - OM types list to search for
      sequencingProperty - name of the property based on which to sort the result
      sequencingOrder - PROPERTY_ASCENDING or PROPERTY_DESCENDING
      caseSensitive - set case sensitive flag
      exactMatch - set exact match flag
      from - the offset for the results
      pageSize - the number of results per page
      Returns:
      list of assets
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - if a configuration on the backend
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - if parameter validation fails
    • searchAssetsByTypeName

      @GetMapping(path="/search-by-type-name/{typeName}") public List<org.odpi.openmetadata.accessservices.assetcatalog.model.Elements> searchAssetsByTypeName(@PathVariable("typeName") String typeName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException
      Parameters:
      typeName - the assets type name to search for
      Returns:
      list of assets by type name
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - if a configuration on the backend
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - if parameter validation fails
    • searchAssetsByTypeGUID

      @GetMapping(path="/search-by-type-guid/{typeGUID}") public List<org.odpi.openmetadata.accessservices.assetcatalog.model.Elements> searchAssetsByTypeGUID(@PathVariable("typeGUID") String typeGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException
      Parameters:
      typeGUID - the assets type GUID to search for
      Returns:
      list of assets by type GUID
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - if a configuration on the backend
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - if parameter validation fails
    • getSupportedTypes

      @GetMapping(path="/types") public List<org.odpi.openmetadata.accessservices.assetcatalog.model.Type> getSupportedTypes() throws org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException
      Returns:
      the supported types from AssetCatalog OMAS
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - if a configuration on the backend
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - if parameter validation fails
    • getAsset

      @GetMapping("/{guid}") public org.odpi.openmetadata.accessservices.assetcatalog.model.AssetCatalogBean getAsset(@PathVariable("guid") String guid) throws org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException
      Parameters:
      guid - of the Entity to be retrieved
      Returns:
      the entity details
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - if a configuration on the backend
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - if parameter validation fails
    • getAssetContext

      @GetMapping("/{guid}/context") public org.odpi.openmetadata.accessservices.assetcatalog.model.Elements getAssetContext(@PathVariable("guid") String guid) throws org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException
      Parameters:
      guid - of the Entity to be retrieved
      Returns:
      the entity context
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - if a configuration on the backend
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - if parameter validation fails