// user.secret = AesUtils.serialize(userInfo.getUserSecret());
return user;
}
public static ProjectValidation mapToProject(ProjectEntity entity) {
ProjectValidation mapped = new ProjectValidation();
mapped.id = "" + entity.id;
mapped.name = entity.name;
if (!entity.isLocked()) {
mapped.secret = FathomdbCrypto.serialize(entity.getProjectSecret());
}