Skip to content

Commit

Permalink
MOSIP-35914
Browse files Browse the repository at this point in the history
Signed-off-by: Jayesh Kharode <[email protected]>
  • Loading branch information
Jayesh Kharode committed Nov 22, 2024
1 parent cd9ca8f commit 940cfd7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public class ContextController {
try {
if (personaConfigPath != null && !personaConfigPath.equals(""))
DataProviderConstants.RESOURCE = personaConfigPath;
VariableManager.Init(contextKey);
// VariableManager.Init(contextKey);

return contextUtils.createUpdateServerContext(contextProperties, contextKey);
} catch (Exception ex) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public PersonaController(@Lazy PacketSyncService packetSyncService) {
if (personaConfigPath != null && !personaConfigPath.equals("")) {
DataProviderConstants.RESOURCE = personaConfigPath;
}
VariableManager.Init(contextKey);
// VariableManager.Init(contextKey);

return packetSyncService.updatePersonaData(personaRequestDto, contextKey);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ Boolean generateCBEFF(ResidentModel resident, List<String> bioAttrib, String out
bos.close();
}
}
resident.save(contextKey);
resident.save();
return true;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,8 @@ public String toJSONString() {
return jsonStr;
}

public void save(String contextKey) throws IOException {
if(RestClient.isDebugEnabled(contextKey)) {
Files.write(Paths.get(path), this.toJSONString().getBytes());
}
VariableManager.setVariableValue(contextKey, path, this.toJSONString());
public void save() throws IOException {
Files.write(Paths.get(path), this.toJSONString().getBytes());
}


Expand Down

0 comments on commit 940cfd7

Please sign in to comment.