@RestController
@RequestMapping(value="/servers/{serverName}/open-metadata/access-services/governance-program/users/{userId}")
public class SubjectAreaResource
extends Object
| Constructor and Description |
|---|
SubjectAreaResource()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
GUIDResponse |
createSubjectArea(String serverName,
String userId,
SubjectAreaProperties requestBody)
Create a definition of a subject area.
|
VoidResponse |
deleteSubjectArea(String serverName,
String userId,
String subjectAreaGUID,
NullRequestBody requestBody)
Remove the definition of a subject area.
|
SubjectAreaResponse |
getSubjectAreaByGUID(String serverName,
String userId,
String subjectAreaGUID)
Return information about a specific subject area.
|
SubjectAreaResponse |
getSubjectAreaByName(String serverName,
String userId,
String qualifiedName)
Return information about a specific subject area.
|
SubjectAreaDefinitionResponse |
getSubjectAreaDefinitionByGUID(String serverName,
String userId,
String subjectAreaGUID)
Return information about a specific subject area and its linked governance definitions.
|
SubjectAreaListResponse |
getSubjectAreasForDomain(String serverName,
String userId,
int domainIdentifier,
int startFrom,
int pageSize)
Return information about the defined subject areas.
|
VoidResponse |
linkSubjectAreasInHierarchy(String serverName,
String userId,
String parentSubjectAreaGUID,
String childSubjectAreaGUID,
NullRequestBody requestBody)
Link two related subject areas together as part of a hierarchy.
|
VoidResponse |
linkSubjectAreaToGovernanceDefinition(String serverName,
String userId,
String subjectAreaGUID,
String definitionGUID,
NullRequestBody requestBody)
Link a subject area to a governance definition that controls how the assets in the subject area should be governed.
|
VoidResponse |
unlinkSubjectAreaFromGovernanceDefinition(String serverName,
String userId,
String subjectAreaGUID,
String definitionGUID,
NullRequestBody requestBody)
Remove the link between a subject area and a governance definition.
|
VoidResponse |
unlinkSubjectAreasInHierarchy(String serverName,
String userId,
String parentSubjectAreaGUID,
String childSubjectAreaGUID,
NullRequestBody requestBody)
Remove the link between two subject areas in the subject area hierarchy.
|
VoidResponse |
updateSubjectArea(String serverName,
String userId,
String subjectAreaGUID,
boolean isMergeUpdate,
SubjectAreaProperties requestBody)
Update the definition of a subject area.
|
@PostMapping(path="/subject-areas") public GUIDResponse createSubjectArea(@PathVariable String serverName, @PathVariable String userId, @RequestBody SubjectAreaProperties requestBody)
serverName - name of the server instance to connect touserId - calling userrequestBody - other properties for a subject area@PostMapping(path="/subject-areas/{subjectAreaGUID}")
public VoidResponse updateSubjectArea(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String subjectAreaGUID,
@RequestParam
boolean isMergeUpdate,
@RequestBody
SubjectAreaProperties requestBody)
serverName - name of the server instance to connect touserId - calling usersubjectAreaGUID - unique identifier of subject areaisMergeUpdate - are unspecified properties unchanged (true) or replaced with null?requestBody - properties to change@PostMapping(path="/subject-areas/{subjectAreaGUID}/delete")
public VoidResponse deleteSubjectArea(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String subjectAreaGUID,
@RequestBody(required=false)
NullRequestBody requestBody)
serverName - name of the server instance to connect touserId - calling usersubjectAreaGUID - unique identifier of subject arearequestBody - null requestBody@PostMapping(path="/subject-areas/{parentSubjectAreaGUID}/nested-subject area/{childSubjectAreaGUID}/link")
public VoidResponse linkSubjectAreasInHierarchy(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String parentSubjectAreaGUID,
@PathVariable
String childSubjectAreaGUID,
@RequestBody(required=false)
NullRequestBody requestBody)
serverName - name of the server instance to connect touserId - calling userparentSubjectAreaGUID - unique identifier of the parent subject areachildSubjectAreaGUID - unique identifier of the child subject arearequestBody - null requestBody@PostMapping(path="/subject-areas/{parentSubjectAreaGUID}/nested-subject area/{childSubjectAreaGUID}/unlink")
public VoidResponse unlinkSubjectAreasInHierarchy(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String parentSubjectAreaGUID,
@PathVariable
String childSubjectAreaGUID,
@RequestBody(required=false)
NullRequestBody requestBody)
serverName - name of the server instance to connect touserId - calling userparentSubjectAreaGUID - unique identifier of the parent subject areachildSubjectAreaGUID - unique identifier of the child subject arearequestBody - null requestBody@PostMapping(path="/subject-areas/{subjectAreaGUID}/governed-by/{definitionGUID}/link")
public VoidResponse linkSubjectAreaToGovernanceDefinition(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String subjectAreaGUID,
@PathVariable
String definitionGUID,
@RequestBody(required=false)
NullRequestBody requestBody)
serverName - name of the server instance to connect touserId - calling usersubjectAreaGUID - unique identifier of the subject areadefinitionGUID - unique identifier of the governance definitionrequestBody - null requestBody@PostMapping(path="/subject-areas/{subjectAreaGUID}/governed-by/{definitionGUID}/unlink")
public VoidResponse unlinkSubjectAreaFromGovernanceDefinition(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String subjectAreaGUID,
@PathVariable
String definitionGUID,
@RequestBody(required=false)
NullRequestBody requestBody)
serverName - name of the server instance to connect touserId - calling usersubjectAreaGUID - unique identifier of the subject areadefinitionGUID - unique identifier of the governance definitionrequestBody - null requestBody@GetMapping(path="/subject-areas/{subjectAreaGUID}")
public SubjectAreaResponse getSubjectAreaByGUID(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String subjectAreaGUID)
serverName - name of the server instance to connect touserId - calling usersubjectAreaGUID - unique identifier for the subject area@GetMapping(path="/subject-areas/name/{qualifiedName}")
public SubjectAreaResponse getSubjectAreaByName(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String qualifiedName)
serverName - name of the server instance to connect touserId - calling userqualifiedName - unique name for the subject area@GetMapping(path="/subject-areas/for-domain") public SubjectAreaListResponse getSubjectAreasForDomain(@PathVariable String serverName, @PathVariable String userId, @RequestParam int domainIdentifier, @RequestParam int startFrom, @RequestParam int pageSize)
serverName - name of the server instance to connect touserId - calling userdomainIdentifier - identifier for the desired governance domainstartFrom - paging start pointpageSize - maximum results that can be returned@GetMapping(path="/subject-areas/{subjectAreaGUID}/with-definitions")
public SubjectAreaDefinitionResponse getSubjectAreaDefinitionByGUID(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String subjectAreaGUID)
serverName - name of the server instance to connect touserId - calling usersubjectAreaGUID - unique identifier for the subject areaCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.