mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
reformat code
This commit is contained in:
parent
374c54fa70
commit
b1625f93dd
@ -73,6 +73,7 @@ public class RemoteSessionManagementServiceImpl implements RemoteSessionManageme
|
||||
sessionQueryParamList.add(session.getQueryString());
|
||||
sessionQueryParam.put(RemoteSessionConstants.QUERY_STRING, sessionQueryParamList);
|
||||
|
||||
// if session initiated using operation id means request came from device.
|
||||
if (operationId == null) {
|
||||
// Validate the token
|
||||
OAuthAuthenticator oAuthAuthenticator = RemoteSessionManagementDataHolder.getInstance().getOauthAuthenticator();
|
||||
@ -102,16 +103,8 @@ public class RemoteSessionManagementServiceImpl implements RemoteSessionManageme
|
||||
.getMaxMessageBufferSize());
|
||||
session.setMaxIdleTimeout(RemoteSessionManagementDataHolder.getInstance().getMaxIdleTimeout());
|
||||
|
||||
// if session initiated using operation id means request came from device
|
||||
// if (operationId != null) {
|
||||
// // create new device session
|
||||
// initializeDeviceSession(session, authenticationInfo.getTenantDomain(), deviceType, deviceId,
|
||||
// operationId);
|
||||
// } else {
|
||||
// create new client session
|
||||
initializeClientSession(session, authenticationInfo.getTenantDomain(), deviceType,
|
||||
deviceId);
|
||||
// }
|
||||
initializeClientSession(session, authenticationInfo.getTenantDomain(), deviceType, deviceId);
|
||||
|
||||
log.info("Current remote sessions count: " + RemoteSessionManagementDataHolder.getInstance()
|
||||
.getSessionMap().size());
|
||||
|
||||
@ -304,10 +297,11 @@ public class RemoteSessionManagementServiceImpl implements RemoteSessionManageme
|
||||
JSONObject payload = new JSONObject();
|
||||
payload.put("serverUrl", RemoteSessionManagementDataHolder.getInstance().getServerUrl());
|
||||
payload.put("uuidToValidateDevice", uuidToValidateDevice);
|
||||
String uuidToTenantMap = RemoteSessionManagementDataHolder.getInstance().getUuidToTenantMap
|
||||
().putIfAbsent(uuidToValidateDevice, tenantDomain);
|
||||
RemoteSessionManagementDataHolder.getInstance().getUuidToTenantMap
|
||||
().put(uuidToValidateDevice, tenantDomain);
|
||||
if (log.isDebugEnabled()) {
|
||||
log.debug("UUID " + uuidToTenantMap + " is generated against the tenant : " + tenantDomain);
|
||||
log.debug("UUID " + uuidToValidateDevice + " is generated against the tenant : " +
|
||||
RemoteSessionManagementDataHolder.getInstance().getUuidToTenantMap().get(uuidToValidateDevice));
|
||||
}
|
||||
operation.setPayLoad(payload.toString());
|
||||
String date = new SimpleDateFormat(RemoteSessionConstants.DATE_FORMAT_NOW).format(new Date());
|
||||
|
||||
Loading…
Reference in New Issue
Block a user