public class WindowsAPIUtils extends Object
| Constructor and Description |
|---|
WindowsAPIUtils() |
| Modifier and Type | Method and Description |
|---|---|
static org.wso2.carbon.device.mgt.common.DeviceIdentifier |
convertToDeviceIdentifierObject(String deviceId) |
static org.wso2.carbon.webapp.authenticator.framework.config.AuthenticatorConfig |
getBSTAuthenticatorConfig() |
static org.wso2.carbon.device.mgt.core.service.DeviceManagementProviderService |
getDeviceManagementService() |
static org.wso2.carbon.device.mgt.common.notification.mgt.NotificationManagementService |
getNotificationManagementService() |
static org.wso2.carbon.identity.oauth2.OAuth2TokenValidationService |
getOAuth2TokenValidationService() |
static javax.ws.rs.core.Response |
getOperationResponse(List<String> deviceIDs,
org.wso2.carbon.device.mgt.common.operation.mgt.Operation operation) |
static List<? extends org.wso2.carbon.device.mgt.common.operation.mgt.Operation> |
getPendingOperations(org.wso2.carbon.device.mgt.common.DeviceIdentifier deviceIdentifier) |
static org.wso2.carbon.policy.mgt.core.PolicyManagerService |
getPolicyManagerService() |
static javax.ws.rs.core.MediaType |
getResponseMediaType(String acceptHeader) |
static org.wso2.carbon.device.mgt.common.configuration.mgt.PlatformConfiguration |
getTenantConfiguration() |
static List<org.wso2.carbon.device.mgt.common.configuration.mgt.ConfigurationEntry> |
getTenantConfigurationData()
This method is used to get tenant configurations.
|
static int |
getTenantIdOFUser(String username) |
static void |
startTenantFlow(AuthenticationInfo authenticationInfo) |
static void |
updateDeviceInfo(org.wso2.carbon.device.mgt.common.DeviceIdentifier deviceId,
org.wso2.carbon.device.mgt.common.device.details.DeviceInfo deviceInfo)
This method is used to update Device Information.
|
static void |
updateDeviceLocation(org.wso2.carbon.device.mgt.common.device.details.DeviceLocation deviceLocation)
This method is used to update device location.
|
static void |
updateOperation(String deviceId,
org.wso2.carbon.device.mgt.common.operation.mgt.Operation operation) |
public static org.wso2.carbon.device.mgt.common.DeviceIdentifier convertToDeviceIdentifierObject(String deviceId)
public static org.wso2.carbon.device.mgt.core.service.DeviceManagementProviderService getDeviceManagementService()
public static org.wso2.carbon.device.mgt.common.notification.mgt.NotificationManagementService getNotificationManagementService()
public static javax.ws.rs.core.MediaType getResponseMediaType(String acceptHeader)
public static javax.ws.rs.core.Response getOperationResponse(List<String> deviceIDs, org.wso2.carbon.device.mgt.common.operation.mgt.Operation operation) throws org.wso2.carbon.device.mgt.common.DeviceManagementException, org.wso2.carbon.device.mgt.common.operation.mgt.OperationManagementException, org.wso2.carbon.device.mgt.common.InvalidDeviceException
org.wso2.carbon.device.mgt.common.DeviceManagementExceptionorg.wso2.carbon.device.mgt.common.operation.mgt.OperationManagementExceptionorg.wso2.carbon.device.mgt.common.InvalidDeviceExceptionpublic static org.wso2.carbon.policy.mgt.core.PolicyManagerService getPolicyManagerService()
public static void updateOperation(String deviceId, org.wso2.carbon.device.mgt.common.operation.mgt.Operation operation) throws org.wso2.carbon.device.mgt.common.operation.mgt.OperationManagementException
org.wso2.carbon.device.mgt.common.operation.mgt.OperationManagementExceptionpublic static List<? extends org.wso2.carbon.device.mgt.common.operation.mgt.Operation> getPendingOperations(org.wso2.carbon.device.mgt.common.DeviceIdentifier deviceIdentifier) throws org.wso2.carbon.device.mgt.common.operation.mgt.OperationManagementException, org.wso2.carbon.device.mgt.common.DeviceManagementException
org.wso2.carbon.device.mgt.common.operation.mgt.OperationManagementExceptionorg.wso2.carbon.device.mgt.common.DeviceManagementExceptionpublic static org.wso2.carbon.device.mgt.common.configuration.mgt.PlatformConfiguration getTenantConfiguration()
throws org.wso2.carbon.device.mgt.common.DeviceManagementException
org.wso2.carbon.device.mgt.common.DeviceManagementExceptionpublic static int getTenantIdOFUser(String username) throws org.wso2.carbon.device.mgt.common.DeviceManagementException
org.wso2.carbon.device.mgt.common.DeviceManagementExceptionpublic static org.wso2.carbon.identity.oauth2.OAuth2TokenValidationService getOAuth2TokenValidationService()
public static org.wso2.carbon.webapp.authenticator.framework.config.AuthenticatorConfig getBSTAuthenticatorConfig()
public static void startTenantFlow(AuthenticationInfo authenticationInfo)
public static List<org.wso2.carbon.device.mgt.common.configuration.mgt.ConfigurationEntry> getTenantConfigurationData() throws org.wso2.carbon.device.mgt.common.DeviceManagementException
org.wso2.carbon.device.mgt.common.DeviceManagementExceptionpublic static void updateDeviceInfo(org.wso2.carbon.device.mgt.common.DeviceIdentifier deviceId,
org.wso2.carbon.device.mgt.common.device.details.DeviceInfo deviceInfo)
throws org.wso2.carbon.device.mgt.core.device.details.mgt.DeviceDetailsMgtException
deviceId - DeviceID to need to update.deviceInfo - Device Info to be update/org.wso2.carbon.device.mgt.core.device.details.mgt.DeviceDetailsMgtException - Error occurs while updating Device Info.public static void updateDeviceLocation(org.wso2.carbon.device.mgt.common.device.details.DeviceLocation deviceLocation)
throws org.wso2.carbon.device.mgt.core.device.details.mgt.DeviceDetailsMgtException
deviceLocation - Device coordination related information.org.wso2.carbon.device.mgt.core.device.details.mgt.DeviceDetailsMgtException - Error occurs while updating Device location.Copyright © 2017 WSO2. All rights reserved.