This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IotPermission permission = null; | |
// get only valid permissions | |
List<IotPermission> permissions = getValidPermissionsListByPlateNumber(plateNumber); | |
// check if permission is for this carpark | |
boolean isCarparkFound = false; | |
for (IotPermission perm : permissions) { | |
if (carparkId.equals(perm.getCarParkRef())) { | |
isCarparkFound = true; | |
permission = perm; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.demo.test; | |
import java.io.IOException; | |
import java.nio.charset.StandardCharsets; | |
import java.nio.file.Files; | |
import java.nio.file.Path; | |
import java.nio.file.Paths; | |
import java.nio.file.StandardOpenOption; | |
public class UsersGeneratorForTFX { |