Class AssetOwnerBaseClient
java.lang.Object
org.odpi.openmetadata.frameworkservices.ocf.metadatamanagement.client.ConnectedAssetClientBase
org.odpi.openmetadata.accessservices.assetowner.client.AssetOwnerBaseClient
- All Implemented Interfaces:
org.odpi.openmetadata.accessservices.assetowner.api.RelatedElementsManagementInterface,org.odpi.openmetadata.frameworkservices.ocf.metadatamanagement.api.ConnectorFactoryInterface
- Direct Known Subclasses:
AssetCertificationManager,AssetLicenseManager,AssetOwner,ExternalReferenceManager
public class AssetOwnerBaseClient
extends org.odpi.openmetadata.frameworkservices.ocf.metadatamanagement.client.ConnectedAssetClientBase
implements org.odpi.openmetadata.accessservices.assetowner.api.RelatedElementsManagementInterface
AssetOwnerBaseClient supports the common properties and functions for the Community Profile OMAS.
-
Constructor Summary
ConstructorsConstructorDescriptionAssetOwnerBaseClient(String serverName, String serverPlatformURLRoot) Create a new client with no authentication embedded in the HTTP request.AssetOwnerBaseClient(String serverName, String serverPlatformURLRoot, int maxPageSize, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog) Create a new client with no authentication embedded in the HTTP request.AssetOwnerBaseClient(String serverName, String serverPlatformURLRoot, String userId, String password) Create a new client that passes userId and password in each HTTP request.AssetOwnerBaseClient(String serverName, String serverPlatformURLRoot, String userId, String password, int maxPageSize, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog) Create a new client that passes userId and password in each HTTP request.AssetOwnerBaseClient(String serverName, String serverPlatformURLRoot, String userId, String password, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog) Create a new client that passes userId and password in each HTTP request.AssetOwnerBaseClient(String serverName, String serverPlatformURLRoot, AssetOwnerRESTClient restClient, int maxPageSize) Create a new client that is going to be used in an OMAG Server.AssetOwnerBaseClient(String serverName, String serverPlatformURLRoot, AssetOwnerRESTClient restClient, int maxPageSize, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog) Create a new client that is going to be used in an OMAG Server.AssetOwnerBaseClient(String serverName, String serverPlatformURLRoot, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog) Create a new client with no authentication embedded in the HTTP request. -
Method Summary
Modifier and TypeMethodDescriptionvoidclearMoreInformation(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<org.odpi.openmetadata.accessservices.assetowner.metadataelements.RelatedElement>getDescriptiveElements(String userId, String detailGUID, int startFrom, int pageSize) Retrieve the descriptive elements linked via a "MoreInformation" relationship between two referenceables.List<org.odpi.openmetadata.accessservices.assetowner.metadataelements.RelatedElement>getMoreInformation(String userId, String elementGUID, int startFrom, int pageSize) Retrieve the detail elements linked via a "MoreInformation" relationship between two referenceables.List<org.odpi.openmetadata.accessservices.assetowner.metadataelements.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<org.odpi.openmetadata.accessservices.assetowner.metadataelements.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<org.odpi.openmetadata.accessservices.assetowner.metadataelements.RelatedElement>getStakeholders(String userId, String elementGUID, int startFrom, int pageSize) Retrieve the stakeholder elements linked via the "Stakeholder" relationship between two referenceables.List<org.odpi.openmetadata.accessservices.assetowner.metadataelements.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.voidsetupMoreInformation(String userId, String elementGUID, org.odpi.openmetadata.accessservices.assetowner.properties.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, org.odpi.openmetadata.accessservices.assetowner.properties.ResourceListProperties properties, String resourceGUID) Create a "ResourceList" relationship between a consuming element and an element that represents resources.voidsetupStakeholder(String userId, String elementGUID, org.odpi.openmetadata.accessservices.assetowner.properties.StakeholderProperties properties, String stakeholderGUID) Create a "Stakeholder" relationship between an element and its stakeholder.voidupdateRelationship(String userId, String relationshipGUID, String relationshipGUIDParameterName, boolean isMergeUpdate, String relationshipName, org.odpi.openmetadata.accessservices.assetowner.properties.RelationshipProperties properties, String urlTemplate, String methodName) Update the properties of a multi-link relationship.Methods inherited from class org.odpi.openmetadata.frameworkservices.ocf.metadatamanagement.client.ConnectedAssetClientBase
getAnchorAssetFromGUID, getAssetProperties, getConnectorByConnection, getConnectorByGUID, getConnectorByName, getConnectorForAsset
-
Constructor Details
-
AssetOwnerBaseClient
public AssetOwnerBaseClient(String serverName, String serverPlatformURLRoot, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog) throws org.odpi.openmetadata.frameworks.connectors.ffdc.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 servicesauditLog- logging destination- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- there is a problem creating the client-side components to issue any REST API calls.
-
AssetOwnerBaseClient
public AssetOwnerBaseClient(String serverName, String serverPlatformURLRoot, int maxPageSize, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog) throws org.odpi.openmetadata.frameworks.connectors.ffdc.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 servicesmaxPageSize- pre-initialized parameter limitauditLog- logging destination- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- there is a problem creating the client-side components to issue any REST API calls.
-
AssetOwnerBaseClient
public AssetOwnerBaseClient(String serverName, String serverPlatformURLRoot) throws org.odpi.openmetadata.frameworks.connectors.ffdc.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 services- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- there is a problem creating the client-side components to issue any REST API calls.
-
AssetOwnerBaseClient
public AssetOwnerBaseClient(String serverName, String serverPlatformURLRoot, String userId, String password) throws org.odpi.openmetadata.frameworks.connectors.ffdc.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 servicesuserId- caller's userId embedded in all HTTP requestspassword- caller's userId embedded in all HTTP requests- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- there is a problem creating the client-side components to issue any REST API calls.
-
AssetOwnerBaseClient
public AssetOwnerBaseClient(String serverName, String serverPlatformURLRoot, String userId, String password, int maxPageSize, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog) throws org.odpi.openmetadata.frameworks.connectors.ffdc.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 servicesuserId- caller's userId embedded in all HTTP requestspassword- caller's userId embedded in all HTTP requestsmaxPageSize- pre-initialized parameter limitauditLog- logging destination- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- there is a problem creating the client-side components to issue any REST API calls.
-
AssetOwnerBaseClient
public AssetOwnerBaseClient(String serverName, String serverPlatformURLRoot, String userId, String password, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog) throws org.odpi.openmetadata.frameworks.connectors.ffdc.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 servicesuserId- caller's userId embedded in all HTTP requestspassword- caller's userId embedded in all HTTP requestsauditLog- logging destination- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- there is a problem creating the client-side components to issue any REST API calls.
-
AssetOwnerBaseClient
public AssetOwnerBaseClient(String serverName, String serverPlatformURLRoot, AssetOwnerRESTClient restClient, int maxPageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.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 servicesrestClient- client that issues the REST API callsmaxPageSize- maximum number of results supported by this server- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- there is a problem creating the client-side components to issue any REST API calls.
-
AssetOwnerBaseClient
public AssetOwnerBaseClient(String serverName, String serverPlatformURLRoot, AssetOwnerRESTClient restClient, int maxPageSize, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog) throws org.odpi.openmetadata.frameworks.connectors.ffdc.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 servicesrestClient- client that issues the REST API callsmaxPageSize- maximum number of results supported by this serverauditLog- logging destination- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- there is a problem creating the client-side components to issue any REST API calls.
-
-
Method Details
-
updateRelationship
public void updateRelationship(String userId, String relationshipGUID, String relationshipGUIDParameterName, boolean isMergeUpdate, String relationshipName, org.odpi.openmetadata.accessservices.assetowner.properties.RelationshipProperties properties, String urlTemplate, String methodName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.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:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the properties is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- problem accessing property serverorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- security access problem
-
removeReferenceable
public void removeReferenceable(String userId, String elementGUID, String elementGUIDParameterName, String urlTemplate, String methodName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.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:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
setupMoreInformation
public void setupMoreInformation(String userId, String elementGUID, org.odpi.openmetadata.accessservices.assetowner.properties.RelationshipProperties properties, String detailGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Create a "MoreInformation" relationship between an element that is descriptive and one that is providing the detail.- Specified by:
setupMoreInformationin interfaceorg.odpi.openmetadata.accessservices.assetowner.api.RelatedElementsManagementInterface- 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:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
clearMoreInformation
public void clearMoreInformation(String userId, String elementGUID, String detailGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Remove a "MoreInformation" relationship between two referenceables.- Specified by:
clearMoreInformationin interfaceorg.odpi.openmetadata.accessservices.assetowner.api.RelatedElementsManagementInterface- Parameters:
userId- calling userelementGUID- unique identifier of the element that is descriptivedetailGUID- unique identifier of the element that provides the detail- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
getMoreInformation
public List<org.odpi.openmetadata.accessservices.assetowner.metadataelements.RelatedElement> getMoreInformation(String userId, String elementGUID, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve the detail elements linked via a "MoreInformation" relationship between two referenceables.- Specified by:
getMoreInformationin interfaceorg.odpi.openmetadata.accessservices.assetowner.api.RelatedElementsManagementInterface- 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:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
getDescriptiveElements
public List<org.odpi.openmetadata.accessservices.assetowner.metadataelements.RelatedElement> getDescriptiveElements(String userId, String detailGUID, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve the descriptive elements linked via a "MoreInformation" relationship between two referenceables.- Specified by:
getDescriptiveElementsin interfaceorg.odpi.openmetadata.accessservices.assetowner.api.RelatedElementsManagementInterface- 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:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
setupStakeholder
public void setupStakeholder(String userId, String elementGUID, org.odpi.openmetadata.accessservices.assetowner.properties.StakeholderProperties properties, String stakeholderGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Create a "Stakeholder" relationship between an element and its stakeholder.- Specified by:
setupStakeholderin interfaceorg.odpi.openmetadata.accessservices.assetowner.api.RelatedElementsManagementInterface- Parameters:
userId- calling userelementGUID- unique identifier of the elementproperties- properties of the relationshipstakeholderGUID- unique identifier of the stakeholder- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
clearStakeholder
public void clearStakeholder(String userId, String elementGUID, String stakeholderGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Remove a "Stakeholder" relationship between two referenceables.- Specified by:
clearStakeholderin interfaceorg.odpi.openmetadata.accessservices.assetowner.api.RelatedElementsManagementInterface- Parameters:
userId- calling userelementGUID- unique identifier of the elementstakeholderGUID- unique identifier of the stakeholder- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
getStakeholders
public List<org.odpi.openmetadata.accessservices.assetowner.metadataelements.RelatedElement> getStakeholders(String userId, String elementGUID, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve the stakeholder elements linked via the "Stakeholder" relationship between two referenceables.- Specified by:
getStakeholdersin interfaceorg.odpi.openmetadata.accessservices.assetowner.api.RelatedElementsManagementInterface- 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:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
getStakeholderCommissionedElements
public List<org.odpi.openmetadata.accessservices.assetowner.metadataelements.RelatedElement> getStakeholderCommissionedElements(String userId, String stakeholderGUID, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve the elements commissioned by a stakeholder, linked via the "Stakeholder" relationship between two referenceables.- Specified by:
getStakeholderCommissionedElementsin interfaceorg.odpi.openmetadata.accessservices.assetowner.api.RelatedElementsManagementInterface- 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:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
setupResource
public void setupResource(String userId, String elementGUID, org.odpi.openmetadata.accessservices.assetowner.properties.ResourceListProperties properties, String resourceGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Create a "ResourceList" relationship between a consuming element and an element that represents resources.- Specified by:
setupResourcein interfaceorg.odpi.openmetadata.accessservices.assetowner.api.RelatedElementsManagementInterface- Parameters:
userId- calling userelementGUID- unique identifier of the elementproperties- properties of the relationshipresourceGUID- unique identifier of the resource- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
clearResource
public void clearResource(String userId, String elementGUID, String resourceGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Remove a "ResourceList" relationship between two referenceables.- Specified by:
clearResourcein interfaceorg.odpi.openmetadata.accessservices.assetowner.api.RelatedElementsManagementInterface- Parameters:
userId- calling userelementGUID- unique identifier of the elementresourceGUID- unique identifier of the resource- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
getResourceList
public List<org.odpi.openmetadata.accessservices.assetowner.metadataelements.RelatedElement> getResourceList(String userId, String elementGUID, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve the list of resources assigned to an element via the "ResourceList" relationship between two referenceables.- Specified by:
getResourceListin interfaceorg.odpi.openmetadata.accessservices.assetowner.api.RelatedElementsManagementInterface- 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:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
getSupportedByResource
public List<org.odpi.openmetadata.accessservices.assetowner.metadataelements.RelatedElement> getSupportedByResource(String userId, String resourceGUID, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve the list of elements assigned to a resource via the "ResourceList" relationship between two referenceables.- Specified by:
getSupportedByResourcein interfaceorg.odpi.openmetadata.accessservices.assetowner.api.RelatedElementsManagementInterface- 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:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-