java.lang.Object
org.odpi.openmetadata.accessservices.glossaryview.server.spring.CategoryResource

@RestController @Validated @RequestMapping("/servers/{serverName}/open-metadata/access-services/glossary-view/users/{userId}") public class CategoryResource extends Object
Spring Rest Controller defining 'GlossaryCategory' oriented endpoints
  • Constructor Summary

    Constructors
    Constructor
    Description
    Called by Spring
  • Method Summary

    Modifier and Type
    Method
    Description
    org.odpi.openmetadata.accessservices.glossaryview.rest.GlossaryViewEntityDetailResponse
    getAllCategories(String serverName, String userId, @PositiveOrZero Integer from, @PositiveOrZero @Max(1000L) Integer size)
    Extract all categories
    org.odpi.openmetadata.accessservices.glossaryview.rest.GlossaryViewEntityDetailResponse
    getCategoriesViaCategoryAnchorRelationships(String serverName, String userId, @NotBlank String glossaryGUID, @PositiveOrZero Integer from, @PositiveOrZero @Max(1000L) Integer size)
    Extract category definitions for the given glossary GUID via the 'CategoryAnchor' type relationships
    org.odpi.openmetadata.accessservices.glossaryview.rest.GlossaryViewEntityDetailResponse
    getCategory(String serverName, String userId, @NotBlank String categoryGUID)
    Extract the category definition for the given GUID
    org.odpi.openmetadata.accessservices.glossaryview.rest.GlossaryViewEntityDetailResponse
    getExternalGlossaryLinks(String serverName, String userId, @NotBlank String categoryGUID, @PositiveOrZero Integer from, @PositiveOrZero @Max(1000L) Integer size)
    Extract external glossary link definitions for the given category
    org.odpi.openmetadata.accessservices.glossaryview.rest.GlossaryViewEntityDetailResponse
    getSubcategories(String serverName, String userId, @NotBlank String categoryGUID, @PositiveOrZero Integer from, @PositiveOrZero @Max(1000L) Integer size)
    Extract subcategory definitions for the given GUID

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CategoryResource

      public CategoryResource()
      Called by Spring
  • Method Details

    • getAllCategories

      @GetMapping(path="/categories") public org.odpi.openmetadata.accessservices.glossaryview.rest.GlossaryViewEntityDetailResponse getAllCategories(@PathVariable("serverName") String serverName, @PathVariable("userId") String userId, @RequestParam(name="from",defaultValue="0") @PositiveOrZero @PositiveOrZero Integer from, @RequestParam(name="size",defaultValue="100") @PositiveOrZero @Max(1000L) @PositiveOrZero @Max(1000L) Integer size)
      Extract all categories
      Parameters:
      serverName - instance to call
      userId - calling user
      from - from
      size - size
      Returns:
      categories
    • getCategory

      @GetMapping(path="/categories/{categoryGUID}") public org.odpi.openmetadata.accessservices.glossaryview.rest.GlossaryViewEntityDetailResponse getCategory(@PathVariable("serverName") String serverName, @PathVariable("userId") String userId, @PathVariable("categoryGUID") @NotBlank @NotBlank String categoryGUID)
      Extract the category definition for the given GUID
      Parameters:
      serverName - instance to call
      userId - calling user
      categoryGUID - category GUID
      Returns:
      a category
    • getCategoriesViaCategoryAnchorRelationships

      @GetMapping(path="/glossaries/{glossaryGUID}/categories") public org.odpi.openmetadata.accessservices.glossaryview.rest.GlossaryViewEntityDetailResponse getCategoriesViaCategoryAnchorRelationships(@PathVariable("serverName") String serverName, @PathVariable("userId") String userId, @PathVariable("glossaryGUID") @NotBlank @NotBlank String glossaryGUID, @RequestParam(name="from",defaultValue="0") @PositiveOrZero @PositiveOrZero Integer from, @RequestParam(name="size",defaultValue="100") @PositiveOrZero @Max(1000L) @PositiveOrZero @Max(1000L) Integer size)
      Extract category definitions for the given glossary GUID via the 'CategoryAnchor' type relationships
      Parameters:
      serverName - instance to call
      userId - calling user
      glossaryGUID - glossary GUID
      from - from
      size - size
      Returns:
      categories
    • getSubcategories

      @GetMapping(path="/categories/{categoryGUID}/subcategories") public org.odpi.openmetadata.accessservices.glossaryview.rest.GlossaryViewEntityDetailResponse getSubcategories(@PathVariable("serverName") String serverName, @PathVariable("userId") String userId, @PathVariable("categoryGUID") @NotBlank @NotBlank String categoryGUID, @RequestParam(name="from",defaultValue="0") @PositiveOrZero @PositiveOrZero Integer from, @RequestParam(name="size",defaultValue="100") @PositiveOrZero @Max(1000L) @PositiveOrZero @Max(1000L) Integer size)
      Extract subcategory definitions for the given GUID
      Parameters:
      serverName - instance to call
      userId - calling user
      categoryGUID - category GUID
      from - from
      size - size
      Returns:
      subcategories
    • getExternalGlossaryLinks

      @GetMapping(path="/categories/{categoryGUID}/external-glossary-links") public org.odpi.openmetadata.accessservices.glossaryview.rest.GlossaryViewEntityDetailResponse getExternalGlossaryLinks(@PathVariable("serverName") String serverName, @PathVariable("userId") String userId, @PathVariable("categoryGUID") @NotBlank @NotBlank String categoryGUID, @RequestParam(name="from",defaultValue="0") @PositiveOrZero @PositiveOrZero Integer from, @RequestParam(name="size",defaultValue="100") @PositiveOrZero @Max(1000L) @PositiveOrZero @Max(1000L) Integer size)
      Extract external glossary link definitions for the given category
      Parameters:
      serverName - instance to call
      userId - calling user
      categoryGUID - category GUID
      from - from
      size - size
      Returns:
      external glossary links