|
|
@ -1713,16 +1713,16 @@ public interface DeviceManagementService {
|
|
|
|
@Valid OperationRequest operationRequest);
|
|
|
|
@Valid OperationRequest operationRequest);
|
|
|
|
|
|
|
|
|
|
|
|
@GET
|
|
|
|
@GET
|
|
|
|
@Path("/status/count/{tenantDomain}/{type}/{status}")
|
|
|
|
@Path("/type/{type}/status/{status}/count")
|
|
|
|
@ApiOperation(
|
|
|
|
@ApiOperation(
|
|
|
|
produces = MediaType.APPLICATION_JSON,
|
|
|
|
produces = MediaType.APPLICATION_JSON,
|
|
|
|
httpMethod = "GET",
|
|
|
|
httpMethod = "GET",
|
|
|
|
value = "Get Device Count with status",
|
|
|
|
value = "Get Device Count with status",
|
|
|
|
notes = "Get specified device count with status.",
|
|
|
|
notes = "Get specified device count with type and status.",
|
|
|
|
tags = "Device Management",
|
|
|
|
tags = "Device Management",
|
|
|
|
extensions = {
|
|
|
|
extensions = {
|
|
|
|
@Extension(properties = {
|
|
|
|
@Extension(properties = {
|
|
|
|
@ExtensionProperty(name = Constants.SCOPE, value = "perm:devices:details")
|
|
|
|
@ExtensionProperty(name = Constants.SCOPE, value = "perm:devices:view")
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
)
|
|
|
|
)
|
|
|
@ -1730,7 +1730,7 @@ public interface DeviceManagementService {
|
|
|
|
value = {
|
|
|
|
value = {
|
|
|
|
@ApiResponse(
|
|
|
|
@ApiResponse(
|
|
|
|
code = 200,
|
|
|
|
code = 200,
|
|
|
|
message = "OK. \n Successfully fetched the details of the device.",
|
|
|
|
message = "OK. \n Successfully fetched the count of matching devices.",
|
|
|
|
response = int.class,
|
|
|
|
response = int.class,
|
|
|
|
responseHeaders = {
|
|
|
|
responseHeaders = {
|
|
|
|
@ResponseHeader(
|
|
|
|
@ResponseHeader(
|
|
|
@ -1764,13 +1764,6 @@ public interface DeviceManagementService {
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
Response getDeviceCountByStatus(
|
|
|
|
Response getDeviceCountByStatus(
|
|
|
|
@ApiParam(
|
|
|
|
|
|
|
|
name = "tenantDomain",
|
|
|
|
|
|
|
|
value = "The tenant doamin.",
|
|
|
|
|
|
|
|
required = true)
|
|
|
|
|
|
|
|
@PathParam("tenantDomain")
|
|
|
|
|
|
|
|
@Size(max = 45)
|
|
|
|
|
|
|
|
String tenantDomain,
|
|
|
|
|
|
|
|
@ApiParam(
|
|
|
|
@ApiParam(
|
|
|
|
name = "type",
|
|
|
|
name = "type",
|
|
|
|
value = "The device type name, such as ios, android, windows or fire-alarm.",
|
|
|
|
value = "The device type name, such as ios, android, windows or fire-alarm.",
|
|
|
@ -1788,17 +1781,16 @@ public interface DeviceManagementService {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@GET
|
|
|
|
@GET
|
|
|
|
@Path("/status/ids/{tenantDomain}/{type}/{status}")
|
|
|
|
@Path("/type/{type}/status/{status}/ids")
|
|
|
|
@ApiOperation(
|
|
|
|
@ApiOperation(
|
|
|
|
produces = MediaType.APPLICATION_JSON,
|
|
|
|
produces = MediaType.APPLICATION_JSON,
|
|
|
|
httpMethod = "GET",
|
|
|
|
httpMethod = "GET",
|
|
|
|
value = "Getting Details of a Device",
|
|
|
|
value = "Getting ids of devices with specified type and status",
|
|
|
|
notes = "Get the details of a device by specifying the device type and device identifier and optionally " +
|
|
|
|
notes = "Get the ids of a device by specifying the device type and status.",
|
|
|
|
"the owner.",
|
|
|
|
|
|
|
|
tags = "Device Management",
|
|
|
|
tags = "Device Management",
|
|
|
|
extensions = {
|
|
|
|
extensions = {
|
|
|
|
@Extension(properties = {
|
|
|
|
@Extension(properties = {
|
|
|
|
@ExtensionProperty(name = Constants.SCOPE, value = "perm:devices:details")
|
|
|
|
@ExtensionProperty(name = Constants.SCOPE, value = "perm:devices:view")
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
)
|
|
|
|
)
|
|
|
@ -1840,13 +1832,6 @@ public interface DeviceManagementService {
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
Response getDeviceIdentifiersByStatus(
|
|
|
|
Response getDeviceIdentifiersByStatus(
|
|
|
|
@ApiParam(
|
|
|
|
|
|
|
|
name = "tenantDomain",
|
|
|
|
|
|
|
|
value = "The tenant domain.",
|
|
|
|
|
|
|
|
required = true)
|
|
|
|
|
|
|
|
@PathParam("tenantDomain")
|
|
|
|
|
|
|
|
@Size(max = 45)
|
|
|
|
|
|
|
|
String tenantDomain,
|
|
|
|
|
|
|
|
@ApiParam(
|
|
|
|
@ApiParam(
|
|
|
|
name = "type",
|
|
|
|
name = "type",
|
|
|
|
value = "The device type name, such as ios, android, windows or fire-alarm.",
|
|
|
|
value = "The device type name, such as ios, android, windows or fire-alarm.",
|
|
|
@ -1863,7 +1848,7 @@ public interface DeviceManagementService {
|
|
|
|
String status);
|
|
|
|
String status);
|
|
|
|
|
|
|
|
|
|
|
|
@PUT
|
|
|
|
@PUT
|
|
|
|
@Path("/status/update/{tenantDomain}/{type}/{status}")
|
|
|
|
@Path("/type/{type}/status/{status}")
|
|
|
|
@ApiOperation(
|
|
|
|
@ApiOperation(
|
|
|
|
produces = MediaType.APPLICATION_JSON,
|
|
|
|
produces = MediaType.APPLICATION_JSON,
|
|
|
|
consumes = MediaType.APPLICATION_JSON,
|
|
|
|
consumes = MediaType.APPLICATION_JSON,
|
|
|
@ -1915,8 +1900,6 @@ public interface DeviceManagementService {
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
Response bulkUpdateDeviceStatus(
|
|
|
|
Response bulkUpdateDeviceStatus(
|
|
|
|
@ApiParam(name = "tenantDomain", value = "The tenant domain.", required = true)
|
|
|
|
|
|
|
|
@PathParam("tenantDomain") String tenantDomain,
|
|
|
|
|
|
|
|
@ApiParam(name = "type", value = "The device type, such as ios, android or windows.", required = true)
|
|
|
|
@ApiParam(name = "type", value = "The device type, such as ios, android or windows.", required = true)
|
|
|
|
@PathParam("type") String type,
|
|
|
|
@PathParam("type") String type,
|
|
|
|
@ApiParam(name = "status", value = "The device type, such as ios, android or windows.", required = true)
|
|
|
|
@ApiParam(name = "status", value = "The device type, such as ios, android or windows.", required = true)
|
|
|
|