forked from community/device-mgt-core
Merge branch 'master' of https://github.com/wso2/carbon-device-mgt
commit
ce5d63925a
@ -1,81 +1,118 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
|
||||||
|
*
|
||||||
|
* WSO2 Inc. licenses this file to you under the Apache License,
|
||||||
|
* Version 2.0 (the "License"); you may not use this file except
|
||||||
|
* in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing,
|
||||||
|
* software distributed under the License is distributed on an
|
||||||
|
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
* KIND, either express or implied. See the License for the
|
||||||
|
* specific language governing permissions and limitations
|
||||||
|
* under the License.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
package org.wso2.carbon.device.mgt.jaxrs.service.api;
|
package org.wso2.carbon.device.mgt.jaxrs.service.api;
|
||||||
|
|
||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
|
import org.wso2.carbon.apimgt.annotations.api.API;
|
||||||
|
import org.wso2.carbon.apimgt.annotations.api.Permission;
|
||||||
|
|
||||||
import javax.ws.rs.GET;
|
import javax.ws.rs.*;
|
||||||
import javax.ws.rs.Path;
|
import javax.ws.rs.core.MediaType;
|
||||||
import javax.ws.rs.QueryParam;
|
|
||||||
import javax.ws.rs.core.Response;
|
import javax.ws.rs.core.Response;
|
||||||
|
|
||||||
//@Path("/dashboard")
|
/**
|
||||||
//@Api(value = "Dashboard", description = "Dashboard related operations are described here.")
|
* Device Analytics Dashboard related REST-APIs. This can be used to obtain device related analytics.
|
||||||
|
*/
|
||||||
|
@API(name = "Device Analytics Dashboard",
|
||||||
|
version = "1.0.0", context = "/api/device-mgt/v1.0/dashboard", tags = {"devicemgt_admin"})
|
||||||
|
|
||||||
|
@Path("/dashboard")
|
||||||
|
@Api(value = "Device Analytics Dashboard",
|
||||||
|
description = "Device Analytics Dashboard related information APIs are described here.")
|
||||||
|
@Produces(MediaType.APPLICATION_JSON)
|
||||||
@SuppressWarnings("NonJaxWsWebServices")
|
@SuppressWarnings("NonJaxWsWebServices")
|
||||||
public interface Dashboard {
|
public interface Dashboard {
|
||||||
|
|
||||||
// String CONNECTIVITY_STATUS = "connectivity-status";
|
String CONNECTIVITY_STATUS = "connectivity-status";
|
||||||
// String POTENTIAL_VULNERABILITY = "potential-vulnerability";
|
String POTENTIAL_VULNERABILITY = "potential-vulnerability";
|
||||||
// String NON_COMPLIANT_FEATURE_CODE = "non-compliant-feature-code";
|
String NON_COMPLIANT_FEATURE_CODE = "non-compliant-feature-code";
|
||||||
// String PLATFORM = "platform";
|
String PLATFORM = "platform";
|
||||||
// String OWNERSHIP = "ownership";
|
String OWNERSHIP = "ownership";
|
||||||
// // Constants related to pagination
|
// Constants related to pagination
|
||||||
// String PAGINATION_ENABLED = "pagination-enabled";
|
String PAGINATION_ENABLED = "pagination-enabled";
|
||||||
// String START_INDEX = "start";
|
String START_INDEX = "start";
|
||||||
// String RESULT_COUNT = "length";
|
String RESULT_COUNT = "length";
|
||||||
//
|
|
||||||
// @GET
|
@GET
|
||||||
// @Path("device-count-overview")
|
@Path("device-count-overview")
|
||||||
// Response getOverviewDeviceCounts();
|
@Permission(name = "View Dashboard", permission = "/device-mgt/dashboard/view")
|
||||||
//
|
Response getOverviewDeviceCounts();
|
||||||
// @GET
|
|
||||||
// @Path("device-counts-by-potential-vulnerabilities")
|
@GET
|
||||||
// Response getDeviceCountsByPotentialVulnerabilities();
|
@Path("device-counts-by-potential-vulnerabilities")
|
||||||
//
|
@Permission(name = "View Dashboard", permission = "/device-mgt/dashboard/view")
|
||||||
// @GET
|
Response getDeviceCountsByPotentialVulnerabilities();
|
||||||
// @Path("non-compliant-device-counts-by-features")
|
|
||||||
// Response getNonCompliantDeviceCountsByFeatures(@QueryParam(START_INDEX) int startIndex,
|
@GET
|
||||||
// @QueryParam(RESULT_COUNT) int resultCount);
|
@Path("non-compliant-device-counts-by-features")
|
||||||
//
|
@Permission(name = "View Dashboard", permission = "/device-mgt/dashboard/view")
|
||||||
// @GET
|
Response getNonCompliantDeviceCountsByFeatures(@QueryParam(START_INDEX) int startIndex,
|
||||||
// @Path("device-counts-by-groups")
|
@QueryParam(RESULT_COUNT) int resultCount);
|
||||||
// Response getDeviceCountsByGroups(@QueryParam(CONNECTIVITY_STATUS) String connectivityStatus,
|
|
||||||
// @QueryParam(POTENTIAL_VULNERABILITY) String potentialVulnerability,
|
@GET
|
||||||
// @QueryParam(PLATFORM) String platform,
|
@Path("device-counts-by-groups")
|
||||||
// @QueryParam(OWNERSHIP) String ownership);
|
@Permission(name = "View Dashboard", permission = "/device-mgt/dashboard/view")
|
||||||
//
|
Response getDeviceCountsByGroups(@QueryParam(CONNECTIVITY_STATUS) String connectivityStatus,
|
||||||
// @GET
|
@QueryParam(POTENTIAL_VULNERABILITY) String potentialVulnerability,
|
||||||
// @Path("feature-non-compliant-device-counts-by-groups")
|
@QueryParam(PLATFORM) String platform,
|
||||||
// Response getFeatureNonCompliantDeviceCountsByGroups(@QueryParam(NON_COMPLIANT_FEATURE_CODE) String nonCompliantFeatureCode,
|
@QueryParam(OWNERSHIP) String ownership);
|
||||||
// @QueryParam(PLATFORM) String platform,
|
|
||||||
// @QueryParam(OWNERSHIP) String ownership);
|
@GET
|
||||||
// @GET
|
@Path("feature-non-compliant-device-counts-by-groups")
|
||||||
// @Path("filtered-device-count-over-total")
|
@Permission(name = "View Dashboard", permission = "/device-mgt/dashboard/view")
|
||||||
// Response getFilteredDeviceCountOverTotal(@QueryParam(CONNECTIVITY_STATUS) String connectivityStatus,
|
Response getFeatureNonCompliantDeviceCountsByGroups(@QueryParam(NON_COMPLIANT_FEATURE_CODE) String nonCompliantFeatureCode,
|
||||||
// @QueryParam(POTENTIAL_VULNERABILITY) String potentialVulnerability,
|
@QueryParam(PLATFORM) String platform,
|
||||||
// @QueryParam(PLATFORM) String platform,
|
@QueryParam(OWNERSHIP) String ownership);
|
||||||
// @QueryParam(OWNERSHIP) String ownership);
|
@GET
|
||||||
//
|
@Path("filtered-device-count-over-total")
|
||||||
// @GET
|
@Permission(name = "View Dashboard", permission = "/device-mgt/dashboard/view")
|
||||||
// @Path("feature-non-compliant-device-count-over-total")
|
Response getFilteredDeviceCountOverTotal(@QueryParam(CONNECTIVITY_STATUS) String connectivityStatus,
|
||||||
// Response getFeatureNonCompliantDeviceCountOverTotal(@QueryParam(NON_COMPLIANT_FEATURE_CODE) String nonCompliantFeatureCode,
|
@QueryParam(POTENTIAL_VULNERABILITY) String potentialVulnerability,
|
||||||
// @QueryParam(PLATFORM) String platform,
|
@QueryParam(PLATFORM) String platform,
|
||||||
// @QueryParam(OWNERSHIP) String ownership);
|
@QueryParam(OWNERSHIP) String ownership);
|
||||||
//
|
|
||||||
// @GET
|
@GET
|
||||||
// @Path("devices-with-details")
|
@Path("feature-non-compliant-device-count-over-total")
|
||||||
// Response getDevicesWithDetails(@QueryParam(CONNECTIVITY_STATUS) String connectivityStatus,
|
@Permission(name = "View Dashboard", permission = "/device-mgt/dashboard/view")
|
||||||
// @QueryParam(POTENTIAL_VULNERABILITY) String potentialVulnerability,
|
Response getFeatureNonCompliantDeviceCountOverTotal(@QueryParam(NON_COMPLIANT_FEATURE_CODE) String nonCompliantFeatureCode,
|
||||||
// @QueryParam(PLATFORM) String platform,
|
@QueryParam(PLATFORM) String platform,
|
||||||
// @QueryParam(OWNERSHIP) String ownership,
|
@QueryParam(OWNERSHIP) String ownership);
|
||||||
// @QueryParam(PAGINATION_ENABLED) String paginationEnabled,
|
|
||||||
// @QueryParam(START_INDEX) int startIndex,
|
@GET
|
||||||
// @QueryParam(RESULT_COUNT) int resultCount);
|
@Path("devices-with-details")
|
||||||
//
|
@Permission(name = "View Dashboard", permission = "/device-mgt/dashboard/view")
|
||||||
// @GET
|
Response getDevicesWithDetails(@QueryParam(CONNECTIVITY_STATUS) String connectivityStatus,
|
||||||
// @Path("feature-non-compliant-devices-with-details")
|
@QueryParam(POTENTIAL_VULNERABILITY) String potentialVulnerability,
|
||||||
// Response getFeatureNonCompliantDevicesWithDetails(@QueryParam(NON_COMPLIANT_FEATURE_CODE) String nonCompliantFeatureCode,
|
@QueryParam(PLATFORM) String platform,
|
||||||
// @QueryParam(PLATFORM) String platform,
|
@QueryParam(OWNERSHIP) String ownership,
|
||||||
// @QueryParam(OWNERSHIP) String ownership,
|
@QueryParam(PAGINATION_ENABLED) String paginationEnabled,
|
||||||
// @QueryParam(PAGINATION_ENABLED) String paginationEnabled,
|
@QueryParam(START_INDEX) int startIndex,
|
||||||
// @QueryParam(START_INDEX) int startIndex,
|
@QueryParam(RESULT_COUNT) int resultCount);
|
||||||
// @QueryParam(RESULT_COUNT) int resultCount);
|
|
||||||
|
@GET
|
||||||
|
@Path("feature-non-compliant-devices-with-details")
|
||||||
|
@Permission(name = "View Dashboard", permission = "/device-mgt/dashboard/view")
|
||||||
|
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);
|
||||||
}
|
}
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue