public class RegistrationStatusManager extends Object
This is the inner class that implements the Registration Status APIs.
For the exposed API, please see ProvisioningServiceClient.
| Modifier and Type | Method and Description |
|---|---|
Query |
createEnrollmentGroupQuery(QuerySpecification querySpecification,
String enrollmentGroupId,
int pageSize)
Create a new registration status query for enrollmentGroup.
|
static RegistrationStatusManager |
createFromContractApiHttp(ContractApiHttp contractApiHttp)
Create a new instance of the RegistrationStatusManager using the provided connection
string and https as the transport protocol.
|
void |
delete(DeviceRegistrationState DeviceRegistrationState)
Delete registration status.
|
void |
delete(String id,
String eTag)
Delete registration status.
|
DeviceRegistrationState |
get(String id)
Get device registration status information.
|
public static RegistrationStatusManager createFromContractApiHttp(ContractApiHttp contractApiHttp)
contractApiHttp - is the class that cares the Http connection.RegistrationStatusManager with the new instance of this class.IllegalArgumentException - if the ContractApiHttp is null.public DeviceRegistrationState get(String id) throws ProvisioningServiceClientException
id - the String that identifies the registration status. It cannot be null or empty.DeviceRegistrationState with the registration status information.IllegalArgumentException - if the provided parameter is not correct.ProvisioningServiceClientTransportException - if the SDK failed to send the request to the Device Provisioning Service.ProvisioningServiceClientException - if the Device Provisioning Service was not able to execute the bulk operation.ProvisioningServiceClient.getDeviceRegistrationState(String)public void delete(DeviceRegistrationState DeviceRegistrationState) throws ProvisioningServiceClientException
DeviceRegistrationState - is a DeviceRegistrationState that describes the registration status
that will be deleted. It cannot be null.IllegalArgumentException - if the provided parameter is not correct.ProvisioningServiceClientTransportException - if the SDK failed to send the request to the Device Provisioning Service.ProvisioningServiceClientException - if the Device Provisioning Service was not able to execute the delete operation.ProvisioningServiceClient.deleteDeviceRegistrationStatus(DeviceRegistrationState)public void delete(String id, String eTag) throws ProvisioningServiceClientException
id - is a String with the identification of the registration status to delete. It cannot be null or empty.eTag - is a String with the eTag of the enrollment to delete. It can be null or empty (ignored).IllegalArgumentException - if the provided id is not correct.ProvisioningServiceClientTransportException - if the SDK failed to send the request to the Device Provisioning Service.ProvisioningServiceClientException - if the Device Provisioning Service was not able to execute the bulk operation.ProvisioningServiceClient.deleteDeviceRegistrationStatus(String),
ProvisioningServiceClient.deleteDeviceRegistrationStatus(String, String)public Query createEnrollmentGroupQuery(QuerySpecification querySpecification, String enrollmentGroupId, int pageSize)
querySpecification - is a String with the SQL query specification. It cannot be null.enrollmentGroupId - is a String with the enrollmentGroupId of the enrollmentGroup to delete. It cannot be null or empty.pageSize - the int with the maximum number of items per iteration. It can be 0 for default, but not negative.Query iterator.IllegalArgumentException - if the provided parameter is not correct.ProvisioningServiceClient.createEnrollmentGroupRegistrationStatusQuery(QuerySpecification, String),
ProvisioningServiceClient.createEnrollmentGroupRegistrationStatusQuery(QuerySpecification, String, int)Copyright © 2021. All rights reserved.