Class GovernanceProgramResource
java.lang.Object
org.odpi.openmetadata.accessservices.governanceprogram.server.spring.GovernanceProgramResource
@RestController
@RequestMapping("/servers/{serverName}/open-metadata/access-services/governance-program/users/{userId}")
public class GovernanceProgramResource
extends Object
The GovernanceProgramResource provides a Spring based server-side REST API
that supports the RelatedElementsManagementInterface. It delegates each request to the
RelatedElementRESTServices. This provides the server-side implementation of the Community Profile Open Metadata
Assess Service (OMAS) which is used to manage information about people, roles and organizations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.odpi.openmetadata.commonservices.ffdc.rest.VoidResponseclearAssignmentScope(String serverName, String userId, String elementGUID, String scopeGUID, org.odpi.openmetadata.commonservices.ffdc.rest.ExternalSourceRequestBody requestBody) Remove an "AssignmentScope" relationship between two referenceables.org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponseclearGovernanceDefinitionScope(String serverName, String userId, String governanceDefinitionGUID, String scopeGUID, org.odpi.openmetadata.commonservices.ffdc.rest.ExternalSourceRequestBody requestBody) Remove an "GovernanceDefinitionScope" relationship between two referenceables.org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponseclearGovernanceResponsibilityAssignment(String serverName, String userId, String governanceResponsibilityGUID, String personRoleGUID, org.odpi.openmetadata.commonservices.ffdc.rest.ExternalSourceRequestBody requestBody) Remove a "GovernanceResponsibilityAssignment" relationship between a governance responsibility and a person role.org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponseclearGovernedBy(String serverName, String userId, String elementGUID, String governanceDefinitionGUID, org.odpi.openmetadata.commonservices.ffdc.rest.ExternalSourceRequestBody requestBody) Remove a "GovernedBy" relationship between two elements.org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponseclearMoreInformation(String serverName, String userId, String elementGUID, String detailGUID, org.odpi.openmetadata.commonservices.ffdc.rest.ExternalSourceRequestBody requestBody) Remove a "MoreInformation" relationship between two referenceables.org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponseclearResource(String serverName, String userId, String elementGUID, String resourceGUID, org.odpi.openmetadata.commonservices.ffdc.rest.ExternalSourceRequestBody requestBody) Remove a "ResourceList" relationship between two referenceables.org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponseclearStakeholder(String serverName, String userId, String elementGUID, String stakeholderGUID, org.odpi.openmetadata.commonservices.ffdc.rest.ExternalSourceRequestBody requestBody) Remove a "Stakeholder" relationship between two referenceables.org.odpi.openmetadata.commonservices.ffdc.rest.RelatedElementsResponsegetAssignedActors(String serverName, String userId, String scopeGUID, int startFrom, int pageSize) Retrieve the assigned actors linked by the "AssignmentScope" relationship between two referenceables.org.odpi.openmetadata.commonservices.ffdc.rest.RelatedElementsResponsegetAssignedScopes(String serverName, String userId, String elementGUID, int startFrom, int pageSize) Retrieve the assigned scopes linked by the "AssignmentScope" relationship between two referenceables.org.odpi.openmetadata.commonservices.ffdc.rest.RelatedElementsResponsegetDescriptiveElements(String serverName, String userId, String detailGUID, int startFrom, int pageSize) Retrieve the descriptive elements linked via a "MoreInformation" relationship between two referenceables.org.odpi.openmetadata.commonservices.ffdc.rest.RelatedElementsResponsegetGovernanceDefinitionScopes(String serverName, String userId, String governanceDefinitionGUID, int startFrom, int pageSize) Retrieve the assigned scopes linked by the "GovernanceDefinitionScope" relationship between two referenceables.org.odpi.openmetadata.commonservices.ffdc.rest.GovernanceDefinitionsResponsegetGovernanceDefinitionsForElement(String serverName, String userId, String elementGUID, int startFrom, int pageSize) Retrieve the governance definitions linked via a "GovernedBy" relationship to an element.org.odpi.openmetadata.commonservices.ffdc.rest.RelatedElementsResponsegetGovernedElements(String serverName, String userId, String governanceDefinitionGUID, int startFrom, int pageSize) Retrieve the governed elements linked via a "GovernedBy" relationship to a governance definition.org.odpi.openmetadata.commonservices.ffdc.rest.RelatedElementsResponsegetMoreInformation(String serverName, String userId, String elementGUID, int startFrom, int pageSize) Retrieve the detail elements linked via a "MoreInformation" relationship between two referenceables.org.odpi.openmetadata.commonservices.ffdc.rest.RelatedElementsResponsegetResourceList(String serverName, String userId, String elementGUID, int startFrom, int pageSize) Retrieve the list of resources assigned to an element via the "ResourceList" relationship between two referenceables.org.odpi.openmetadata.commonservices.ffdc.rest.GovernanceRolesResponsegetResponsibleRoles(String serverName, String userId, String governanceResponsibilityGUID, int startFrom, int pageSize) Retrieve the person roles linked via a "GovernanceResponsibilityAssignment" relationship to a governance responsibility.org.odpi.openmetadata.commonservices.ffdc.rest.GovernanceDefinitionsResponsegetRoleResponsibilities(String serverName, String userId, String personRoleGUID, int startFrom, int pageSize) Retrieve the governance responsibilities linked via a "GovernanceResponsibilityAssignment" relationship to a person role.org.odpi.openmetadata.commonservices.ffdc.rest.GovernanceDefinitionsResponsegetScopedGovernanceDefinitions(String serverName, String userId, String scopeGUID, int startFrom, int pageSize) Retrieve the governance definitions linked by the "GovernanceDefinitionScope" relationship to a scope element.org.odpi.openmetadata.commonservices.ffdc.rest.RegisteredOMAGServiceResponsegetServiceDescription(String serverName, String userId) Return the description of this service.org.odpi.openmetadata.commonservices.ffdc.rest.RelatedElementsResponsegetStakeholderCommissionedElements(String serverName, String userId, String stakeholderGUID, int startFrom, int pageSize) Retrieve the elements commissioned by a stakeholder, linked via the "Stakeholder" relationship between two referenceables.org.odpi.openmetadata.commonservices.ffdc.rest.RelatedElementsResponsegetStakeholders(String serverName, String userId, String elementGUID, int startFrom, int pageSize) Retrieve the stakeholder elements linked via the "Stakeholder" relationship between two referenceables.org.odpi.openmetadata.commonservices.ffdc.rest.RelatedElementsResponsegetSupportedByResource(String serverName, String userId, String resourceGUID, int startFrom, int pageSize) Retrieve the list of elements assigned to a resource via the "ResourceList" relationship between two referenceables.org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponsesetupAssignmentScope(String serverName, String userId, String elementGUID, String scopeGUID, org.odpi.openmetadata.commonservices.ffdc.rest.RelationshipRequestBody requestBody) Create an "AssignmentScope" relationship between an element and its scope.org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponsesetupGovernanceDefinitionScope(String serverName, String userId, String governanceDefinitionGUID, String scopeGUID, org.odpi.openmetadata.commonservices.ffdc.rest.RelationshipRequestBody requestBody) Create an "GovernanceDefinitionScope" relationship between a governance definition and its scope element.org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponsesetupGovernanceResponsibilityAssignment(String serverName, String userId, String governanceResponsibilityGUID, String personRoleGUID, org.odpi.openmetadata.commonservices.ffdc.rest.RelationshipRequestBody requestBody) Create a "GovernanceResponsibilityAssignment" relationship between a governance responsibility and a person role.org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponsesetupGovernedBy(String serverName, String userId, String elementGUID, String governanceDefinitionGUID, org.odpi.openmetadata.commonservices.ffdc.rest.RelationshipRequestBody requestBody) Create a "GovernedBy" relationship between an element and a governance definition.org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponsesetupMoreInformation(String serverName, String userId, String elementGUID, String detailGUID, org.odpi.openmetadata.commonservices.ffdc.rest.RelationshipRequestBody requestBody) Create a "MoreInformation" relationship between an element that is descriptive and one that is providing the detail.org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponsesetupResource(String serverName, String userId, String elementGUID, String resourceGUID, org.odpi.openmetadata.commonservices.ffdc.rest.RelationshipRequestBody requestBody) Create a "ResourceList" relationship between a consuming element and an element that represents resources.org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponsesetupStakeholder(String serverName, String userId, String elementGUID, String stakeholderGUID, org.odpi.openmetadata.commonservices.ffdc.rest.RelationshipRequestBody requestBody) Create a "Stakeholder" relationship between an element and its stakeholder.
-
Constructor Details
-
GovernanceProgramResource
public GovernanceProgramResource()Default constructor
-
-
Method Details
-
getServiceDescription
@GetMapping(path="/description") public org.odpi.openmetadata.commonservices.ffdc.rest.RegisteredOMAGServiceResponse getServiceDescription(@PathVariable String serverName, @PathVariable String userId) Return the description of this service.- Parameters:
serverName- name of the server to route the request touserId- identifier of calling user- Returns:
- service description or InvalidParameterException one of the parameters is null or invalid or UserNotAuthorizedException user not authorized to issue this request or PropertyServerException problem retrieving the discovery engine definition.
-
setupMoreInformation
@PostMapping(path="/related-elements/{elementGUID}/more-information/{detailGUID}") public org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse setupMoreInformation(@PathVariable String serverName, @PathVariable String userId, @PathVariable String elementGUID, @PathVariable String detailGUID, @RequestBody org.odpi.openmetadata.commonservices.ffdc.rest.RelationshipRequestBody requestBody) Create a "MoreInformation" relationship between an element that is descriptive and one that is providing the detail.- Parameters:
serverName- name of the service to route the request to.userId- calling userelementGUID- unique identifier of the element that is descriptivedetailGUID- unique identifier of the element that provides the detailrequestBody- relationship properties- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
clearMoreInformation
@PostMapping(path="/related-elements/{elementGUID}/more-information/{detailGUID}/delete") public org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse clearMoreInformation(@PathVariable String serverName, @PathVariable String userId, @PathVariable String elementGUID, @PathVariable String detailGUID, @RequestBody org.odpi.openmetadata.commonservices.ffdc.rest.ExternalSourceRequestBody requestBody) Remove a "MoreInformation" relationship between two referenceables.- Parameters:
serverName- name of the service to route the request to.userId- calling userelementGUID- unique identifier of the element that is descriptivedetailGUID- unique identifier of the element that provides the detailrequestBody- external source identifiers- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
getMoreInformation
@GetMapping(path="/related-elements/more-information/by-descriptive-element/{elementGUID}") public org.odpi.openmetadata.commonservices.ffdc.rest.RelatedElementsResponse getMoreInformation(@PathVariable String serverName, @PathVariable String userId, @PathVariable String elementGUID, @RequestParam int startFrom, @RequestParam int pageSize) Retrieve the detail elements linked via a "MoreInformation" relationship between two referenceables.- Parameters:
serverName- name of the service to route the request to.userId- calling userelementGUID- unique identifier of the element that is descriptivestartFrom- index of the list to start from (0 for start)pageSize- maximum number of elements to return.- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
getDescriptiveElements
@GetMapping(path="/related-elements/more-information/by-detail-element/{detailGUID}") public org.odpi.openmetadata.commonservices.ffdc.rest.RelatedElementsResponse getDescriptiveElements(@PathVariable String serverName, @PathVariable String userId, @PathVariable String detailGUID, @RequestParam int startFrom, @RequestParam int pageSize) Retrieve the descriptive elements linked via a "MoreInformation" relationship between two referenceables.- Parameters:
serverName- name of the service to route the request to.userId- calling userdetailGUID- unique identifier of the element that provides the detailstartFrom- index of the list to start from (0 for start)pageSize- maximum number of elements to return.- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
setupGovernedBy
@PostMapping(path="/related-elements/{elementGUID}/governed-by/{governanceDefinitionGUID}") public org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse setupGovernedBy(@PathVariable String serverName, @PathVariable String userId, @PathVariable String elementGUID, @PathVariable String governanceDefinitionGUID, @RequestBody org.odpi.openmetadata.commonservices.ffdc.rest.RelationshipRequestBody requestBody) Create a "GovernedBy" relationship between an element and a governance definition.- Parameters:
serverName- name of the service to route the request to.userId- calling userelementGUID- unique identifier of the element that is descriptivegovernanceDefinitionGUID- unique identifier of the element that provides the detailrequestBody- relationship properties- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
clearGovernedBy
@PostMapping(path="/related-elements/{elementGUID}/governed-by/{governanceDefinitionGUID}/delete") public org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse clearGovernedBy(@PathVariable String serverName, @PathVariable String userId, @PathVariable String elementGUID, @PathVariable String governanceDefinitionGUID, @RequestBody org.odpi.openmetadata.commonservices.ffdc.rest.ExternalSourceRequestBody requestBody) Remove a "GovernedBy" relationship between two elements.- Parameters:
serverName- name of the service to route the request to.userId- calling userelementGUID- unique identifier of the element that is descriptivegovernanceDefinitionGUID- unique identifier of the element that provides the detailrequestBody- external source identifiers- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
getGovernanceDefinitionsForElement
@GetMapping(path="/related-elements/governed-by/by-element/{elementGUID}") public org.odpi.openmetadata.commonservices.ffdc.rest.GovernanceDefinitionsResponse getGovernanceDefinitionsForElement(@PathVariable String serverName, @PathVariable String userId, @PathVariable String elementGUID, @RequestParam int startFrom, @RequestParam int pageSize) Retrieve the governance definitions linked via a "GovernedBy" relationship to an element.- Parameters:
serverName- name of the service to route the request to.userId- calling userelementGUID- unique identifier of the element that is descriptivestartFrom- index of the list to start from (0 for start)pageSize- maximum number of elements to return.- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
getGovernedElements
@GetMapping(path="/related-elements/governed-by/by-governance-definition/{governanceDefinitionGUID}") public org.odpi.openmetadata.commonservices.ffdc.rest.RelatedElementsResponse getGovernedElements(@PathVariable String serverName, @PathVariable String userId, @PathVariable String governanceDefinitionGUID, @RequestParam int startFrom, @RequestParam int pageSize) Retrieve the governed elements linked via a "GovernedBy" relationship to a governance definition.- Parameters:
serverName- name of the service to route the request to.userId- calling usergovernanceDefinitionGUID- unique identifier of the element that provides the detailstartFrom- index of the list to start from (0 for start)pageSize- maximum number of elements to return.- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
setupGovernanceDefinitionScope
@PostMapping(path="/related-elements/{governanceDefinitionGUID}/governance-definition-scopes/{scopeGUID}") public org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse setupGovernanceDefinitionScope(@PathVariable String serverName, @PathVariable String userId, @PathVariable String governanceDefinitionGUID, @PathVariable String scopeGUID, @RequestBody org.odpi.openmetadata.commonservices.ffdc.rest.RelationshipRequestBody requestBody) Create an "GovernanceDefinitionScope" relationship between a governance definition and its scope element.- Parameters:
serverName- name of the service to route the request to.userId- calling usergovernanceDefinitionGUID- unique identifier of the governance definitionscopeGUID- unique identifier of the scoperequestBody- relationship properties- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
clearGovernanceDefinitionScope
@PostMapping(path="/related-elements/{governanceDefinitionGUID}/governance-definition-scopes/{scopeGUID}/delete") public org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse clearGovernanceDefinitionScope(@PathVariable String serverName, @PathVariable String userId, @PathVariable String governanceDefinitionGUID, @PathVariable String scopeGUID, @RequestBody org.odpi.openmetadata.commonservices.ffdc.rest.ExternalSourceRequestBody requestBody) Remove an "GovernanceDefinitionScope" relationship between two referenceables.- Parameters:
serverName- name of the service to route the request to.userId- calling usergovernanceDefinitionGUID- unique identifier of the governance definitionscopeGUID- unique identifier of the scoperequestBody- external source identifiers- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
getGovernanceDefinitionScopes
@GetMapping(path="/related-elements/governance-definition-scopes/by-governance-definition/{governanceDefinitionGUID}") public org.odpi.openmetadata.commonservices.ffdc.rest.RelatedElementsResponse getGovernanceDefinitionScopes(@PathVariable String serverName, @PathVariable String userId, @PathVariable String governanceDefinitionGUID, @RequestParam int startFrom, @RequestParam int pageSize) Retrieve the assigned scopes linked by the "GovernanceDefinitionScope" relationship between two referenceables.- Parameters:
serverName- name of the service to route the request to.userId- calling usergovernanceDefinitionGUID- unique identifier of the governance definitionstartFrom- index of the list to start from (0 for start)pageSize- maximum number of elements to return.- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
getScopedGovernanceDefinitions
@GetMapping(path="/related-elements/governance-definition-scopes/by-scope/{scopeGUID}") public org.odpi.openmetadata.commonservices.ffdc.rest.GovernanceDefinitionsResponse getScopedGovernanceDefinitions(@PathVariable String serverName, @PathVariable String userId, @PathVariable String scopeGUID, @RequestParam int startFrom, @RequestParam int pageSize) Retrieve the governance definitions linked by the "GovernanceDefinitionScope" relationship to a scope element.- Parameters:
serverName- name of the service to route the request to.userId- calling userscopeGUID- unique identifier of the scopestartFrom- index of the list to start from (0 for start)pageSize- maximum number of elements to return.- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
setupGovernanceResponsibilityAssignment
@PostMapping(path="/related-elements/{governanceResponsibilityGUID}/governance-responsibility-assignments/{personRoleGUID}") public org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse setupGovernanceResponsibilityAssignment(@PathVariable String serverName, @PathVariable String userId, @PathVariable String governanceResponsibilityGUID, @PathVariable String personRoleGUID, @RequestBody org.odpi.openmetadata.commonservices.ffdc.rest.RelationshipRequestBody requestBody) Create a "GovernanceResponsibilityAssignment" relationship between a governance responsibility and a person role.- Parameters:
serverName- name of the service to route the request to.userId- calling usergovernanceResponsibilityGUID- unique identifier of the governance responsibility (type of governance definition)personRoleGUID- unique identifier of the person role elementrequestBody- relationship properties- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
clearGovernanceResponsibilityAssignment
@PostMapping(path="/related-elements/{governanceResponsibilityGUID}/governance-responsibility-assignments/{personRoleGUID}/delete") public org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse clearGovernanceResponsibilityAssignment(@PathVariable String serverName, @PathVariable String userId, @PathVariable String governanceResponsibilityGUID, @PathVariable String personRoleGUID, @RequestBody org.odpi.openmetadata.commonservices.ffdc.rest.ExternalSourceRequestBody requestBody) Remove a "GovernanceResponsibilityAssignment" relationship between a governance responsibility and a person role.- Parameters:
serverName- name of the service to route the request to.userId- calling usergovernanceResponsibilityGUID- unique identifier of the governance responsibility (type of governance definition)personRoleGUID- unique identifier of the person role elementrequestBody- external source identifiers- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
getResponsibleRoles
@GetMapping(path="/related-elements/governance-responsibility-assignments/by-responsibility/{governanceResponsibilityGUID}") public org.odpi.openmetadata.commonservices.ffdc.rest.GovernanceRolesResponse getResponsibleRoles(@PathVariable String serverName, @PathVariable String userId, @PathVariable String governanceResponsibilityGUID, @RequestParam int startFrom, @RequestParam int pageSize) Retrieve the person roles linked via a "GovernanceResponsibilityAssignment" relationship to a governance responsibility.- Parameters:
serverName- name of the service to route the request to.userId- calling usergovernanceResponsibilityGUID- unique identifier of the governance responsibility (type of governance definition)startFrom- index of the list to start from (0 for start)pageSize- maximum number of elements to return.- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
getRoleResponsibilities
@GetMapping(path="/related-elements/governance-responsibility-assignments/by-role/{personRoleGUID}") public org.odpi.openmetadata.commonservices.ffdc.rest.GovernanceDefinitionsResponse getRoleResponsibilities(@PathVariable String serverName, @PathVariable String userId, @PathVariable String personRoleGUID, @RequestParam int startFrom, @RequestParam int pageSize) Retrieve the governance responsibilities linked via a "GovernanceResponsibilityAssignment" relationship to a person role.- Parameters:
serverName- name of the service to route the request to.userId- calling userpersonRoleGUID- unique identifier of the person role elementstartFrom- index of the list to start from (0 for start)pageSize- maximum number of elements to return.- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
setupStakeholder
@PostMapping(path="/related-elements/{elementGUID}/stakeholders/{stakeholderGUID}") public org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse setupStakeholder(@PathVariable String serverName, @PathVariable String userId, @PathVariable String elementGUID, @PathVariable String stakeholderGUID, @RequestBody org.odpi.openmetadata.commonservices.ffdc.rest.RelationshipRequestBody requestBody) Create a "Stakeholder" relationship between an element and its stakeholder.- Parameters:
serverName- name of the service to route the request to.userId- calling userelementGUID- unique identifier of the elementstakeholderGUID- unique identifier of the stakeholderrequestBody- relationship properties- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
clearStakeholder
@PostMapping(path="/related-elements/{elementGUID}/stakeholders/{stakeholderGUID}/delete") public org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse clearStakeholder(@PathVariable String serverName, @PathVariable String userId, @PathVariable String elementGUID, @PathVariable String stakeholderGUID, @RequestBody org.odpi.openmetadata.commonservices.ffdc.rest.ExternalSourceRequestBody requestBody) Remove a "Stakeholder" relationship between two referenceables.- Parameters:
serverName- name of the service to route the request to.userId- calling userelementGUID- unique identifier of the elementstakeholderGUID- unique identifier of the stakeholderrequestBody- external source identifiers- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
getStakeholders
@GetMapping(path="/related-elements/stakeholders/by-commissioned-element/{elementGUID}") public org.odpi.openmetadata.commonservices.ffdc.rest.RelatedElementsResponse getStakeholders(@PathVariable String serverName, @PathVariable String userId, @PathVariable String elementGUID, @RequestParam int startFrom, @RequestParam int pageSize) Retrieve the stakeholder elements linked via the "Stakeholder" relationship between two referenceables.- Parameters:
serverName- name of the service to route the request to.userId- calling userelementGUID- unique identifier of the elementstartFrom- index of the list to start from (0 for start)pageSize- maximum number of elements to return.- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
getStakeholderCommissionedElements
@GetMapping(path="/related-elements/stakeholders/by-stakeholder/{stakeholderGUID}") public org.odpi.openmetadata.commonservices.ffdc.rest.RelatedElementsResponse getStakeholderCommissionedElements(@PathVariable String serverName, @PathVariable String userId, @PathVariable String stakeholderGUID, @RequestParam int startFrom, @RequestParam int pageSize) Retrieve the elements commissioned by a stakeholder, linked via the "Stakeholder" relationship between two referenceables.- Parameters:
serverName- name of the service to route the request to.userId- calling userstakeholderGUID- unique identifier of the stakeholderstartFrom- index of the list to start from (0 for start)pageSize- maximum number of elements to return.- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
setupAssignmentScope
@PostMapping(path="/related-elements/{elementGUID}/assignment-scopes/{scopeGUID}") public org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse setupAssignmentScope(@PathVariable String serverName, @PathVariable String userId, @PathVariable String elementGUID, @PathVariable String scopeGUID, @RequestBody org.odpi.openmetadata.commonservices.ffdc.rest.RelationshipRequestBody requestBody) Create an "AssignmentScope" relationship between an element and its scope.- Parameters:
serverName- name of the service to route the request to.userId- calling userelementGUID- unique identifier of the elementscopeGUID- unique identifier of the scoperequestBody- relationship properties- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
clearAssignmentScope
@PostMapping(path="/related-elements/{elementGUID}/assignment-scopes/{scopeGUID}/delete") public org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse clearAssignmentScope(@PathVariable String serverName, @PathVariable String userId, @PathVariable String elementGUID, @PathVariable String scopeGUID, @RequestBody org.odpi.openmetadata.commonservices.ffdc.rest.ExternalSourceRequestBody requestBody) Remove an "AssignmentScope" relationship between two referenceables.- Parameters:
serverName- name of the service to route the request to.userId- calling userelementGUID- unique identifier of the elementscopeGUID- unique identifier of the scoperequestBody- external source identifiers- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
getAssignedScopes
@GetMapping(path="/related-elements/assignment-scopes/by-assigned-actor/{elementGUID}") public org.odpi.openmetadata.commonservices.ffdc.rest.RelatedElementsResponse getAssignedScopes(@PathVariable String serverName, @PathVariable String userId, @PathVariable String elementGUID, @RequestParam int startFrom, @RequestParam int pageSize) Retrieve the assigned scopes linked by the "AssignmentScope" relationship between two referenceables.- Parameters:
serverName- name of the service to route the request to.userId- calling userelementGUID- unique identifier of the elementstartFrom- index of the list to start from (0 for start)pageSize- maximum number of elements to return.- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
getAssignedActors
@GetMapping(path="/related-elements/assignment-scopes/by-assigned-scope/{scopeGUID}") public org.odpi.openmetadata.commonservices.ffdc.rest.RelatedElementsResponse getAssignedActors(@PathVariable String serverName, @PathVariable String userId, @PathVariable String scopeGUID, @RequestParam int startFrom, @RequestParam int pageSize) Retrieve the assigned actors linked by the "AssignmentScope" relationship between two referenceables.- Parameters:
serverName- name of the service to route the request to.userId- calling userscopeGUID- unique identifier of the scopestartFrom- index of the list to start from (0 for start)pageSize- maximum number of elements to return.- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
setupResource
@PostMapping(path="/related-elements/{elementGUID}/resource-list/{resourceGUID}") public org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse setupResource(@PathVariable String serverName, @PathVariable String userId, @PathVariable String elementGUID, @PathVariable String resourceGUID, @RequestBody org.odpi.openmetadata.commonservices.ffdc.rest.RelationshipRequestBody requestBody) Create a "ResourceList" relationship between a consuming element and an element that represents resources.- Parameters:
serverName- name of the service to route the request to.userId- calling userelementGUID- unique identifier of the elementresourceGUID- unique identifier of the resourcerequestBody- relationship properties- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
clearResource
@PostMapping(path="/related-elements/{elementGUID}/resource-list/{resourceGUID}/delete") public org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse clearResource(@PathVariable String serverName, @PathVariable String userId, @PathVariable String elementGUID, @PathVariable String resourceGUID, @RequestBody org.odpi.openmetadata.commonservices.ffdc.rest.ExternalSourceRequestBody requestBody) Remove a "ResourceList" relationship between two referenceables.- Parameters:
serverName- name of the service to route the request to.userId- calling userelementGUID- unique identifier of the elementresourceGUID- unique identifier of the resourcerequestBody- external source identifiers- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
getResourceList
@GetMapping(path="/related-elements/resource-list/by-assignee/{elementGUID}") public org.odpi.openmetadata.commonservices.ffdc.rest.RelatedElementsResponse getResourceList(@PathVariable String serverName, @PathVariable String userId, @PathVariable String elementGUID, @RequestParam int startFrom, @RequestParam int pageSize) Retrieve the list of resources assigned to an element via the "ResourceList" relationship between two referenceables.- Parameters:
serverName- name of the service to route the request to.userId- calling userelementGUID- unique identifier of the elementstartFrom- index of the list to start from (0 for start)pageSize- maximum number of elements to return.- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
getSupportedByResource
@GetMapping(path="/related-elements/resource-list/by-resource/{resourceGUID}") public org.odpi.openmetadata.commonservices.ffdc.rest.RelatedElementsResponse getSupportedByResource(@PathVariable String serverName, @PathVariable String userId, @PathVariable String resourceGUID, @RequestParam int startFrom, @RequestParam int pageSize) Retrieve the list of elements assigned to a resource via the "ResourceList" relationship between two referenceables.- Parameters:
serverName- name of the service to route the request to.userId- calling userresourceGUID- unique identifier of the resourcestartFrom- index of the list to start from (0 for start)pageSize- maximum number of elements to return.- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-