Class GovernanceProgramBaseClient
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.governanceprogram.client.GovernanceProgramBaseClient
-
- All Implemented Interfaces:
RelatedElementsManagementInterface
- Direct Known Subclasses:
CertificationManager,ExternalReferenceManager,GovernanceClassificationLevelManager,GovernanceDefinitionManager,GovernanceDomainManager,GovernanceMetricsManager,GovernanceProgramReviewManager,GovernanceRoleManager,GovernanceStatusLevelManager,GovernanceZoneManager,RightsManager,SubjectAreaManager
public class GovernanceProgramBaseClient extends Object implements RelatedElementsManagementInterface
GovernanceProgramBaseClient supports the common properties and functions for the Community Profile OMAS.
-
-
Field Summary
Fields Modifier and Type Field Description protected NullRequestBodynullRequestBody
-
Constructor Summary
Constructors Constructor Description GovernanceProgramBaseClient(String serverName, String serverPlatformURLRoot)Create a new client with no authentication embedded in the HTTP request.GovernanceProgramBaseClient(String serverName, String serverPlatformURLRoot, int maxPageSize, AuditLog auditLog)Create a new client with no authentication embedded in the HTTP request.GovernanceProgramBaseClient(String serverName, String serverPlatformURLRoot, String userId, String password)Create a new client that passes userId and password in each HTTP request.GovernanceProgramBaseClient(String serverName, String serverPlatformURLRoot, String userId, String password, int maxPageSize, AuditLog auditLog)Create a new client that passes userId and password in each HTTP request.GovernanceProgramBaseClient(String serverName, String serverPlatformURLRoot, GovernanceProgramRESTClient restClient, int maxPageSize)Create a new client that is going to be used in an OMAG Server.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearAssignmentScope(String userId, String elementGUID, String scopeGUID)Remove an "AssignmentScope" relationship between two referenceables.voidclearGovernanceDefinitionScope(String userId, String governanceDefinitionGUID, String scopeGUID)Remove an "GovernanceDefinitionScope" relationship between two referenceables.voidclearGovernanceResponsibilityAssignment(String userId, String governanceResponsibilityGUID, String personRoleGUID)Remove a "GovernanceResponsibilityAssignment" relationship between a governance responsibility and a person role.voidclearGovernedBy(String userId, String elementGUID, String governanceDefinitionGUID)Remove a "GovernedBy" relationship between two elements.voidclearMoreInformation(String userId, String elementGUID, String detailGUID)Remove a "MoreInformation" relationship between two referenceables.voidclearResource(String userId, String elementGUID, String resourceGUID)Remove a "ResourceList" relationship between two referenceables.voidclearStakeholder(String userId, String elementGUID, String stakeholderGUID)Remove a "Stakeholder" relationship between two referenceables.List<RelatedElement>getAssignedActors(String userId, String scopeGUID, int startFrom, int pageSize)Retrieve the assigned actors linked by the "AssignmentScope" relationship between two referenceables.List<RelatedElement>getAssignedScopes(String userId, String elementGUID, int startFrom, int pageSize)Retrieve the assigned scopes linked by the "AssignmentScope" relationship between two referenceables.List<RelatedElement>getDescriptiveElements(String userId, String detailGUID, int startFrom, int pageSize)Retrieve the descriptive elements linked via a "MoreInformation" relationship between two referenceables.List<RelatedElement>getGovernanceDefinitionScopes(String userId, String governanceDefinitionGUID, int startFrom, int pageSize)Retrieve the assigned scopes linked by the "GovernanceDefinitionScope" relationship between two referenceables.List<GovernanceDefinitionElement>getGovernanceDefinitionsForElement(String userId, String elementGUID, int startFrom, int pageSize)Retrieve the governance definitions linked via a "GovernedBy" relationship to an element.List<RelatedElement>getGovernedElements(String userId, String governanceDefinitionGUID, int startFrom, int pageSize)Retrieve the governed elements linked via a "GovernedBy" relationship to a governance definition.List<RelatedElement>getMoreInformation(String userId, String elementGUID, int startFrom, int pageSize)Retrieve the detail elements linked via a "MoreInformation" relationship between two referenceables.List<RelatedElement>getResourceList(String userId, String elementGUID, int startFrom, int pageSize)Retrieve the list of resources assigned to an element via the "ResourceList" relationship between two referenceables.List<GovernanceRoleElement>getResponsibleRoles(String userId, String governanceResponsibilityGUID, int startFrom, int pageSize)Retrieve the person roles linked via a "GovernanceResponsibilityAssignment" relationship to a governance responsibility.List<GovernanceDefinitionElement>getRoleResponsibilities(String userId, String personRoleGUID, int startFrom, int pageSize)Retrieve the governance responsibilities linked via a "GovernanceResponsibilityAssignment" relationship to a person role.List<GovernanceDefinitionElement>getScopedGovernanceDefinitions(String userId, String scopeGUID, int startFrom, int pageSize)Retrieve the governance definitions linked by the "GovernanceDefinitionScope" relationship to a scope element.List<RelatedElement>getStakeholderCommissionedElements(String userId, String stakeholderGUID, int startFrom, int pageSize)Retrieve the elements commissioned by a stakeholder, linked via the "Stakeholder" relationship between two referenceables.List<RelatedElement>getStakeholders(String userId, String elementGUID, int startFrom, int pageSize)Retrieve the stakeholder elements linked via the "Stakeholder" relationship between two referenceables.List<RelatedElement>getSupportedByResource(String userId, String resourceGUID, int startFrom, int pageSize)Retrieve the list of elements assigned to a resource via the "ResourceList" relationship between two referenceables.voidremoveReferenceable(String userId, String elementGUID, String elementGUIDParameterName, String urlTemplate, String methodName)Remove the metadata element.voidsetupAssignmentScope(String userId, String elementGUID, AssignmentScopeProperties properties, String scopeGUID)Create an "AssignmentScope" relationship between an element and its scope.voidsetupGovernanceDefinitionScope(String userId, String governanceDefinitionGUID, String scopeGUID)Create an "GovernanceDefinitionScope" relationship between a governance definition and its scope element.voidsetupGovernanceResponsibilityAssignment(String userId, String governanceResponsibilityGUID, String personRoleGUID)Create a "GovernanceResponsibilityAssignment" relationship between a governance responsibility and a person role.voidsetupGovernedBy(String userId, String elementGUID, RelationshipProperties properties, String governanceDefinitionGUID)Create a "GovernedBy" relationship between an element and a governance definition.voidsetupMoreInformation(String userId, String elementGUID, RelationshipProperties properties, String detailGUID)Create a "MoreInformation" relationship between an element that is descriptive and one that is providing the detail.voidsetupResource(String userId, String elementGUID, ResourceListProperties properties, String resourceGUID)Create a "ResourceList" relationship between a consuming element and an element that represents resources.voidsetupStakeholder(String userId, String elementGUID, StakeholderProperties properties, String stakeholderGUID)Create a "Stakeholder" relationship between an element and its stakeholder.voidupdateGovernanceDefinitionStatus(String userId, String elementGUID, String elementGUIDParameterName, GovernanceDefinitionStatus newStatus, String propertiesParameterName, String methodName)Update the status of a governance definitionvoidupdateRelationship(String userId, String relationshipGUID, String relationshipGUIDParameterName, boolean isMergeUpdate, String relationshipName, RelationshipProperties properties, String urlTemplate, String methodName)Update the properties of a multi-link relationship.
-
-
-
Field Detail
-
nullRequestBody
protected NullRequestBody nullRequestBody
-
-
Constructor Detail
-
GovernanceProgramBaseClient
public GovernanceProgramBaseClient(String serverName, String serverPlatformURLRoot, int maxPageSize, AuditLog auditLog) throws InvalidParameterException
Create a new client with no authentication embedded in the HTTP request.- Parameters:
serverName- name of the server to connect toserverPlatformURLRoot- the network address of the server running the OMAS REST serversmaxPageSize- pre-initialized parameter limitauditLog- logging destination- Throws:
InvalidParameterException- there is a problem creating the client-side components to issue any REST API calls.
-
GovernanceProgramBaseClient
public GovernanceProgramBaseClient(String serverName, String serverPlatformURLRoot) throws InvalidParameterException
Create a new client with no authentication embedded in the HTTP request.- Parameters:
serverName- name of the server to connect toserverPlatformURLRoot- the network address of the server running the OMAS REST servers- Throws:
InvalidParameterException- there is a problem creating the client-side components to issue any REST API calls.
-
GovernanceProgramBaseClient
public GovernanceProgramBaseClient(String serverName, String serverPlatformURLRoot, String userId, String password) throws InvalidParameterException
Create a new client that passes userId and password in each HTTP request. This is the userId/password of the calling server. The end user's userId is sent on each request.- Parameters:
serverName- name of the server to connect toserverPlatformURLRoot- the network address of the server running the OMAS REST serversuserId- caller's userId embedded in all HTTP requestspassword- caller's userId embedded in all HTTP requests- Throws:
InvalidParameterException- there is a problem creating the client-side components to issue any REST API calls.
-
GovernanceProgramBaseClient
public GovernanceProgramBaseClient(String serverName, String serverPlatformURLRoot, String userId, String password, int maxPageSize, AuditLog auditLog) throws InvalidParameterException
Create a new client that passes userId and password in each HTTP request. This is the userId/password of the calling server. The end user's userId is sent on each request.- Parameters:
serverName- name of the server to connect toserverPlatformURLRoot- the network address of the server running the OMAS REST serversuserId- caller's userId embedded in all HTTP requestspassword- caller's userId embedded in all HTTP requestsmaxPageSize- pre-initialized parameter limitauditLog- logging destination- Throws:
InvalidParameterException- there is a problem creating the client-side components to issue any REST API calls.
-
GovernanceProgramBaseClient
public GovernanceProgramBaseClient(String serverName, String serverPlatformURLRoot, GovernanceProgramRESTClient restClient, int maxPageSize) throws InvalidParameterException
Create a new client that is going to be used in an OMAG Server.- Parameters:
serverName- name of the server to connect toserverPlatformURLRoot- the network address of the server running the OMAS REST serversrestClient- client that issues the REST API callsmaxPageSize- maximum number of results supported by this server- Throws:
InvalidParameterException- there is a problem creating the client-side components to issue any REST API calls.
-
-
Method Detail
-
updateGovernanceDefinitionStatus
public void updateGovernanceDefinitionStatus(String userId, String elementGUID, String elementGUIDParameterName, GovernanceDefinitionStatus newStatus, String propertiesParameterName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Update the status of a governance definition- Parameters:
userId- calling userelementGUID- unique identifier of the metadata element to updateelementGUIDParameterName- name of parameter passing the elementGUIDnewStatus- new statuspropertiesParameterName- name of parameter passing the propertiesmethodName- calling method- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
updateRelationship
public void updateRelationship(String userId, String relationshipGUID, String relationshipGUIDParameterName, boolean isMergeUpdate, String relationshipName, RelationshipProperties properties, String urlTemplate, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Update the properties of a multi-link relationship.- Parameters:
userId- calling userrelationshipGUID- unique identifier of the primary elementrelationshipGUIDParameterName- name of parameter passing the relationshipGUIDisMergeUpdate- should the supplied properties overlay the existing properties or replace themrelationshipName- type name of relationshipproperties- describes the properties for the relationshipurlTemplate- URL to call (no expected placeholders)methodName- calling method- Throws:
InvalidParameterException- one of the properties is invalidPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
removeReferenceable
public void removeReferenceable(String userId, String elementGUID, String elementGUIDParameterName, String urlTemplate, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the metadata element.- Parameters:
userId- calling userelementGUID- unique identifier of the metadata element to removeelementGUIDParameterName- name of parameter passing the elementGUIDurlTemplate- URL to call (no expected placeholders)methodName- calling method- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
setupMoreInformation
public void setupMoreInformation(String userId, String elementGUID, RelationshipProperties properties, String detailGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a "MoreInformation" relationship between an element that is descriptive and one that is providing the detail.- Specified by:
setupMoreInformationin interfaceRelatedElementsManagementInterface- Parameters:
userId- calling userelementGUID- unique identifier of the element that is descriptiveproperties- properties of the relationshipdetailGUID- unique identifier of the element that provides the detail- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
clearMoreInformation
public void clearMoreInformation(String userId, String elementGUID, String detailGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove a "MoreInformation" relationship between two referenceables.- Specified by:
clearMoreInformationin interfaceRelatedElementsManagementInterface- Parameters:
userId- calling userelementGUID- unique identifier of the element that is descriptivedetailGUID- unique identifier of the element that provides the detail- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getMoreInformation
public List<RelatedElement> getMoreInformation(String userId, String elementGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the detail elements linked via a "MoreInformation" relationship between two referenceables.- Specified by:
getMoreInformationin interfaceRelatedElementsManagementInterface- Parameters:
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:
- list of related elements
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getDescriptiveElements
public List<RelatedElement> getDescriptiveElements(String userId, String detailGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the descriptive elements linked via a "MoreInformation" relationship between two referenceables.- Specified by:
getDescriptiveElementsin interfaceRelatedElementsManagementInterface- Parameters:
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:
- list of related elements
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
setupGovernedBy
public void setupGovernedBy(String userId, String elementGUID, RelationshipProperties properties, String governanceDefinitionGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a "GovernedBy" relationship between an element and a governance definition.- Specified by:
setupGovernedByin interfaceRelatedElementsManagementInterface- Parameters:
userId- calling userelementGUID- unique identifier of the element that is governedproperties- properties of the relationshipgovernanceDefinitionGUID- unique identifier of the element that provides the detail- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
clearGovernedBy
public void clearGovernedBy(String userId, String elementGUID, String governanceDefinitionGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove a "GovernedBy" relationship between two elements.- Specified by:
clearGovernedByin interfaceRelatedElementsManagementInterface- Parameters:
userId- calling userelementGUID- unique identifier of the element that is governedgovernanceDefinitionGUID- unique identifier of the governance definition- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getGovernanceDefinitionsForElement
public List<GovernanceDefinitionElement> getGovernanceDefinitionsForElement(String userId, String elementGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the governance definitions linked via a "GovernedBy" relationship to an element.- Specified by:
getGovernanceDefinitionsForElementin interfaceRelatedElementsManagementInterface- Parameters:
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:
- list of related governance definitions
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getGovernedElements
public List<RelatedElement> getGovernedElements(String userId, String governanceDefinitionGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the governed elements linked via a "GovernedBy" relationship to a governance definition.- Specified by:
getGovernedElementsin interfaceRelatedElementsManagementInterface- Parameters:
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:
- list of related elements
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
setupGovernanceDefinitionScope
public void setupGovernanceDefinitionScope(String userId, String governanceDefinitionGUID, String scopeGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create an "GovernanceDefinitionScope" relationship between a governance definition and its scope element.- Specified by:
setupGovernanceDefinitionScopein interfaceRelatedElementsManagementInterface- Parameters:
userId- calling usergovernanceDefinitionGUID- unique identifier of the governance definitionscopeGUID- unique identifier of the scope- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
clearGovernanceDefinitionScope
public void clearGovernanceDefinitionScope(String userId, String governanceDefinitionGUID, String scopeGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove an "GovernanceDefinitionScope" relationship between two referenceables.- Specified by:
clearGovernanceDefinitionScopein interfaceRelatedElementsManagementInterface- Parameters:
userId- calling usergovernanceDefinitionGUID- unique identifier of the governance definitionscopeGUID- unique identifier of the scope- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getGovernanceDefinitionScopes
public List<RelatedElement> getGovernanceDefinitionScopes(String userId, String governanceDefinitionGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the assigned scopes linked by the "GovernanceDefinitionScope" relationship between two referenceables.- Specified by:
getGovernanceDefinitionScopesin interfaceRelatedElementsManagementInterface- Parameters:
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:
- list of related elements
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getScopedGovernanceDefinitions
public List<GovernanceDefinitionElement> getScopedGovernanceDefinitions(String userId, String scopeGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the governance definitions linked by the "GovernanceDefinitionScope" relationship to a scope element.- Specified by:
getScopedGovernanceDefinitionsin interfaceRelatedElementsManagementInterface- Parameters:
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:
- list of related elements
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
setupGovernanceResponsibilityAssignment
public void setupGovernanceResponsibilityAssignment(String userId, String governanceResponsibilityGUID, String personRoleGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a "GovernanceResponsibilityAssignment" relationship between a governance responsibility and a person role.- Specified by:
setupGovernanceResponsibilityAssignmentin interfaceRelatedElementsManagementInterface- Parameters:
userId- calling usergovernanceResponsibilityGUID- unique identifier of the governance responsibility (type of governance definition)personRoleGUID- unique identifier of the person role element- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
clearGovernanceResponsibilityAssignment
public void clearGovernanceResponsibilityAssignment(String userId, String governanceResponsibilityGUID, String personRoleGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove a "GovernanceResponsibilityAssignment" relationship between a governance responsibility and a person role.- Specified by:
clearGovernanceResponsibilityAssignmentin interfaceRelatedElementsManagementInterface- Parameters:
userId- calling usergovernanceResponsibilityGUID- unique identifier of the governance responsibility (type of governance definition)personRoleGUID- unique identifier of the person role element- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getResponsibleRoles
public List<GovernanceRoleElement> getResponsibleRoles(String userId, String governanceResponsibilityGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the person roles linked via a "GovernanceResponsibilityAssignment" relationship to a governance responsibility.- Specified by:
getResponsibleRolesin interfaceRelatedElementsManagementInterface- Parameters:
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:
- list of related elements
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getRoleResponsibilities
public List<GovernanceDefinitionElement> getRoleResponsibilities(String userId, String personRoleGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the governance responsibilities linked via a "GovernanceResponsibilityAssignment" relationship to a person role.- Specified by:
getRoleResponsibilitiesin interfaceRelatedElementsManagementInterface- Parameters:
userId- calling userpersonRoleGUID- unique identifier of the rolestartFrom- index of the list to start from (0 for start)pageSize- maximum number of elements to return.- Returns:
- list of related elements
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
setupStakeholder
public void setupStakeholder(String userId, String elementGUID, StakeholderProperties properties, String stakeholderGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a "Stakeholder" relationship between an element and its stakeholder.- Specified by:
setupStakeholderin interfaceRelatedElementsManagementInterface- Parameters:
userId- calling userelementGUID- unique identifier of the elementproperties- properties of the relationshipstakeholderGUID- unique identifier of the stakeholder- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
clearStakeholder
public void clearStakeholder(String userId, String elementGUID, String stakeholderGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove a "Stakeholder" relationship between two referenceables.- Specified by:
clearStakeholderin interfaceRelatedElementsManagementInterface- Parameters:
userId- calling userelementGUID- unique identifier of the elementstakeholderGUID- unique identifier of the stakeholder- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getStakeholders
public List<RelatedElement> getStakeholders(String userId, String elementGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the stakeholder elements linked via the "Stakeholder" relationship between two referenceables.- Specified by:
getStakeholdersin interfaceRelatedElementsManagementInterface- Parameters:
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:
- list of related elements
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getStakeholderCommissionedElements
public List<RelatedElement> getStakeholderCommissionedElements(String userId, String stakeholderGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the elements commissioned by a stakeholder, linked via the "Stakeholder" relationship between two referenceables.- Specified by:
getStakeholderCommissionedElementsin interfaceRelatedElementsManagementInterface- Parameters:
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:
- list of related elements
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
setupAssignmentScope
public void setupAssignmentScope(String userId, String elementGUID, AssignmentScopeProperties properties, String scopeGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create an "AssignmentScope" relationship between an element and its scope.- Specified by:
setupAssignmentScopein interfaceRelatedElementsManagementInterface- Parameters:
userId- calling userelementGUID- unique identifier of the elementproperties- properties of the relationshipscopeGUID- unique identifier of the scope- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
clearAssignmentScope
public void clearAssignmentScope(String userId, String elementGUID, String scopeGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove an "AssignmentScope" relationship between two referenceables.- Specified by:
clearAssignmentScopein interfaceRelatedElementsManagementInterface- Parameters:
userId- calling userelementGUID- unique identifier of the elementscopeGUID- unique identifier of the scope- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getAssignedScopes
public List<RelatedElement> getAssignedScopes(String userId, String elementGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the assigned scopes linked by the "AssignmentScope" relationship between two referenceables.- Specified by:
getAssignedScopesin interfaceRelatedElementsManagementInterface- Parameters:
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:
- list of related elements
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getAssignedActors
public List<RelatedElement> getAssignedActors(String userId, String scopeGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the assigned actors linked by the "AssignmentScope" relationship between two referenceables.- Specified by:
getAssignedActorsin interfaceRelatedElementsManagementInterface- Parameters:
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:
- list of related elements
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
setupResource
public void setupResource(String userId, String elementGUID, ResourceListProperties properties, String resourceGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a "ResourceList" relationship between a consuming element and an element that represents resources.- Specified by:
setupResourcein interfaceRelatedElementsManagementInterface- Parameters:
userId- calling userelementGUID- unique identifier of the elementproperties- properties of the relationshipresourceGUID- unique identifier of the resource- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
clearResource
public void clearResource(String userId, String elementGUID, String resourceGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove a "ResourceList" relationship between two referenceables.- Specified by:
clearResourcein interfaceRelatedElementsManagementInterface- Parameters:
userId- calling userelementGUID- unique identifier of the elementresourceGUID- unique identifier of the resource- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getResourceList
public List<RelatedElement> getResourceList(String userId, String elementGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the list of resources assigned to an element via the "ResourceList" relationship between two referenceables.- Specified by:
getResourceListin interfaceRelatedElementsManagementInterface- Parameters:
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:
- list of related elements
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getSupportedByResource
public List<RelatedElement> getSupportedByResource(String userId, String resourceGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the list of elements assigned to a resource via the "ResourceList" relationship between two referenceables.- Specified by:
getSupportedByResourcein interfaceRelatedElementsManagementInterface- Parameters:
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:
- list of related elements
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
-