public class DeviceVariablesService extends Object
Modifier and Type | Method and Description |
---|---|
BackOfficeDeviceVariable |
create(CreateDeviceVariableRequest request)
Creates a new device variable.
|
void |
delete(Long id)
Deletes the device variable.
|
BackOfficeDeviceVariable |
get(Long id)
Retrieves device variable data.
|
List<BackOfficeDeviceVariable> |
paginate(SearchDeviceVariablesRequest request)
Goes through all pages of the search device variables response and returns a list with all possible device variables
that satisfy the request.
|
SearchResult<BackOfficeDeviceVariable> |
search(SearchDeviceVariablesRequest request)
Searches through all device variables and returns the search result which contains all
device variables that satisfy the request queries.
|
BackOfficeDeviceVariable |
update(Long id,
UpdateDeviceVariableRequest request)
Updates the device variable.
|
public SearchResult<BackOfficeDeviceVariable> search(SearchDeviceVariablesRequest request) throws com.licensespring.model.exceptions.LicenseSpringException
request
- search request that can be made using the builder methodcom.licensespring.model.exceptions.LicenseSpringException
public BackOfficeDeviceVariable get(Long id) throws com.licensespring.model.exceptions.LicenseSpringException
id
- id of the device variable that needs to be fetchedcom.licensespring.model.exceptions.LicenseSpringException
public BackOfficeDeviceVariable create(CreateDeviceVariableRequest request) throws com.licensespring.model.exceptions.LicenseSpringException
request
- use builder for constructingcom.licensespring.model.exceptions.LicenseSpringException
public BackOfficeDeviceVariable update(Long id, UpdateDeviceVariableRequest request) throws com.licensespring.model.exceptions.LicenseSpringException
id
- id of the device variable that needs an updaterequest
- use builder for constructing, fill only fields that you want to updatecom.licensespring.model.exceptions.LicenseSpringException
public void delete(Long id) throws com.licensespring.model.exceptions.LicenseSpringException
id
- id of the device variable that needs to be deletedcom.licensespring.model.exceptions.LicenseSpringException
public List<BackOfficeDeviceVariable> paginate(SearchDeviceVariablesRequest request) throws com.licensespring.model.exceptions.LicenseSpringException
search(SearchDeviceVariablesRequest)
in order to get results per page.request
- can be made with builder, contains query fieldscom.licensespring.model.exceptions.LicenseSpringException
Copyright © 2023 Cense Data Inc.. All rights reserved.