Class RelatedElementRESTServices
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.governanceprogram.server.RelatedElementRESTServices
-
public class RelatedElementRESTServices extends Object
RelatedElementRESTServices support requests about common Referenceable relationships. It is the server side for the RelatedElementsManagementInterface.
-
-
Constructor Summary
Constructors Constructor Description RelatedElementRESTServices()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VoidResponseclearAssignmentScope(String serverName, String userId, String elementGUID, String scopeGUID, ExternalSourceRequestBody requestBody)Remove an "AssignmentScope" relationship between two referenceables.VoidResponseclearGovernanceDefinitionScope(String serverName, String userId, String governanceDefinitionGUID, String scopeGUID, ExternalSourceRequestBody requestBody)Remove an "GovernanceDefinitionScope" relationship between two referenceables.VoidResponseclearGovernanceResponsibilityAssignment(String serverName, String userId, String governanceResponsibilityGUID, String personRoleGUID, ExternalSourceRequestBody requestBody)Remove a "GovernanceResponsibilityAssignment" relationship between a governance responsibility and a person role.VoidResponseclearGovernedBy(String serverName, String userId, String elementGUID, String governanceDefinitionGUID, ExternalSourceRequestBody requestBody)Remove a "GovernedBy" relationship between two elements.VoidResponseclearMoreInformation(String serverName, String userId, String elementGUID, String detailGUID, ExternalSourceRequestBody requestBody)Remove a "MoreInformation" relationship between two referenceables.VoidResponseclearResource(String serverName, String userId, String elementGUID, String resourceGUID, ExternalSourceRequestBody requestBody)Remove a "ResourceList" relationship between two referenceables.VoidResponseclearStakeholder(String serverName, String userId, String elementGUID, String stakeholderGUID, ExternalSourceRequestBody requestBody)Remove a "Stakeholder" relationship between two referenceables.RelatedElementListResponsegetAssignedActors(String serverName, String userId, String scopeGUID, int startFrom, int pageSize)Retrieve the assigned actors linked by the "AssignmentScope" relationship between two referenceables.RelatedElementListResponsegetAssignedScopes(String serverName, String userId, String elementGUID, int startFrom, int pageSize)Retrieve the assigned scopes linked by the "AssignmentScope" relationship between two referenceables.RelatedElementListResponsegetDescriptiveElements(String serverName, String userId, String detailGUID, int startFrom, int pageSize)Retrieve the descriptive elements linked via a "MoreInformation" relationship between two referenceables.RelatedElementListResponsegetGovernanceDefinitionScopes(String serverName, String userId, String governanceDefinitionGUID, int startFrom, int pageSize)Retrieve the assigned scopes linked by the "GovernanceDefinitionScope" relationship between two referenceables.GovernanceDefinitionListResponsegetGovernanceDefinitionsForElement(String serverName, String userId, String elementGUID, int startFrom, int pageSize)Retrieve the governance definitions linked via a "GovernedBy" relationship to an element.RelatedElementListResponsegetGovernedElements(String serverName, String userId, String governanceDefinitionGUID, int startFrom, int pageSize)Retrieve the governed elements linked via a "GovernedBy" relationship to a governance definition.RelatedElementListResponsegetMoreInformation(String serverName, String userId, String elementGUID, int startFrom, int pageSize)Retrieve the detail elements linked via a "MoreInformation" relationship between two referenceables.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.GovernanceRoleListResponsegetResponsibleRoles(String serverName, String userId, String governanceResponsibilityGUID, int startFrom, int pageSize)Retrieve the person roles linked via a "GovernanceResponsibilityAssignment" relationship to a governance responsibility.GovernanceDefinitionListResponsegetRoleResponsibilities(String serverName, String userId, String personRoleGUID, int startFrom, int pageSize)Retrieve the governance responsibilities linked via a "GovernanceResponsibilityAssignment" relationship to a person role.GovernanceDefinitionListResponsegetScopedGovernanceDefinitions(String serverName, String userId, String scopeGUID, int startFrom, int pageSize)Retrieve the governance definitions linked by the "GovernanceDefinitionScope" relationship to a scope element.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.RelatedElementListResponsegetStakeholders(String serverName, String userId, String elementGUID, int startFrom, int pageSize)Retrieve the stakeholder elements linked via the "Stakeholder" relationship between two referenceables.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.VoidResponsesetupAssignmentScope(String serverName, String userId, String elementGUID, String scopeGUID, RelationshipRequestBody requestBody)Create an "AssignmentScope" relationship between an element and its scope.VoidResponsesetupGovernanceDefinitionScope(String serverName, String userId, String governanceDefinitionGUID, String scopeGUID, RelationshipRequestBody requestBody)Create an "GovernanceDefinitionScope" relationship between a governance definition and its scope element.VoidResponsesetupGovernanceResponsibilityAssignment(String serverName, String userId, String governanceResponsibilityGUID, String personRoleGUID, RelationshipRequestBody requestBody)Create a "GovernanceResponsibilityAssignment" relationship between a governance responsibility and a person role.VoidResponsesetupGovernedBy(String serverName, String userId, String elementGUID, String governanceDefinitionGUID, RelationshipRequestBody requestBody)Create a "GovernedBy" relationship between an element and a governance definition.VoidResponsesetupMoreInformation(String serverName, String userId, String elementGUID, String detailGUID, RelationshipRequestBody requestBody)Create a "MoreInformation" relationship between an element that is descriptive and one that is providing the detail.VoidResponsesetupResource(String serverName, String userId, String elementGUID, String resourceGUID, RelationshipRequestBody requestBody)Create a "ResourceList" relationship between a consuming element and an element that represents resources.VoidResponsesetupStakeholder(String serverName, String userId, String elementGUID, String stakeholderGUID, RelationshipRequestBody requestBody)Create a "Stakeholder" relationship between an element and its stakeholder.
-
-
-
Method Detail
-
setupMoreInformation
public VoidResponse setupMoreInformation(String serverName, String userId, String elementGUID, String detailGUID, 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
public VoidResponse clearMoreInformation(String serverName, String userId, String elementGUID, String detailGUID, 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
public RelatedElementListResponse getMoreInformation(String serverName, String userId, String elementGUID, int startFrom, 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
public RelatedElementListResponse getDescriptiveElements(String serverName, String userId, String detailGUID, int startFrom, 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
public VoidResponse setupGovernedBy(String serverName, String userId, String elementGUID, String governanceDefinitionGUID, 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 governedgovernanceDefinitionGUID- unique identifier of the governance definitionrequestBody- 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
public VoidResponse clearGovernedBy(String serverName, String userId, String elementGUID, String governanceDefinitionGUID, 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 governedgovernanceDefinitionGUID- unique identifier of the governance definitionrequestBody- 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
public GovernanceDefinitionListResponse getGovernanceDefinitionsForElement(String serverName, String userId, String elementGUID, int startFrom, 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 governedstartFrom- 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
public RelatedElementListResponse getGovernedElements(String serverName, String userId, String governanceDefinitionGUID, int startFrom, 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
public VoidResponse setupGovernanceDefinitionScope(String serverName, String userId, String governanceDefinitionGUID, String scopeGUID, 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
public VoidResponse clearGovernanceDefinitionScope(String serverName, String userId, String governanceDefinitionGUID, String scopeGUID, 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
public RelatedElementListResponse getGovernanceDefinitionScopes(String serverName, String userId, String governanceDefinitionGUID, int startFrom, 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
public GovernanceDefinitionListResponse getScopedGovernanceDefinitions(String serverName, String userId, String scopeGUID, int startFrom, 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
public VoidResponse setupGovernanceResponsibilityAssignment(String serverName, String userId, String governanceResponsibilityGUID, String personRoleGUID, 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
public VoidResponse clearGovernanceResponsibilityAssignment(String serverName, String userId, String governanceResponsibilityGUID, String personRoleGUID, 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
public GovernanceRoleListResponse getResponsibleRoles(String serverName, String userId, String governanceResponsibilityGUID, int startFrom, 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
public GovernanceDefinitionListResponse getRoleResponsibilities(String serverName, String userId, String personRoleGUID, int startFrom, 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
public VoidResponse setupStakeholder(String serverName, String userId, String elementGUID, String stakeholderGUID, 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
public VoidResponse clearStakeholder(String serverName, String userId, String elementGUID, String stakeholderGUID, 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
public RelatedElementListResponse getStakeholders(String serverName, String userId, String elementGUID, int startFrom, 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
public RelatedElementListResponse getStakeholderCommissionedElements(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.- 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
public VoidResponse setupAssignmentScope(String serverName, String userId, String elementGUID, String scopeGUID, 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
public VoidResponse clearAssignmentScope(String serverName, String userId, String elementGUID, String scopeGUID, 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
public RelatedElementListResponse getAssignedScopes(String serverName, String userId, String elementGUID, int startFrom, 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
public RelatedElementListResponse getAssignedActors(String serverName, String userId, String scopeGUID, int startFrom, 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
public VoidResponse setupResource(String serverName, String userId, String elementGUID, String resourceGUID, 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
public VoidResponse clearResource(String serverName, String userId, String elementGUID, String resourceGUID, 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
public RelatedElementListResponse getResourceList(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.- 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
public RelatedElementListResponse getSupportedByResource(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.- 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)
-
-