public class DeviceMgtAPIUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static javax.ws.rs.core.MediaType |
DEFAULT_CONTENT_TYPE |
| Constructor and Description |
|---|
DeviceMgtAPIUtils() |
| Modifier and Type | Method and Description |
|---|---|
static org.wso2.carbon.device.mgt.core.app.mgt.ApplicationManagementProviderService |
getAppManagementService() |
static org.wso2.carbon.user.api.AuthorizationManager |
getAuthorizationManager() |
static org.wso2.carbon.certificate.mgt.core.service.CertificateManagementService |
getCertificateManagementService() |
static org.wso2.carbon.device.mgt.core.device.details.mgt.DeviceInformationManager |
getDeviceInformationManagerService() |
static org.wso2.carbon.device.mgt.core.service.DeviceManagementProviderService |
getDeviceManagementService() |
static org.wso2.carbon.device.mgt.core.service.GroupManagementProviderService |
getGroupManagementProviderService() |
static org.wso2.carbon.device.mgt.common.notification.mgt.NotificationManagementService |
getNotificationManagementService() |
static int |
getNotifierFrequency(org.wso2.carbon.device.mgt.common.configuration.mgt.TenantConfiguration tenantConfiguration) |
static org.wso2.carbon.device.mgt.common.PaginationResult |
getPagingResponse(int recordsTotal,
int recordsFiltered,
int draw,
List<?> data) |
static org.wso2.carbon.policy.mgt.core.PolicyManagerService |
getPolicyManagementService() |
static javax.ws.rs.core.MediaType |
getResponseMediaType(String acceptHeader) |
static org.wso2.carbon.device.mgt.core.search.mgt.SearchManagerService |
getSearchManagerService() |
static org.wso2.carbon.device.mgt.common.configuration.mgt.TenantConfigurationManagementService |
getTenantConfigurationManagementService() |
static int |
getTenantId()
This method is used to get the current tenant id.
|
static int |
getTenantId(String tenantDomain) |
static org.wso2.carbon.user.api.UserRealm |
getUserRealm()
Getting the current tenant's user realm
|
static org.wso2.carbon.user.api.UserStoreManager |
getUserStoreManager() |
static org.wso2.carbon.device.mgt.common.DeviceIdentifier |
instantiateDeviceIdentifier(String deviceType,
String deviceId) |
static void |
scheduleTaskService(int notifierFrequency) |
public static final javax.ws.rs.core.MediaType DEFAULT_CONTENT_TYPE
public static int getNotifierFrequency(org.wso2.carbon.device.mgt.common.configuration.mgt.TenantConfiguration tenantConfiguration)
public static void scheduleTaskService(int notifierFrequency)
public static org.wso2.carbon.device.mgt.core.service.DeviceManagementProviderService getDeviceManagementService()
public static org.wso2.carbon.device.mgt.core.service.GroupManagementProviderService getGroupManagementProviderService()
public static int getTenantId(String tenantDomain) throws MDMAPIException
MDMAPIExceptionpublic static org.wso2.carbon.user.api.UserStoreManager getUserStoreManager()
throws MDMAPIException
MDMAPIExceptionpublic static org.wso2.carbon.user.api.UserRealm getUserRealm()
throws MDMAPIException
MDMAPIExceptionpublic static org.wso2.carbon.user.api.AuthorizationManager getAuthorizationManager()
throws MDMAPIException
MDMAPIExceptionpublic static int getTenantId()
public static org.wso2.carbon.device.mgt.common.DeviceIdentifier instantiateDeviceIdentifier(String deviceType, String deviceId)
public static org.wso2.carbon.device.mgt.core.app.mgt.ApplicationManagementProviderService getAppManagementService()
public static org.wso2.carbon.policy.mgt.core.PolicyManagerService getPolicyManagementService()
public static org.wso2.carbon.device.mgt.common.configuration.mgt.TenantConfigurationManagementService getTenantConfigurationManagementService()
public static org.wso2.carbon.device.mgt.common.notification.mgt.NotificationManagementService getNotificationManagementService()
public static org.wso2.carbon.device.mgt.common.PaginationResult getPagingResponse(int recordsTotal,
int recordsFiltered,
int draw,
List<?> data)
public static org.wso2.carbon.certificate.mgt.core.service.CertificateManagementService getCertificateManagementService()
public static javax.ws.rs.core.MediaType getResponseMediaType(String acceptHeader)
public static org.wso2.carbon.device.mgt.core.device.details.mgt.DeviceInformationManager getDeviceInformationManagerService()
public static org.wso2.carbon.device.mgt.core.search.mgt.SearchManagerService getSearchManagerService()
Copyright © 2016 WSO2. All rights reserved.