Class LocationManagement
java.lang.Object
org.odpi.openmetadata.accessservices.communityprofile.client.CommunityProfileBaseClient
org.odpi.openmetadata.accessservices.communityprofile.client.LocationManagement
- All Implemented Interfaces:
org.odpi.openmetadata.accessservices.communityprofile.api.LocationManagementInterface,org.odpi.openmetadata.accessservices.communityprofile.api.RelatedElementsManagementInterface
public class LocationManagement
extends CommunityProfileBaseClient
implements org.odpi.openmetadata.accessservices.communityprofile.api.LocationManagementInterface
LocationManager provides the API operations to create and maintain location definitions.
-
Constructor Summary
ConstructorsConstructorDescriptionLocationManagement(String serverName, String serverPlatformURLRoot, int maxPageSize) Create a new client with no authentication embedded in the HTTP request.LocationManagement(String serverName, String serverPlatformURLRoot, String userId, String password, int maxPageSize) Create a new client that passes userId and password in each HTTP request.LocationManagement(String serverName, String serverPlatformURLRoot, String userId, String password, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog, int maxPageSize) Create a new client that passes userId and password in each HTTP request.LocationManagement(String serverName, String serverPlatformURLRoot, CommunityProfileRESTClient restClient, int maxPageSize) Create a new client that passes userId and password in each HTTP request.LocationManagement(String serverName, String serverPlatformURLRoot, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog, int maxPageSize) Create a new client with no authentication embedded in the HTTP request. -
Method Summary
Modifier and TypeMethodDescriptionvoidclearAdjacentLocation(String userId, String externalSourceGUID, String externalSourceName, String locationOneGUID, String locationTwoGUID) Remove a peer-to-peer relationship between two locations.voidclearAssetLocation(String userId, String externalSourceGUID, String externalSourceName, String assetGUID, String locationGUID) Remove an asset location relationship between an asset and a location.voidclearLocationAsDigital(String userId, String externalSourceGUID, String externalSourceName, String locationGUID) Remove the digital/cyber location designation from the location.voidclearLocationAsFixedPhysical(String userId, String externalSourceGUID, String externalSourceName, String locationGUID) Remove the fixed physical location designation from the location.voidclearLocationAsSecure(String userId, String externalSourceGUID, String externalSourceName, String locationGUID) Remove the secure location designation from the location.voidclearNestedLocation(String userId, String externalSourceGUID, String externalSourceName, String parentLocationGUID, String childLocationGUID) Remove a parent-child relationship between two locations.voidclearProfileLocation(String userId, String externalSourceGUID, String externalSourceName, String actorProfileGUID, String locationGUID) Remove a profile location relationship between an actor profile and a location.createLocation(String userId, String externalSourceGUID, String externalSourceName, org.odpi.openmetadata.frameworks.openmetadata.properties.locations.LocationProperties locationProperties) Create a new metadata element to represent a location.createLocationFromTemplate(String userId, String externalSourceGUID, String externalSourceName, String templateGUID, org.odpi.openmetadata.accessservices.communityprofile.properties.TemplateProperties templateProperties) Create a new metadata element to represent a location using an existing metadata element as a template.List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.LocationElement>findLocations(String userId, String searchString, int startFrom, int pageSize) Retrieve the list of location metadata elements that contain the search string.List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.LocationElement>getAdjacentLocations(String userId, String locationGUID, int startFrom, int pageSize) Retrieve the list of adjacent location metadata elements linked to locationGUID.List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.LocationElement>getGroupingLocations(String userId, String locationGUID, int startFrom, int pageSize) Retrieve the list of location metadata elements that has the location identifier with locationGUID nested inside it.List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.LocationElement>getKnownLocationsForAsset(String userId, String assetGUID, int startFrom, int pageSize) Retrieve the list of location metadata elements linked to assetGUID.org.odpi.openmetadata.frameworks.openmetadata.metadataelements.LocationElementgetLocationByGUID(String userId, String locationGUID) Retrieve the location metadata element with the supplied unique identifier.List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.LocationElement>getLocations(String userId, int startFrom, int pageSize) Retrieve the list of location metadata elements.List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.LocationElement>getLocationsByName(String userId, String name, int startFrom, int pageSize) Retrieve the list of location metadata elements with a matching qualified name, identifier or display name.List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.LocationElement>getLocationsByProfile(String userId, String actorProfileGUID, int startFrom, int pageSize) Retrieve the list of location metadata elements with linked to the actorProfileGUID.List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.LocationElement>getNestedLocations(String userId, String locationGUID, int startFrom, int pageSize) Retrieve the list of nested location metadata elements linked to locationGUID.voidremoveLocation(String userId, String externalSourceGUID, String externalSourceName, String locationGUID) Remove the metadata element representing a location.voidsetLocationAsDigital(String userId, String externalSourceGUID, String externalSourceName, String locationGUID, org.odpi.openmetadata.frameworks.openmetadata.properties.locations.DigitalLocationProperties properties) Classify the location to indicate that it represents a digital/cyber location.voidsetLocationAsFixedPhysical(String userId, String externalSourceGUID, String externalSourceName, String locationGUID, org.odpi.openmetadata.frameworks.openmetadata.properties.locations.FixedLocationProperties properties) Classify the location to indicate that it represents a fixed physical location.voidsetLocationAsSecure(String userId, String externalSourceGUID, String externalSourceName, String locationGUID, org.odpi.openmetadata.frameworks.openmetadata.properties.locations.SecureLocationProperties properties) Classify the location to indicate that it represents a secure location.voidsetupAdjacentLocation(String userId, String externalSourceGUID, String externalSourceName, String locationOneGUID, String locationTwoGUID, org.odpi.openmetadata.frameworks.openmetadata.properties.locations.AdjacentLocationProperties properties) Create a peer-to-peer relationship between two locations.voidsetupAssetLocation(String userId, String externalSourceGUID, String externalSourceName, String assetGUID, String locationGUID, org.odpi.openmetadata.frameworks.openmetadata.properties.locations.AssetLocationProperties properties) Create an asset location relationship between an asset and a location.voidsetupNestedLocation(String userId, String externalSourceGUID, String externalSourceName, String parentLocationGUID, String childLocationGUID, org.odpi.openmetadata.frameworks.openmetadata.properties.locations.NestedLocationProperties properties) Create a parent-child relationship between two locations.voidsetupProfileLocation(String userId, String externalSourceGUID, String externalSourceName, String actorProfileGUID, String locationGUID, org.odpi.openmetadata.frameworks.openmetadata.properties.locations.ProfileLocationProperties properties) Create a profile location relationship between an actor profile and a location.voidupdateLocation(String userId, String externalSourceGUID, String externalSourceName, String locationGUID, boolean isMergeUpdate, org.odpi.openmetadata.frameworks.openmetadata.properties.locations.LocationProperties locationProperties) Update the metadata element representing a location.Methods inherited from class org.odpi.openmetadata.accessservices.communityprofile.client.CommunityProfileBaseClient
clearAssignmentScope, clearMoreInformation, clearResource, clearStakeholder, getAssignedActors, getAssignedScopes, getDescriptiveElements, getMoreInformation, getResourceList, getStakeholderCommissionedElements, getStakeholders, getSupportedByResource, removeReferenceable, setupAssignmentScope, setupMoreInformation, setupResource, setupStakeholder, updateRelationship
-
Constructor Details
-
LocationManagement
public LocationManagement(String serverName, String serverPlatformURLRoot, int maxPageSize) throws org.odpi.openmetadata.frameworks.openmetadata.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- maximum value allowed for page size- Throws:
org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException- bad input parameters
-
LocationManagement
public LocationManagement(String serverName, String serverPlatformURLRoot, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog, int maxPageSize) throws org.odpi.openmetadata.frameworks.openmetadata.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 destinationmaxPageSize- maximum value allowed for page size- Throws:
org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException- there is a problem creating the client-side components to issue any REST API calls.
-
LocationManagement
public LocationManagement(String serverName, String serverPlatformURLRoot, String userId, String password, int maxPageSize) throws org.odpi.openmetadata.frameworks.openmetadata.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- maximum value allowed for page size- Throws:
org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException- bad input parameters
-
LocationManagement
public LocationManagement(String serverName, String serverPlatformURLRoot, String userId, String password, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog, int maxPageSize) throws org.odpi.openmetadata.frameworks.openmetadata.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- maximum value allowed for page sizeauditLog- logging destination- Throws:
org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException- bad input parameters
-
LocationManagement
public LocationManagement(String serverName, String serverPlatformURLRoot, CommunityProfileRESTClient restClient, int maxPageSize) throws org.odpi.openmetadata.frameworks.openmetadata.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 servicesrestClient- pre-initialized REST clientmaxPageSize- pre-initialized parameter limit- Throws:
org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException- there is a problem with the information about the remote OMAS
-
-
Method Details
-
createLocation
public String createLocation(String userId, String externalSourceGUID, String externalSourceName, org.odpi.openmetadata.frameworks.openmetadata.properties.locations.LocationProperties locationProperties) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException Create a new metadata element to represent a location. Classifications can be added later to define the type of location.- Specified by:
createLocationin interfaceorg.odpi.openmetadata.accessservices.communityprofile.api.LocationManagementInterface- Parameters:
userId- calling userexternalSourceGUID- unique identifier of software capability representing the callerexternalSourceName- unique name of software capability representing the callerlocationProperties- properties to store- Returns:
- unique identifier of the new metadata element
- Throws:
org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
createLocationFromTemplate
public String createLocationFromTemplate(String userId, String externalSourceGUID, String externalSourceName, String templateGUID, org.odpi.openmetadata.accessservices.communityprofile.properties.TemplateProperties templateProperties) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException Create a new metadata element to represent a location using an existing metadata element as a template. The template defines additional classifications and relationships that should be added to the new location.- Specified by:
createLocationFromTemplatein interfaceorg.odpi.openmetadata.accessservices.communityprofile.api.LocationManagementInterface- Parameters:
userId- calling userexternalSourceGUID- unique identifier of software capability representing the callerexternalSourceName- unique name of software capability representing the callertemplateGUID- unique identifier of the metadata element to copytemplateProperties- properties that override the template- Returns:
- unique identifier of the new metadata element
- Throws:
org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
updateLocation
public void updateLocation(String userId, String externalSourceGUID, String externalSourceName, String locationGUID, boolean isMergeUpdate, org.odpi.openmetadata.frameworks.openmetadata.properties.locations.LocationProperties locationProperties) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException Update the metadata element representing a location.- Specified by:
updateLocationin interfaceorg.odpi.openmetadata.accessservices.communityprofile.api.LocationManagementInterface- Parameters:
userId- calling userexternalSourceGUID- unique identifier of software capability representing the callerexternalSourceName- unique name of software capability representing the callerlocationGUID- unique identifier of the metadata element to updateisMergeUpdate- should the new properties be merged with existing properties (true) or completely replace them (false)?locationProperties- new properties for this element- Throws:
org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
setLocationAsFixedPhysical
public void setLocationAsFixedPhysical(String userId, String externalSourceGUID, String externalSourceName, String locationGUID, org.odpi.openmetadata.frameworks.openmetadata.properties.locations.FixedLocationProperties properties) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException Classify the location to indicate that it represents a fixed physical location.- Specified by:
setLocationAsFixedPhysicalin interfaceorg.odpi.openmetadata.accessservices.communityprofile.api.LocationManagementInterface- Parameters:
userId- calling userexternalSourceGUID- unique identifier of software capability representing the callerexternalSourceName- unique name of software capability representing the callerlocationGUID- unique identifier of the metadata element to classifyproperties- time zone and position of the location- Throws:
org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
clearLocationAsFixedPhysical
public void clearLocationAsFixedPhysical(String userId, String externalSourceGUID, String externalSourceName, String locationGUID) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException Remove the fixed physical location designation from the location.- Specified by:
clearLocationAsFixedPhysicalin interfaceorg.odpi.openmetadata.accessservices.communityprofile.api.LocationManagementInterface- Parameters:
userId- calling userexternalSourceGUID- unique identifier of software capability representing the callerexternalSourceName- unique name of software capability representing the callerlocationGUID- unique identifier of the metadata element to declassify- Throws:
org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
setLocationAsSecure
public void setLocationAsSecure(String userId, String externalSourceGUID, String externalSourceName, String locationGUID, org.odpi.openmetadata.frameworks.openmetadata.properties.locations.SecureLocationProperties properties) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException Classify the location to indicate that it represents a secure location.- Specified by:
setLocationAsSecurein interfaceorg.odpi.openmetadata.accessservices.communityprofile.api.LocationManagementInterface- Parameters:
userId- calling userexternalSourceGUID- unique identifier of software capability representing the callerexternalSourceName- unique name of software capability representing the callerlocationGUID- unique identifier of the metadata element to classifyproperties- properties of security at the site- Throws:
org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
clearLocationAsSecure
public void clearLocationAsSecure(String userId, String externalSourceGUID, String externalSourceName, String locationGUID) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException Remove the secure location designation from the location.- Specified by:
clearLocationAsSecurein interfaceorg.odpi.openmetadata.accessservices.communityprofile.api.LocationManagementInterface- Parameters:
userId- calling userexternalSourceGUID- unique identifier of software capability representing the callerexternalSourceName- unique name of software capability representing the callerlocationGUID- unique identifier of the metadata element to declassify- Throws:
org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
setLocationAsDigital
public void setLocationAsDigital(String userId, String externalSourceGUID, String externalSourceName, String locationGUID, org.odpi.openmetadata.frameworks.openmetadata.properties.locations.DigitalLocationProperties properties) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException Classify the location to indicate that it represents a digital/cyber location.- Specified by:
setLocationAsDigitalin interfaceorg.odpi.openmetadata.accessservices.communityprofile.api.LocationManagementInterface- Parameters:
userId- calling userexternalSourceGUID- unique identifier of software capability representing the callerexternalSourceName- unique name of software capability representing the callerlocationGUID- unique identifier of the metadata element to classifyproperties- network address of the location- Throws:
org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
clearLocationAsDigital
public void clearLocationAsDigital(String userId, String externalSourceGUID, String externalSourceName, String locationGUID) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException Remove the digital/cyber location designation from the location.- Specified by:
clearLocationAsDigitalin interfaceorg.odpi.openmetadata.accessservices.communityprofile.api.LocationManagementInterface- Parameters:
userId- calling userexternalSourceGUID- unique identifier of software capability representing the callerexternalSourceName- unique name of software capability representing the callerlocationGUID- unique identifier of the metadata element to declassify- Throws:
org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
removeLocation
public void removeLocation(String userId, String externalSourceGUID, String externalSourceName, String locationGUID) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException Remove the metadata element representing a location.- Specified by:
removeLocationin interfaceorg.odpi.openmetadata.accessservices.communityprofile.api.LocationManagementInterface- Parameters:
userId- calling userexternalSourceGUID- unique identifier of software capability representing the callerexternalSourceName- unique name of software capability representing the callerlocationGUID- unique identifier of the metadata element to remove- Throws:
org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
setupNestedLocation
public void setupNestedLocation(String userId, String externalSourceGUID, String externalSourceName, String parentLocationGUID, String childLocationGUID, org.odpi.openmetadata.frameworks.openmetadata.properties.locations.NestedLocationProperties properties) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException Create a parent-child relationship between two locations.- Specified by:
setupNestedLocationin interfaceorg.odpi.openmetadata.accessservices.communityprofile.api.LocationManagementInterface- Parameters:
userId- calling userexternalSourceGUID- unique identifier of software capability representing the callerexternalSourceName- unique name of software capability representing the callerparentLocationGUID- unique identifier of the location that is the broader locationchildLocationGUID- unique identifier of the location that is the smaller, nested locationproperties- relationship properties- Throws:
org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
clearNestedLocation
public void clearNestedLocation(String userId, String externalSourceGUID, String externalSourceName, String parentLocationGUID, String childLocationGUID) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException Remove a parent-child relationship between two locations.- Specified by:
clearNestedLocationin interfaceorg.odpi.openmetadata.accessservices.communityprofile.api.LocationManagementInterface- Parameters:
userId- calling userexternalSourceGUID- unique identifier of software capability representing the callerexternalSourceName- unique name of software capability representing the callerparentLocationGUID- unique identifier of the location that is the broader locationchildLocationGUID- unique identifier of the location that is the smaller, nested location- Throws:
org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
setupAdjacentLocation
public void setupAdjacentLocation(String userId, String externalSourceGUID, String externalSourceName, String locationOneGUID, String locationTwoGUID, org.odpi.openmetadata.frameworks.openmetadata.properties.locations.AdjacentLocationProperties properties) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException Create a peer-to-peer relationship between two locations.- Specified by:
setupAdjacentLocationin interfaceorg.odpi.openmetadata.accessservices.communityprofile.api.LocationManagementInterface- Parameters:
userId- calling userexternalSourceGUID- unique identifier of software capability representing the callerexternalSourceName- unique name of software capability representing the callerlocationOneGUID- unique identifier of the first locationlocationTwoGUID- unique identifier of the second locationproperties- relationship properties- Throws:
org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
clearAdjacentLocation
public void clearAdjacentLocation(String userId, String externalSourceGUID, String externalSourceName, String locationOneGUID, String locationTwoGUID) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException Remove a peer-to-peer relationship between two locations.- Specified by:
clearAdjacentLocationin interfaceorg.odpi.openmetadata.accessservices.communityprofile.api.LocationManagementInterface- Parameters:
userId- calling userexternalSourceGUID- unique identifier of software capability representing the callerexternalSourceName- unique name of software capability representing the callerlocationOneGUID- unique identifier of the first locationlocationTwoGUID- unique identifier of the second location- Throws:
org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
setupProfileLocation
public void setupProfileLocation(String userId, String externalSourceGUID, String externalSourceName, String actorProfileGUID, String locationGUID, org.odpi.openmetadata.frameworks.openmetadata.properties.locations.ProfileLocationProperties properties) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException Create a profile location relationship between an actor profile and a location.- Specified by:
setupProfileLocationin interfaceorg.odpi.openmetadata.accessservices.communityprofile.api.LocationManagementInterface- Parameters:
userId- calling userexternalSourceGUID- unique identifier of software capability representing the callerexternalSourceName- unique name of software capability representing the calleractorProfileGUID- unique identifier of the actor profilelocationGUID- unique identifier of the locationproperties- type of association with the location- Throws:
org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
clearProfileLocation
public void clearProfileLocation(String userId, String externalSourceGUID, String externalSourceName, String actorProfileGUID, String locationGUID) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException Remove a profile location relationship between an actor profile and a location.- Specified by:
clearProfileLocationin interfaceorg.odpi.openmetadata.accessservices.communityprofile.api.LocationManagementInterface- Parameters:
userId- calling userexternalSourceGUID- unique identifier of software capability representing the callerexternalSourceName- unique name of software capability representing the calleractorProfileGUID- unique identifier of the actor profilelocationGUID- unique identifier of the location- Throws:
org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
setupAssetLocation
public void setupAssetLocation(String userId, String externalSourceGUID, String externalSourceName, String assetGUID, String locationGUID, org.odpi.openmetadata.frameworks.openmetadata.properties.locations.AssetLocationProperties properties) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException Create an asset location relationship between an asset and a location.- Specified by:
setupAssetLocationin interfaceorg.odpi.openmetadata.accessservices.communityprofile.api.LocationManagementInterface- Parameters:
userId- calling userexternalSourceGUID- unique identifier of software capability representing the callerexternalSourceName- unique name of software capability representing the callerassetGUID- unique identifier of the assetlocationGUID- unique identifier of the locationproperties- type of association with the location- Throws:
org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
clearAssetLocation
public void clearAssetLocation(String userId, String externalSourceGUID, String externalSourceName, String assetGUID, String locationGUID) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException Remove an asset location relationship between an asset and a location.- Specified by:
clearAssetLocationin interfaceorg.odpi.openmetadata.accessservices.communityprofile.api.LocationManagementInterface- Parameters:
userId- calling userexternalSourceGUID- unique identifier of software capability representing the callerexternalSourceName- unique name of software capability representing the callerassetGUID- unique identifier of the assetlocationGUID- unique identifier of the location- Throws:
org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
findLocations
public List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.LocationElement> findLocations(String userId, String searchString, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException Retrieve the list of location metadata elements that contain the search string. The search string is treated as a regular expression.- Specified by:
findLocationsin interfaceorg.odpi.openmetadata.accessservices.communityprofile.api.LocationManagementInterface- Parameters:
userId- calling usersearchString- string to find in the propertiesstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
getLocationsByName
public List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.LocationElement> getLocationsByName(String userId, String name, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException Retrieve the list of location metadata elements with a matching qualified name, identifier or display name. There are no wildcards supported on this request.- Specified by:
getLocationsByNamein interfaceorg.odpi.openmetadata.accessservices.communityprofile.api.LocationManagementInterface- Parameters:
userId- calling username- name to search forstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
getAdjacentLocations
public List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.LocationElement> getAdjacentLocations(String userId, String locationGUID, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException Retrieve the list of adjacent location metadata elements linked to locationGUID.- Specified by:
getAdjacentLocationsin interfaceorg.odpi.openmetadata.accessservices.communityprofile.api.LocationManagementInterface- Parameters:
userId- calling userlocationGUID- locationGUID to search forstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
getNestedLocations
public List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.LocationElement> getNestedLocations(String userId, String locationGUID, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException Retrieve the list of nested location metadata elements linked to locationGUID.- Specified by:
getNestedLocationsin interfaceorg.odpi.openmetadata.accessservices.communityprofile.api.LocationManagementInterface- Parameters:
userId- calling userlocationGUID- locationGUID to search forstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
getGroupingLocations
public List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.LocationElement> getGroupingLocations(String userId, String locationGUID, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException Retrieve the list of location metadata elements that has the location identifier with locationGUID nested inside it.- Specified by:
getGroupingLocationsin interfaceorg.odpi.openmetadata.accessservices.communityprofile.api.LocationManagementInterface- Parameters:
userId- calling userlocationGUID- locationGUID to search forstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
getLocationsByProfile
public List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.LocationElement> getLocationsByProfile(String userId, String actorProfileGUID, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException Retrieve the list of location metadata elements with linked to the actorProfileGUID.- Specified by:
getLocationsByProfilein interfaceorg.odpi.openmetadata.accessservices.communityprofile.api.LocationManagementInterface- Parameters:
userId- calling useractorProfileGUID- actorProfileGUID to search forstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
getKnownLocationsForAsset
public List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.LocationElement> getKnownLocationsForAsset(String userId, String assetGUID, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException Retrieve the list of location metadata elements linked to assetGUID.- Specified by:
getKnownLocationsForAssetin interfaceorg.odpi.openmetadata.accessservices.communityprofile.api.LocationManagementInterface- Parameters:
userId- calling userassetGUID- assetGUID to search forstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
getLocations
public List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.LocationElement> getLocations(String userId, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException Retrieve the list of location metadata elements.- Specified by:
getLocationsin interfaceorg.odpi.openmetadata.accessservices.communityprofile.api.LocationManagementInterface- Parameters:
userId- calling userstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
getLocationByGUID
public org.odpi.openmetadata.frameworks.openmetadata.metadataelements.LocationElement getLocationByGUID(String userId, String locationGUID) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException Retrieve the location metadata element with the supplied unique identifier.- Specified by:
getLocationByGUIDin interfaceorg.odpi.openmetadata.accessservices.communityprofile.api.LocationManagementInterface- Parameters:
userId- calling userlocationGUID- unique identifier of the requested metadata element- Returns:
- matching metadata element
- Throws:
org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-