Class SubjectAreaResource
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 Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionaddElementToSubjectArea(String serverName, String elementGUID, NewClassificationRequestBody requestBody) Classify the element to assert that the definitions it represents are part of a subject area definition.detachSubjectAreas(String serverName, String parentSubjectAreaGUID, String memberDataFieldGUID, DeleteRelationshipRequestBody requestBody) Detach a subject area definition from a hierarchical relationship.linkSubjectAreas(String serverName, String subjectAreaGUID, String nestedSubjectAreaGUID, NewRelationshipRequestBody requestBody) Attach a nested subject area to a broader subject area definition.removeElementFromSubjectArea(String serverName, String elementGUID, DeleteClassificationRequestBody requestBody) Remove the subject area designation from the identified element. 
- 
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 serversubjectAreaGUID- unique identifier of the first subject area definitionnestedSubjectAreaGUID- unique identifier of the second subject area definitionrequestBody- 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) DeleteRelationshipRequestBody requestBody) Detach a subject area definition from a hierarchical relationship.- Parameters:
 serverName- name of called serverparentSubjectAreaGUID- unique identifier of the first subject area definitionmemberDataFieldGUID- unique identifier of the second subject area definitionrequestBody- 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 toelementGUID- unique identifier of the metadata element to updaterequestBody- 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) DeleteClassificationRequestBody requestBody) Remove the subject area designation from the identified element.- Parameters:
 serverName- name of the server instance to connect toelementGUID- unique identifier of the metadata element to updaterequestBody- 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
 
 
 -