|
|
@ -66,9 +66,12 @@ public class PermissionManager {
|
|
|
|
/* Un-marshaling Device Management configuration */
|
|
|
|
/* Un-marshaling Device Management configuration */
|
|
|
|
JAXBContext cdmContext = JAXBContext.newInstance(PermissionConfiguration.class);
|
|
|
|
JAXBContext cdmContext = JAXBContext.newInstance(PermissionConfiguration.class);
|
|
|
|
Unmarshaller unmarshaller = cdmContext.createUnmarshaller();
|
|
|
|
Unmarshaller unmarshaller = cdmContext.createUnmarshaller();
|
|
|
|
PermissionConfiguration permissionConfiguration = (PermissionConfiguration) unmarshaller.unmarshal(permissionStream);
|
|
|
|
PermissionConfiguration permissionConfiguration = (PermissionConfiguration)
|
|
|
|
|
|
|
|
unmarshaller.unmarshal(permissionStream);
|
|
|
|
|
|
|
|
if((permissionConfiguration != null) && (permissionConfiguration.getPermissions() != null)){
|
|
|
|
this.addPermissions(permissionConfiguration.getPermissions());
|
|
|
|
this.addPermissions(permissionConfiguration.getPermissions());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
} catch (JAXBException e) {
|
|
|
|
} catch (JAXBException e) {
|
|
|
|
throw new DeviceManagementException("Error occurred while initializing Data Source config", e);
|
|
|
|
throw new DeviceManagementException("Error occurred while initializing Data Source config", e);
|
|
|
|
}
|
|
|
|
}
|
|
|
|