|
|
|
@ -7,75 +7,75 @@ import javax.ws.rs.Path;
|
|
|
|
|
import javax.ws.rs.QueryParam;
|
|
|
|
|
import javax.ws.rs.core.Response;
|
|
|
|
|
|
|
|
|
|
@Path("/dashboard")
|
|
|
|
|
@Api(value = "Dashboard", description = "Dashboard related operations are described here.")
|
|
|
|
|
//@Path("/dashboard")
|
|
|
|
|
//@Api(value = "Dashboard", description = "Dashboard related operations are described here.")
|
|
|
|
|
@SuppressWarnings("NonJaxWsWebServices")
|
|
|
|
|
public interface Dashboard {
|
|
|
|
|
|
|
|
|
|
String CONNECTIVITY_STATUS = "connectivity-status";
|
|
|
|
|
String POTENTIAL_VULNERABILITY = "potential-vulnerability";
|
|
|
|
|
String NON_COMPLIANT_FEATURE_CODE = "non-compliant-feature-code";
|
|
|
|
|
String PLATFORM = "platform";
|
|
|
|
|
String OWNERSHIP = "ownership";
|
|
|
|
|
// Constants related to pagination
|
|
|
|
|
String PAGINATION_ENABLED = "pagination-enabled";
|
|
|
|
|
String START_INDEX = "start";
|
|
|
|
|
String RESULT_COUNT = "length";
|
|
|
|
|
|
|
|
|
|
@GET
|
|
|
|
|
@Path("device-count-overview")
|
|
|
|
|
Response getOverviewDeviceCounts();
|
|
|
|
|
|
|
|
|
|
@GET
|
|
|
|
|
@Path("device-counts-by-potential-vulnerabilities")
|
|
|
|
|
Response getDeviceCountsByPotentialVulnerabilities();
|
|
|
|
|
|
|
|
|
|
@GET
|
|
|
|
|
@Path("non-compliant-device-counts-by-features")
|
|
|
|
|
Response getNonCompliantDeviceCountsByFeatures(@QueryParam(START_INDEX) int startIndex,
|
|
|
|
|
@QueryParam(RESULT_COUNT) int resultCount);
|
|
|
|
|
|
|
|
|
|
@GET
|
|
|
|
|
@Path("device-counts-by-groups")
|
|
|
|
|
Response getDeviceCountsByGroups(@QueryParam(CONNECTIVITY_STATUS) String connectivityStatus,
|
|
|
|
|
@QueryParam(POTENTIAL_VULNERABILITY) String potentialVulnerability,
|
|
|
|
|
@QueryParam(PLATFORM) String platform,
|
|
|
|
|
@QueryParam(OWNERSHIP) String ownership);
|
|
|
|
|
|
|
|
|
|
@GET
|
|
|
|
|
@Path("feature-non-compliant-device-counts-by-groups")
|
|
|
|
|
Response getFeatureNonCompliantDeviceCountsByGroups(@QueryParam(NON_COMPLIANT_FEATURE_CODE) String nonCompliantFeatureCode,
|
|
|
|
|
@QueryParam(PLATFORM) String platform,
|
|
|
|
|
@QueryParam(OWNERSHIP) String ownership);
|
|
|
|
|
@GET
|
|
|
|
|
@Path("filtered-device-count-over-total")
|
|
|
|
|
Response getFilteredDeviceCountOverTotal(@QueryParam(CONNECTIVITY_STATUS) String connectivityStatus,
|
|
|
|
|
@QueryParam(POTENTIAL_VULNERABILITY) String potentialVulnerability,
|
|
|
|
|
@QueryParam(PLATFORM) String platform,
|
|
|
|
|
@QueryParam(OWNERSHIP) String ownership);
|
|
|
|
|
|
|
|
|
|
@GET
|
|
|
|
|
@Path("feature-non-compliant-device-count-over-total")
|
|
|
|
|
Response getFeatureNonCompliantDeviceCountOverTotal(@QueryParam(NON_COMPLIANT_FEATURE_CODE) String nonCompliantFeatureCode,
|
|
|
|
|
@QueryParam(PLATFORM) String platform,
|
|
|
|
|
@QueryParam(OWNERSHIP) String ownership);
|
|
|
|
|
|
|
|
|
|
@GET
|
|
|
|
|
@Path("devices-with-details")
|
|
|
|
|
Response getDevicesWithDetails(@QueryParam(CONNECTIVITY_STATUS) String connectivityStatus,
|
|
|
|
|
@QueryParam(POTENTIAL_VULNERABILITY) String potentialVulnerability,
|
|
|
|
|
@QueryParam(PLATFORM) String platform,
|
|
|
|
|
@QueryParam(OWNERSHIP) String ownership,
|
|
|
|
|
@QueryParam(PAGINATION_ENABLED) String paginationEnabled,
|
|
|
|
|
@QueryParam(START_INDEX) int startIndex,
|
|
|
|
|
@QueryParam(RESULT_COUNT) int resultCount);
|
|
|
|
|
|
|
|
|
|
@GET
|
|
|
|
|
@Path("feature-non-compliant-devices-with-details")
|
|
|
|
|
Response getFeatureNonCompliantDevicesWithDetails(@QueryParam(NON_COMPLIANT_FEATURE_CODE) String nonCompliantFeatureCode,
|
|
|
|
|
@QueryParam(PLATFORM) String platform,
|
|
|
|
|
@QueryParam(OWNERSHIP) String ownership,
|
|
|
|
|
@QueryParam(PAGINATION_ENABLED) String paginationEnabled,
|
|
|
|
|
@QueryParam(START_INDEX) int startIndex,
|
|
|
|
|
@QueryParam(RESULT_COUNT) int resultCount);
|
|
|
|
|
// String CONNECTIVITY_STATUS = "connectivity-status";
|
|
|
|
|
// String POTENTIAL_VULNERABILITY = "potential-vulnerability";
|
|
|
|
|
// String NON_COMPLIANT_FEATURE_CODE = "non-compliant-feature-code";
|
|
|
|
|
// String PLATFORM = "platform";
|
|
|
|
|
// String OWNERSHIP = "ownership";
|
|
|
|
|
// // Constants related to pagination
|
|
|
|
|
// String PAGINATION_ENABLED = "pagination-enabled";
|
|
|
|
|
// String START_INDEX = "start";
|
|
|
|
|
// String RESULT_COUNT = "length";
|
|
|
|
|
//
|
|
|
|
|
// @GET
|
|
|
|
|
// @Path("device-count-overview")
|
|
|
|
|
// Response getOverviewDeviceCounts();
|
|
|
|
|
//
|
|
|
|
|
// @GET
|
|
|
|
|
// @Path("device-counts-by-potential-vulnerabilities")
|
|
|
|
|
// Response getDeviceCountsByPotentialVulnerabilities();
|
|
|
|
|
//
|
|
|
|
|
// @GET
|
|
|
|
|
// @Path("non-compliant-device-counts-by-features")
|
|
|
|
|
// Response getNonCompliantDeviceCountsByFeatures(@QueryParam(START_INDEX) int startIndex,
|
|
|
|
|
// @QueryParam(RESULT_COUNT) int resultCount);
|
|
|
|
|
//
|
|
|
|
|
// @GET
|
|
|
|
|
// @Path("device-counts-by-groups")
|
|
|
|
|
// Response getDeviceCountsByGroups(@QueryParam(CONNECTIVITY_STATUS) String connectivityStatus,
|
|
|
|
|
// @QueryParam(POTENTIAL_VULNERABILITY) String potentialVulnerability,
|
|
|
|
|
// @QueryParam(PLATFORM) String platform,
|
|
|
|
|
// @QueryParam(OWNERSHIP) String ownership);
|
|
|
|
|
//
|
|
|
|
|
// @GET
|
|
|
|
|
// @Path("feature-non-compliant-device-counts-by-groups")
|
|
|
|
|
// Response getFeatureNonCompliantDeviceCountsByGroups(@QueryParam(NON_COMPLIANT_FEATURE_CODE) String nonCompliantFeatureCode,
|
|
|
|
|
// @QueryParam(PLATFORM) String platform,
|
|
|
|
|
// @QueryParam(OWNERSHIP) String ownership);
|
|
|
|
|
// @GET
|
|
|
|
|
// @Path("filtered-device-count-over-total")
|
|
|
|
|
// Response getFilteredDeviceCountOverTotal(@QueryParam(CONNECTIVITY_STATUS) String connectivityStatus,
|
|
|
|
|
// @QueryParam(POTENTIAL_VULNERABILITY) String potentialVulnerability,
|
|
|
|
|
// @QueryParam(PLATFORM) String platform,
|
|
|
|
|
// @QueryParam(OWNERSHIP) String ownership);
|
|
|
|
|
//
|
|
|
|
|
// @GET
|
|
|
|
|
// @Path("feature-non-compliant-device-count-over-total")
|
|
|
|
|
// Response getFeatureNonCompliantDeviceCountOverTotal(@QueryParam(NON_COMPLIANT_FEATURE_CODE) String nonCompliantFeatureCode,
|
|
|
|
|
// @QueryParam(PLATFORM) String platform,
|
|
|
|
|
// @QueryParam(OWNERSHIP) String ownership);
|
|
|
|
|
//
|
|
|
|
|
// @GET
|
|
|
|
|
// @Path("devices-with-details")
|
|
|
|
|
// Response getDevicesWithDetails(@QueryParam(CONNECTIVITY_STATUS) String connectivityStatus,
|
|
|
|
|
// @QueryParam(POTENTIAL_VULNERABILITY) String potentialVulnerability,
|
|
|
|
|
// @QueryParam(PLATFORM) String platform,
|
|
|
|
|
// @QueryParam(OWNERSHIP) String ownership,
|
|
|
|
|
// @QueryParam(PAGINATION_ENABLED) String paginationEnabled,
|
|
|
|
|
// @QueryParam(START_INDEX) int startIndex,
|
|
|
|
|
// @QueryParam(RESULT_COUNT) int resultCount);
|
|
|
|
|
//
|
|
|
|
|
// @GET
|
|
|
|
|
// @Path("feature-non-compliant-devices-with-details")
|
|
|
|
|
// Response getFeatureNonCompliantDevicesWithDetails(@QueryParam(NON_COMPLIANT_FEATURE_CODE) String nonCompliantFeatureCode,
|
|
|
|
|
// @QueryParam(PLATFORM) String platform,
|
|
|
|
|
// @QueryParam(OWNERSHIP) String ownership,
|
|
|
|
|
// @QueryParam(PAGINATION_ENABLED) String paginationEnabled,
|
|
|
|
|
// @QueryParam(START_INDEX) int startIndex,
|
|
|
|
|
// @QueryParam(RESULT_COUNT) int resultCount);
|
|
|
|
|
}
|
|
|
|
|