Interface ManageLocations
public interface ManageLocations
ManageLocations defines the client side interface for the Digital Architecture OMAS that is relevant for managing definitions of locations.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclearAdjacentLocation(String userId, String locationOneGUID, String locationTwoGUID) Remove a peer-to-peer relationship between two locations.voidclearLocationAsDigital(String userId, String locationGUID) Remove the digital/cyber location designation from the location.voidclearLocationAsFixedPhysical(String userId, String locationGUID) Remove the fixed physical location designation from the location.voidclearLocationAsSecure(String userId, String locationGUID) Remove the secure location designation from the location.voidclearNestedLocation(String userId, String parentLocationGUID, String childLocationGUID) Remove a parent-child relationship between two locations.createLocation(String userId, LocationProperties locationProperties) Create a new metadata element to represent a location.createLocationFromTemplate(String userId, String templateGUID, TemplateProperties templateProperties) Create a new metadata element to represent a location using an existing metadata element as a template.findLocations(String userId, String searchString, int startFrom, int pageSize) Retrieve the list of location metadata elements that contain the search string.getLocationByGUID(String userId, String locationGUID) Retrieve the location metadata element with the supplied unique identifier.getLocationsByName(String userId, String name, int startFrom, int pageSize) Retrieve the list of location metadata elements with a matching qualified or display name.voidremoveLocation(String userId, String locationGUID) Remove the metadata element representing a location.voidsetLocationAsDigital(String userId, String locationGUID, String networkAddress) Classify the location to indicate that it represents a digital/cyber location.voidsetLocationAsFixedPhysical(String userId, String locationGUID, String coordinates, String mapProjection, String postalAddress, String timeZone) Classify the location to indicate that it represents a fixed physical location.voidsetLocationAsSecure(String userId, String locationGUID, String description, String level) Classify the location to indicate that it represents a secure location.voidsetupAdjacentLocation(String userId, String locationOneGUID, String locationTwoGUID) Create a peer-to-peer relationship between two locations.voidsetupNestedLocation(String userId, String parentLocationGUID, String childLocationGUID) Create a parent-child relationship between two locations.voidupdateLocation(String userId, boolean isMergeUpdate, String locationGUID, LocationProperties locationProperties) Update the metadata element representing a location.
-
Method Details
-
createLocation
String createLocation(String userId, LocationProperties locationProperties) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Create a new metadata element to represent a location. Classifications can be added later to define the type of location.- Parameters:
userId- calling userlocationProperties- properties to store- Returns:
- unique identifier of the new metadata element
- 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)
-
createLocationFromTemplate
String createLocationFromTemplate(String userId, String templateGUID, TemplateProperties templateProperties) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.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.- Parameters:
userId- calling usertemplateGUID- 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.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)
-
updateLocation
void updateLocation(String userId, boolean isMergeUpdate, String locationGUID, LocationProperties locationProperties) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Update the metadata element representing a location.- Parameters:
userId- calling userisMergeUpdate- should the new properties be merged with existing properties (true) or completely replace them (false)?locationGUID- unique identifier of the metadata element to updatelocationProperties- new properties for this element- 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)
-
setLocationAsFixedPhysical
void setLocationAsFixedPhysical(String userId, String locationGUID, String coordinates, String mapProjection, String postalAddress, String timeZone) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Classify the location to indicate that it represents a fixed physical location.- Parameters:
userId- calling userlocationGUID- unique identifier of the metadata element to classifycoordinates- position of the locationmapProjection- map projection used to define the coordinatespostalAddress- postal address of the location (if appropriate)timeZone- time zone for the location- 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)
-
clearLocationAsFixedPhysical
void clearLocationAsFixedPhysical(String userId, String locationGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Remove the fixed physical location designation from the location.- Parameters:
userId- calling userlocationGUID- unique identifier of the metadata element to unclassify- 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)
-
setLocationAsSecure
void setLocationAsSecure(String userId, String locationGUID, String description, String level) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Classify the location to indicate that it represents a secure location.- Parameters:
userId- calling userlocationGUID- unique identifier of the metadata element to classifydescription- description of security at the sitelevel- level of security- 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)
-
clearLocationAsSecure
void clearLocationAsSecure(String userId, String locationGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Remove the secure location designation from the location.- Parameters:
userId- calling userlocationGUID- unique identifier of the metadata element to unclassify- 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)
-
setLocationAsDigital
void setLocationAsDigital(String userId, String locationGUID, String networkAddress) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Classify the location to indicate that it represents a digital/cyber location.- Parameters:
userId- calling userlocationGUID- unique identifier of the metadata element to classifynetworkAddress- position of the location- 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)
-
clearLocationAsDigital
void clearLocationAsDigital(String userId, String locationGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Remove the digital/cyber location designation from the location.- Parameters:
userId- calling userlocationGUID- unique identifier of the metadata element to unclassify- 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)
-
removeLocation
void removeLocation(String userId, String locationGUID) 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 representing a location.- Parameters:
userId- calling userlocationGUID- unique identifier of the metadata element to remove- 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)
-
setupNestedLocation
void setupNestedLocation(String userId, String parentLocationGUID, String childLocationGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Create a parent-child relationship between two locations.- Parameters:
userId- calling userparentLocationGUID- 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.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)
-
clearNestedLocation
void clearNestedLocation(String userId, String parentLocationGUID, String childLocationGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Remove a parent-child relationship between two locations.- Parameters:
userId- calling userparentLocationGUID- 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.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)
-
setupAdjacentLocation
void setupAdjacentLocation(String userId, String locationOneGUID, String locationTwoGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Create a peer-to-peer relationship between two locations.- Parameters:
userId- calling userlocationOneGUID- unique identifier of the first locationlocationTwoGUID- unique identifier of the second location- 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)
-
clearAdjacentLocation
void clearAdjacentLocation(String userId, String locationOneGUID, String locationTwoGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Remove a peer-to-peer relationship between two locations.- Parameters:
userId- calling userlocationOneGUID- unique identifier of the first locationlocationTwoGUID- unique identifier of the second location- 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)
-
findLocations
List<LocationElement> findLocations(String userId, String searchString, 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 location metadata elements that contain the search string. The search string is treated as a regular expression.- 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.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)
-
getLocationsByName
List<LocationElement> getLocationsByName(String userId, String name, 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 location metadata elements with a matching qualified or display name. There are no wildcards supported on this request.- 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.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)
-
getLocationByGUID
LocationElement getLocationByGUID(String userId, String locationGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve the location metadata element with the supplied unique identifier.- Parameters:
userId- calling userlocationGUID- unique identifier of the requested metadata element- Returns:
- matching metadata element
- 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)
-