public class LocationManager extends Object implements ManageLocations
| Constructor and Description |
|---|
LocationManager(String serverName,
String serverPlatformURLRoot)
Create a new client with no authentication embedded in the HTTP request.
|
LocationManager(String serverName,
String serverPlatformURLRoot,
AuditLog auditLog)
Create a new client with no authentication embedded in the HTTP request and an audit log.
|
LocationManager(String serverName,
String serverPlatformURLRoot,
DigitalArchitectureRESTClient restClient,
int maxPageSize,
AuditLog auditLog)
Create a new client that is going to be used in an OMAG Server (view service or integration service typically).
|
LocationManager(String serverName,
String serverPlatformURLRoot,
String userId,
String password)
Create a new client that passes userId and password in each HTTP request.
|
LocationManager(String serverName,
String serverPlatformURLRoot,
String userId,
String password,
AuditLog auditLog)
Create a new client that passes userId and password in each HTTP request.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearAdjacentLocation(String userId,
String locationOneGUID,
String locationTwoGUID)
Remove a peer-to-peer relationship between two locations.
|
void |
clearLocationAsDigital(String userId,
String locationGUID)
Remove the digital/cyber location designation from the location.
|
void |
clearLocationAsFixedPhysical(String userId,
String locationGUID)
Remove the fixed physical location designation from the location.
|
void |
clearLocationAsSecure(String userId,
String locationGUID)
Remove the secure location designation from the location.
|
void |
clearNestedLocation(String userId,
String parentLocationGUID,
String childLocationGUID)
Remove a parent-child relationship between two locations.
|
String |
createLocation(String userId,
LocationProperties locationProperties)
Create a new metadata element to represent a location.
|
String |
createLocationFromTemplate(String userId,
String templateGUID,
TemplateProperties templateProperties)
Create a new metadata element to represent a location using an existing metadata element as a template.
|
List<LocationElement> |
findLocations(String userId,
String searchString,
int startFrom,
int pageSize)
Retrieve the list of location metadata elements that contain the search string.
|
LocationElement |
getLocationByGUID(String userId,
String locationGUID)
Retrieve the location metadata element with the supplied unique identifier.
|
List<LocationElement> |
getLocationsByName(String userId,
String name,
int startFrom,
int pageSize)
Retrieve the list of location metadata elements with a matching qualified or display name.
|
void |
removeLocation(String userId,
String locationGUID)
Remove the metadata element representing a location.
|
void |
setLocationAsDigital(String userId,
String locationGUID,
String networkAddress)
Classify the location to indicate that it represents a digital/cyber location.
|
void |
setLocationAsFixedPhysical(String userId,
String locationGUID,
String coordinates,
String mapProjection,
String postalAddress,
String timeZone)
Classify the location to indicate that it represents a fixed physical location.
|
void |
setLocationAsSecure(String userId,
String locationGUID,
String description,
String level)
Classify the location to indicate that it represents a secure location.
|
void |
setupAdjacentLocation(String userId,
String locationOneGUID,
String locationTwoGUID)
Create a peer-to-peer relationship between two locations.
|
void |
setupNestedLocation(String userId,
String parentLocationGUID,
String childLocationGUID)
Create a parent-child relationship between two locations.
|
void |
updateLocation(String userId,
String locationGUID,
LocationProperties locationProperties)
Update the metadata element representing a location.
|
public LocationManager(String serverName, String serverPlatformURLRoot, AuditLog auditLog) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformURLRoot - the network address of the server running the OMAS REST serversauditLog - logging destinationInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public LocationManager(String serverName, String serverPlatformURLRoot) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformURLRoot - the network address of the server running the OMAS REST serversInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public LocationManager(String serverName, String serverPlatformURLRoot, String userId, String password, AuditLog auditLog) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformURLRoot - the network address of the server running the OMAS REST serversuserId - caller's userId embedded in all HTTP requestspassword - caller's userId embedded in all HTTP requestsauditLog - logging destinationInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public LocationManager(String serverName, String serverPlatformURLRoot, String userId, String password) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformURLRoot - the network address of the server running the OMAS REST serversuserId - caller's userId embedded in all HTTP requestspassword - caller's userId embedded in all HTTP requestsInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public LocationManager(String serverName, String serverPlatformURLRoot, DigitalArchitectureRESTClient restClient, int maxPageSize, AuditLog auditLog) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformURLRoot - the network address of the server running the OMAS REST serversrestClient - client that issues the REST API callsmaxPageSize - maximum number of results supported by this serverauditLog - logging destinationInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public String createLocation(String userId, LocationProperties locationProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
createLocation in interface ManageLocationsuserId - calling userlocationProperties - properties to storeInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public String createLocationFromTemplate(String userId, String templateGUID, TemplateProperties templateProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
createLocationFromTemplate in interface ManageLocationsuserId - calling usertemplateGUID - unique identifier of the metadata element to copytemplateProperties - properties that override the templateInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void updateLocation(String userId, String locationGUID, LocationProperties locationProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
updateLocation in interface ManageLocationsuserId - calling userlocationGUID - unique identifier of the metadata element to updatelocationProperties - new properties for this elementInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void setLocationAsFixedPhysical(String userId, String locationGUID, String coordinates, String mapProjection, String postalAddress, String timeZone) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
setLocationAsFixedPhysical in interface ManageLocationsuserId - 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 locationInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void clearLocationAsFixedPhysical(String userId, String locationGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
clearLocationAsFixedPhysical in interface ManageLocationsuserId - calling userlocationGUID - unique identifier of the metadata element to unclassifyInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void setLocationAsSecure(String userId, String locationGUID, String description, String level) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
setLocationAsSecure in interface ManageLocationsuserId - calling userlocationGUID - unique identifier of the metadata element to classifydescription - description of security at the sitelevel - level of securityInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void clearLocationAsSecure(String userId, String locationGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
clearLocationAsSecure in interface ManageLocationsuserId - calling userlocationGUID - unique identifier of the metadata element to unclassifyInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void setLocationAsDigital(String userId, String locationGUID, String networkAddress) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
setLocationAsDigital in interface ManageLocationsuserId - calling userlocationGUID - unique identifier of the metadata element to classifynetworkAddress - position of the locationInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void clearLocationAsDigital(String userId, String locationGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
clearLocationAsDigital in interface ManageLocationsuserId - calling userlocationGUID - unique identifier of the metadata element to unclassifyInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void removeLocation(String userId, String locationGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
removeLocation in interface ManageLocationsuserId - calling userlocationGUID - unique identifier of the metadata element to removeInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void setupNestedLocation(String userId, String parentLocationGUID, String childLocationGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
setupNestedLocation in interface ManageLocationsuserId - calling userparentLocationGUID - unique identifier of the location that is the broader locationchildLocationGUID - unique identifier of the location that is the smaller, nested locationInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void clearNestedLocation(String userId, String parentLocationGUID, String childLocationGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
clearNestedLocation in interface ManageLocationsuserId - calling userparentLocationGUID - unique identifier of the location that is the broader locationchildLocationGUID - unique identifier of the location that is the smaller, nested locationInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void setupAdjacentLocation(String userId, String locationOneGUID, String locationTwoGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
setupAdjacentLocation in interface ManageLocationsuserId - calling userlocationOneGUID - unique identifier of the first locationlocationTwoGUID - unique identifier of the second locationInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void clearAdjacentLocation(String userId, String locationOneGUID, String locationTwoGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
clearAdjacentLocation in interface ManageLocationsuserId - calling userlocationOneGUID - unique identifier of the first locationlocationTwoGUID - unique identifier of the second locationInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public List<LocationElement> findLocations(String userId, String searchString, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
findLocations in interface ManageLocationsuserId - calling usersearchString - string to find in the propertiesstartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public List<LocationElement> getLocationsByName(String userId, String name, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getLocationsByName in interface ManageLocationsuserId - calling username - name to search forstartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public LocationElement getLocationByGUID(String userId, String locationGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getLocationByGUID in interface ManageLocationsuserId - calling userlocationGUID - unique identifier of the requested metadata elementInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.