java.lang.Object
org.odpi.openmetadata.viewservices.subjectarea.server.spring.SubjectAreaResource

@RestController @RequestMapping("/servers/{serverName}/api/open-metadata/subject-area") public class SubjectAreaResource extends Object
The SubjectAreaResource provides part of the server-side implementation of the Subject Area OMVS. =
  • Constructor Details

    • SubjectAreaResource

      public SubjectAreaResource()
      Default constructor
  • Method Details

    • linkSubjectAreas

      @PostMapping(path="/subject-areas/{subjectAreaGUID}/subject-area-hierarchies/{nestedSubjectAreaGUID}/attach") public VoidResponse linkSubjectAreas(@PathVariable String serverName, @PathVariable String subjectAreaGUID, @PathVariable String nestedSubjectAreaGUID, @RequestBody(required=false) NewRelationshipRequestBody requestBody)
      Attach a nested subject area to a broader subject area definition.
      Parameters:
      serverName - name of called server
      subjectAreaGUID - unique identifier of the first subject area definition
      nestedSubjectAreaGUID - unique identifier of the second subject area definition
      requestBody - description of the relationship.
      Returns:
      void or InvalidParameterException one of the parameters is null or invalid. PropertyServerException there is a problem retrieving information from the property server(s). UserNotAuthorizedException the requesting user is not authorized to issue this request.
    • detachSubjectAreas

      @PostMapping(path="/subject-areas/{parentSubjectAreaGUID}/subject-area-hierarchies/{memberDataFieldGUID}/detach") public VoidResponse detachSubjectAreas(@PathVariable String serverName, @PathVariable String parentSubjectAreaGUID, @PathVariable String memberDataFieldGUID, @RequestBody(required=false) DeleteRequestBody requestBody)
      Detach a subject area definition from a hierarchical relationship.
      Parameters:
      serverName - name of called server
      parentSubjectAreaGUID - unique identifier of the first subject area definition
      memberDataFieldGUID - unique identifier of the second subject area definition
      requestBody - description of the relationship.
      Returns:
      void or InvalidParameterException one of the parameters is null or invalid. PropertyServerException there is a problem retrieving information from the property server(s). UserNotAuthorizedException the requesting user is not authorized to issue this request.
    • addElementToSubjectArea

      @PostMapping(path="/elements/{elementGUID}/subject-area-member") public VoidResponse addElementToSubjectArea(@PathVariable String serverName, @PathVariable String elementGUID, @RequestBody(required=false) NewClassificationRequestBody requestBody)
      Classify the element to assert that the definitions it represents are part of a subject area definition.
      Parameters:
      serverName - name of the server instance to connect to
      elementGUID - unique identifier of the metadata element to update
      requestBody - properties for classification request
      Returns:
      void or InvalidParameterException full path or userId is null or PropertyServerException problem accessing property server or UserNotAuthorizedException security access problem
    • removeElementFromSubjectArea

      @PostMapping(path="/elements/{elementGUID}/subject-area-member/remove") public VoidResponse removeElementFromSubjectArea(@PathVariable String serverName, @PathVariable String elementGUID, @RequestBody(required=false) DeleteRequestBody requestBody)
      Remove the subject area designation from the identified element.
      Parameters:
      serverName - name of the server instance to connect to
      elementGUID - unique identifier of the metadata element to update
      requestBody - properties for classification request
      Returns:
      void or InvalidParameterException full path or userId is null or PropertyServerException problem accessing property server or UserNotAuthorizedException security access problem