Class AssetRelationshipsResource
java.lang.Object
org.odpi.openmetadata.accessservices.assetowner.server.spring.AssetRelationshipsResource
@RestController
@RequestMapping("/servers/{serverName}/open-metadata/access-services/asset-owner/users/{userId}")
public class AssetRelationshipsResource
extends Object
The AssetRelationshipsResource 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.VoidResponseclearCatalogTemplate(String serverName, String userId, String elementGUID, String templateGUID, org.odpi.openmetadata.accessservices.assetowner.rest.ExternalSourceRequestBody requestBody) Remove a "CatalogTemplate" relationship between two referenceables.org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponseclearMoreInformation(String serverName, String userId, String elementGUID, String detailGUID, org.odpi.openmetadata.accessservices.assetowner.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.accessservices.assetowner.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.accessservices.assetowner.rest.ExternalSourceRequestBody requestBody) Remove a "Stakeholder" relationship between two referenceables.org.odpi.openmetadata.accessservices.assetowner.rest.RelatedElementListResponsegetCatalogTemplateList(String serverName, String userId, String elementGUID, int startFrom, int pageSize) Retrieve the list of templates assigned to an element via the "CatalogTemplate" relationship.org.odpi.openmetadata.accessservices.assetowner.rest.RelatedElementListResponsegetDescriptiveElements(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.accessservices.assetowner.rest.RelatedElementListResponsegetMoreInformation(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.accessservices.assetowner.rest.RelatedElementListResponsegetResourceList(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.accessservices.assetowner.rest.RelatedElementListResponsegetStakeholderCommissionedElements(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.accessservices.assetowner.rest.RelatedElementListResponsegetStakeholders(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.accessservices.assetowner.rest.RelatedElementListResponsegetSupportedByResource(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.accessservices.assetowner.rest.RelatedElementListResponsegetSupportedByTemplate(String serverName, String userId, String templateGUID, int startFrom, int pageSize) Retrieve the list of elements assigned to a template via the "CatalogTemplate" relationship.org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponsesetupCatalogTemplate(String serverName, String userId, String elementGUID, String templateGUID, org.odpi.openmetadata.accessservices.assetowner.rest.RelationshipRequestBody requestBody) Create a "CatalogTemplate" relationship between a consuming element and a template element.org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponsesetupMoreInformation(String serverName, String userId, String elementGUID, String detailGUID, org.odpi.openmetadata.accessservices.assetowner.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.accessservices.assetowner.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.accessservices.assetowner.rest.RelationshipRequestBody requestBody) Create a "Stakeholder" relationship between an element and its stakeholder.
-
Constructor Details
-
AssetRelationshipsResource
public AssetRelationshipsResource()Default constructor
-
-
Method Details
-
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.accessservices.assetowner.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.accessservices.assetowner.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.accessservices.assetowner.rest.RelatedElementListResponse 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.accessservices.assetowner.rest.RelatedElementListResponse 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)
-
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.accessservices.assetowner.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.accessservices.assetowner.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.accessservices.assetowner.rest.RelatedElementListResponse 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.accessservices.assetowner.rest.RelatedElementListResponse 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)
-
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.accessservices.assetowner.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.accessservices.assetowner.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.accessservices.assetowner.rest.RelatedElementListResponse 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.accessservices.assetowner.rest.RelatedElementListResponse 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)
-
setupCatalogTemplate
@PostMapping(path="/related-elements/{elementGUID}/catalog-templates/{templateGUID}") public org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse setupCatalogTemplate(@PathVariable String serverName, @PathVariable String userId, @PathVariable String elementGUID, @PathVariable String templateGUID, @RequestBody org.odpi.openmetadata.accessservices.assetowner.rest.RelationshipRequestBody requestBody) Create a "CatalogTemplate" relationship between a consuming element and a template element.- Parameters:
serverName- name of the service to route the request to.userId- calling userelementGUID- unique identifier of the elementtemplateGUID- unique identifier of the templaterequestBody- 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)
-
clearCatalogTemplate
@PostMapping(path="/related-elements/{elementGUID}/catalog-templates/{templateGUID}/delete") public org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse clearCatalogTemplate(@PathVariable String serverName, @PathVariable String userId, @PathVariable String elementGUID, @PathVariable String templateGUID, @RequestBody org.odpi.openmetadata.accessservices.assetowner.rest.ExternalSourceRequestBody requestBody) Remove a "CatalogTemplate" relationship between two referenceables.- Parameters:
serverName- name of the service to route the request to.userId- calling userelementGUID- unique identifier of the elementtemplateGUID- unique identifier of the templaterequestBody- 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)
-
getCatalogTemplateList
@GetMapping(path="/related-elements/catalog-templates/by-assignee/{elementGUID}") public org.odpi.openmetadata.accessservices.assetowner.rest.RelatedElementListResponse getCatalogTemplateList(@PathVariable String serverName, @PathVariable String userId, @PathVariable String elementGUID, @RequestParam int startFrom, @RequestParam int pageSize) Retrieve the list of templates assigned to an element via the "CatalogTemplate" relationship.- 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)
-
getSupportedByTemplate
@GetMapping(path="/related-elements/catalog-templates/by-template/{templateGUID}") public org.odpi.openmetadata.accessservices.assetowner.rest.RelatedElementListResponse getSupportedByTemplate(@PathVariable String serverName, @PathVariable String userId, @PathVariable String templateGUID, @RequestParam int startFrom, @RequestParam int pageSize) Retrieve the list of elements assigned to a template via the "CatalogTemplate" relationship.- Parameters:
serverName- name of the service to route the request to.userId- calling usertemplateGUID- unique identifier of the templatestartFrom- 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)
-