public class LocationRESTServices extends Object
| Constructor and Description |
|---|
LocationRESTServices()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
VoidResponse |
clearAdjacentLocation(String serverName,
String userId,
String locationOneGUID,
String locationTwoGUID,
NullRequestBody requestBody)
Remove a peer-to-peer relationship between two locations.
|
VoidResponse |
clearLocationAsDigital(String serverName,
String userId,
String locationGUID,
NullRequestBody requestBody)
Remove the digital/cyber location designation from the location.
|
VoidResponse |
clearLocationAsFixedPhysical(String serverName,
String userId,
String locationGUID,
NullRequestBody requestBody)
Remove the fixed physical location designation from the location.
|
VoidResponse |
clearLocationAsSecure(String serverName,
String userId,
String locationGUID,
NullRequestBody requestBody)
Remove the secure location designation from the location.
|
VoidResponse |
clearNestedLocation(String serverName,
String userId,
String parentLocationGUID,
String childLocationGUID,
NullRequestBody requestBody)
Remove a parent-child relationship between two locations.
|
GUIDResponse |
createLocation(String serverName,
String userId,
LocationProperties locationProperties)
Create a new metadata element to represent a location.
|
GUIDResponse |
createLocationFromTemplate(String serverName,
String userId,
String templateGUID,
TemplateProperties templateProperties)
Create a new metadata element to represent a location using an existing metadata element as a template.
|
LocationsResponse |
findLocations(String serverName,
String userId,
SearchStringRequestBody requestBody,
int startFrom,
int pageSize)
Retrieve the list of location metadata elements that contain the search string.
|
LocationResponse |
getLocationByGUID(String serverName,
String userId,
String locationGUID)
Retrieve the location metadata element with the supplied unique identifier.
|
LocationsResponse |
getLocationsByName(String serverName,
String userId,
NameRequestBody requestBody,
int startFrom,
int pageSize)
Retrieve the list of location metadata elements with a matching qualified or display name.
|
VoidResponse |
removeLocation(String serverName,
String userId,
String locationGUID,
NullRequestBody requestBody)
Remove the metadata element representing a location.
|
VoidResponse |
setLocationAsDigital(String serverName,
String userId,
String locationGUID,
DigitalLocationRequestBody requestBody)
Classify the location to indicate that it represents a digital/cyber location.
|
VoidResponse |
setLocationAsFixedPhysical(String serverName,
String userId,
String locationGUID,
FixedLocationRequestBody requestBody)
Classify the location to indicate that it represents a fixed physical location.
|
VoidResponse |
setLocationAsSecure(String serverName,
String userId,
String locationGUID,
SecureLocationRequestBody requestBody)
Classify the location to indicate that it represents a secure location.
|
VoidResponse |
setupAdjacentLocation(String serverName,
String userId,
String locationOneGUID,
String locationTwoGUID,
NullRequestBody requestBody)
Create a peer-to-peer relationship between two locations.
|
VoidResponse |
setupNestedLocation(String serverName,
String userId,
String parentLocationGUID,
String childLocationGUID,
NullRequestBody requestBody)
Create a parent-child relationship between two locations.
|
VoidResponse |
updateLocation(String serverName,
String userId,
String locationGUID,
LocationProperties locationProperties)
Update the metadata element representing a location.
|
public GUIDResponse createLocation(String serverName, String userId, LocationProperties locationProperties)
serverName - name of calling serveruserId - calling userlocationProperties - properties to storepublic GUIDResponse createLocationFromTemplate(String serverName, String userId, String templateGUID, TemplateProperties templateProperties)
serverName - name of calling serveruserId - calling usertemplateGUID - unique identifier of the metadata element to copytemplateProperties - properties that override the templatepublic VoidResponse updateLocation(String serverName, String userId, String locationGUID, LocationProperties locationProperties)
serverName - name of calling serveruserId - calling userlocationGUID - unique identifier of the metadata element to updatelocationProperties - new properties for this elementpublic VoidResponse setLocationAsFixedPhysical(String serverName, String userId, String locationGUID, FixedLocationRequestBody requestBody)
serverName - name of calling serveruserId - calling userlocationGUID - unique identifier of the metadata element to classifyrequestBody - properties of the locationpublic VoidResponse clearLocationAsFixedPhysical(String serverName, String userId, String locationGUID, NullRequestBody requestBody)
serverName - name of calling serveruserId - calling userlocationGUID - unique identifier of the metadata element to unclassifyrequestBody - null request bodypublic VoidResponse setLocationAsSecure(String serverName, String userId, String locationGUID, SecureLocationRequestBody requestBody)
serverName - name of calling serveruserId - calling userlocationGUID - unique identifier of the metadata element to classifyrequestBody - properties of the locationpublic VoidResponse clearLocationAsSecure(String serverName, String userId, String locationGUID, NullRequestBody requestBody)
serverName - name of calling serveruserId - calling userlocationGUID - unique identifier of the metadata element to unclassifyrequestBody - null request bodypublic VoidResponse setLocationAsDigital(String serverName, String userId, String locationGUID, DigitalLocationRequestBody requestBody)
serverName - name of calling serveruserId - calling userlocationGUID - unique identifier of the metadata element to classifyrequestBody - position of the locationpublic VoidResponse clearLocationAsDigital(String serverName, String userId, String locationGUID, NullRequestBody requestBody)
serverName - name of calling serveruserId - calling userlocationGUID - unique identifier of the metadata element to unclassifyrequestBody - null request bodypublic VoidResponse removeLocation(String serverName, String userId, String locationGUID, NullRequestBody requestBody)
serverName - name of calling serveruserId - calling userlocationGUID - unique identifier of the metadata element to removerequestBody - null request bodypublic VoidResponse setupNestedLocation(String serverName, String userId, String parentLocationGUID, String childLocationGUID, NullRequestBody requestBody)
serverName - name of calling serveruserId - calling userparentLocationGUID - unique identifier of the location that is the broader locationchildLocationGUID - unique identifier of the location that is the smaller, nested locationrequestBody - null request bodypublic VoidResponse clearNestedLocation(String serverName, String userId, String parentLocationGUID, String childLocationGUID, NullRequestBody requestBody)
serverName - name of calling serveruserId - calling userparentLocationGUID - unique identifier of the location that is the broader locationchildLocationGUID - unique identifier of the location that is the smaller, nested locationrequestBody - null request bodypublic VoidResponse setupAdjacentLocation(String serverName, String userId, String locationOneGUID, String locationTwoGUID, NullRequestBody requestBody)
serverName - name of calling serveruserId - calling userlocationOneGUID - unique identifier of the first locationlocationTwoGUID - unique identifier of the second locationrequestBody - null request bodypublic VoidResponse clearAdjacentLocation(String serverName, String userId, String locationOneGUID, String locationTwoGUID, NullRequestBody requestBody)
serverName - name of calling serveruserId - calling userlocationOneGUID - unique identifier of the first locationlocationTwoGUID - unique identifier of the second locationrequestBody - null request bodypublic LocationsResponse findLocations(String serverName, String userId, SearchStringRequestBody requestBody, int startFrom, int pageSize)
serverName - name of calling serveruserId - calling userrequestBody - string to find in the propertiesstartFrom - paging start pointpageSize - maximum results that can be returnedpublic LocationsResponse getLocationsByName(String serverName, String userId, NameRequestBody requestBody, int startFrom, int pageSize)
serverName - name of calling serveruserId - calling userrequestBody - name to search forstartFrom - paging start pointpageSize - maximum results that can be returnedpublic LocationResponse getLocationByGUID(String serverName, String userId, String locationGUID)
serverName - name of calling serveruserId - calling userlocationGUID - unique identifier of the requested metadata elementCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.