Skip to content

Commit

Permalink
RANGER-4225: Possible Jackson serialization issue due to not comply w…
Browse files Browse the repository at this point in the history
…ith Java bean standards

(cherry picked from commit 77fac4d)
(cherry picked from commit 808b285)
  • Loading branch information
sercanCyberVision committed May 29, 2024
1 parent 2f6cf7a commit 0da66da
Show file tree
Hide file tree
Showing 26 changed files with 82 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import java.util.List;

import org.apache.ranger.common.view.VList;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
Expand All @@ -50,6 +51,7 @@ public VXAccessAuditList(List<VXAccessAudit> objList) {
/**
* @return the vXAccessAudits
*/
@JsonProperty("vXAccessAudits")
public List<VXAccessAudit> getVXAccessAudits() {
return vXAccessAudits;
}
Expand All @@ -58,6 +60,7 @@ public List<VXAccessAudit> getVXAccessAudits() {
* @param vXAccessAudits
* the vXAccessAudits to set
*/
@JsonProperty("vXAccessAudits")
public void setVXAccessAudits(List<VXAccessAudit> vXAccessAudits) {
this.vXAccessAudits = vXAccessAudits;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import java.util.List;

import org.apache.ranger.common.view.VList;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
Expand All @@ -50,6 +51,7 @@ public VXAssetList(List<VXAsset> objList) {
/**
* @return the vXAssets
*/
@JsonProperty("vXAssets")
public List<VXAsset> getVXAssets() {
return vXAssets;
}
Expand All @@ -58,6 +60,7 @@ public List<VXAsset> getVXAssets() {
* @param vXAssets
* the vXAssets to set
*/
@JsonProperty("vXAssets")
public void setVXAssets(List<VXAsset> vXAssets) {
this.vXAssets = vXAssets;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import java.util.List;

import org.apache.ranger.common.view.VList;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
Expand All @@ -50,6 +51,7 @@ public VXAuditMapList(List<VXAuditMap> objList) {
/**
* @return the vXAuditMaps
*/
@JsonProperty("vXAuditMaps")
public List<VXAuditMap> getVXAuditMaps() {
return vXAuditMaps;
}
Expand All @@ -58,6 +60,7 @@ public List<VXAuditMap> getVXAuditMaps() {
* @param vXAuditMaps
* the vXAuditMaps to set
*/
@JsonProperty("vXAuditMaps")
public void setVXAuditMaps(List<VXAuditMap> vXAuditMaps) {
this.vXAuditMaps = vXAuditMaps;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import java.util.List;

import org.apache.ranger.common.view.VList;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
Expand All @@ -37,10 +38,12 @@ public class VXAuditRecordList extends VList {
private static final long serialVersionUID = 1L;
List<VXAuditRecord> vXAuditRecords = new ArrayList<VXAuditRecord>();

@JsonProperty("vXAuditRecords")
public List<VXAuditRecord> getvAudits() {
return vXAuditRecords;
}

@JsonProperty("vXAuditRecords")
public void setvAudits(List<VXAuditRecord> vXAuditRecords) {
this.vXAuditRecords = vXAuditRecords;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import java.util.List;

import org.apache.ranger.common.view.VList;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
Expand All @@ -50,6 +51,7 @@ public VXAuthSessionList(List<VXAuthSession> objList) {
/**
* @return the vXAuthSessions
*/
@JsonProperty("vXAuthSessions")
public List<VXAuthSession> getVXAuthSessions() {
return vXAuthSessions;
}
Expand All @@ -58,6 +60,7 @@ public List<VXAuthSession> getVXAuthSessions() {
* @param vXAuthSessions
* the vXAuthSessions to set
*/
@JsonProperty("vXAuthSessions")
public void setVXAuthSessions(List<VXAuthSession> vXAuthSessions) {
this.vXAuthSessions = vXAuthSessions;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import java.util.List;

import org.apache.ranger.common.view.VList;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
Expand All @@ -50,6 +51,7 @@ public VXCredentialStoreList(List<VXCredentialStore> objList) {
/**
* @return the vXCredentialStores
*/
@JsonProperty("vXCredentialStores")
public List<VXCredentialStore> getVXCredentialStores() {
return vXCredentialStores;
}
Expand All @@ -58,6 +60,7 @@ public List<VXCredentialStore> getVXCredentialStores() {
* @param vXCredentialStores
* the vXCredentialStores to set
*/
@JsonProperty("vXCredentialStores")
public void setVXCredentialStores(List<VXCredentialStore> vXCredentialStores) {
this.vXCredentialStores = vXCredentialStores;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import java.util.List;

import org.apache.ranger.common.view.VList;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
Expand All @@ -50,6 +51,7 @@ public VXGroupGroupList(List<VXGroupGroup> objList) {
/**
* @return the vXGroupGroups
*/
@JsonProperty("vXGroupGroups")
public List<VXGroupGroup> getVXGroupGroups() {
return vXGroupGroups;
}
Expand All @@ -58,6 +60,7 @@ public List<VXGroupGroup> getVXGroupGroups() {
* @param vXGroupGroups
* the vXGroupGroups to set
*/
@JsonProperty("vXGroupGroups")
public void setVXGroupGroups(List<VXGroupGroup> vXGroupGroups) {
this.vXGroupGroups = vXGroupGroups;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import java.util.List;

import org.apache.ranger.common.view.VList;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
Expand All @@ -50,6 +51,7 @@ public VXGroupList(List<VXGroup> objList) {
/**
* @return the vXGroups
*/
@JsonProperty("vXGroups")
public List<VXGroup> getVXGroups() {
return vXGroups;
}
Expand All @@ -58,6 +60,7 @@ public List<VXGroup> getVXGroups() {
* @param vXGroups
* the vXGroups to set
*/
@JsonProperty("vXGroups")
public void setVXGroups(List<VXGroup> vXGroups) {
this.vXGroups = vXGroups;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import java.util.List;

import org.apache.ranger.common.view.VList;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
Expand All @@ -45,13 +46,15 @@ public VXGroupPermissionList(List<VXGroupPermission> objList) {
/**
* @return the vXGroupPermission
*/
@JsonProperty("vXGroupPermission")
public List<VXGroupPermission> getvXGroupPermission() {
return vXGroupPermission;
}

/**
* @param vXGroupPermission the vXGroupPermission to set
*/
@JsonProperty("vXGroupPermission")
public void setvXGroupPermission(List<VXGroupPermission> vXGroupPermission) {
this.vXGroupPermission = vXGroupPermission;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import java.util.List;

import org.apache.ranger.common.view.VList;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
Expand All @@ -50,6 +51,7 @@ public VXGroupUserList(List<VXGroupUser> objList) {
/**
* @return the vXGroupUsers
*/
@JsonProperty("vXGroupUsers")
public List<VXGroupUser> getVXGroupUsers() {
return vXGroupUsers;
}
Expand All @@ -58,6 +60,7 @@ public List<VXGroupUser> getVXGroupUsers() {
* @param vXGroupUsers
* the vXGroupUsers to set
*/
@JsonProperty("vXGroupUsers")
public void setVXGroupUsers(List<VXGroupUser> vXGroupUsers) {
this.vXGroupUsers = vXGroupUsers;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import java.util.List;

import org.apache.ranger.common.view.VList;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
Expand All @@ -50,6 +51,7 @@ public VXKmsKeyList(List<VXKmsKey> objList) {
/**
* @return the vXKeys
*/
@JsonProperty("vXKeys")
public List<VXKmsKey> getVXKeys() {
return vXKeys;
}
Expand All @@ -58,6 +60,7 @@ public List<VXKmsKey> getVXKeys() {
* @param vXKeys
* the vXKeys to set
*/
@JsonProperty("vXKeys")
public void setVXKeys(List<VXKmsKey> vXKeys) {
this.vXKeys = vXKeys;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import java.util.List;

import org.apache.ranger.common.view.VList;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
Expand All @@ -45,13 +46,15 @@ public VXModuleDefList(List<VXModuleDef> objList) {
/**
* @return the vXModuleDef
*/
@JsonProperty("vXModuleDef")
public List<VXModuleDef> getvXModuleDef() {
return vXModuleDef;
}

/**
* @param vXModuleDef the vXModuleDef to set
*/
@JsonProperty("vXModuleDef")
public void setvXModuleDef(List<VXModuleDef> vXModuleDef) {
this.vXModuleDef = vXModuleDef;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import java.util.List;

import org.apache.ranger.common.view.VList;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
Expand All @@ -42,10 +43,12 @@ public VXModulePermissionList(List<VXModulePermission> objList) {
this.vXModulePermissionList = objList;
}

@JsonProperty("vXModulePermissionList")
public List<VXModulePermission> getvXModulePermissionList() {
return vXModulePermissionList;
}

@JsonProperty("vXModulePermissionList")
public void setvXModulePermissionList(List<VXModulePermission> vXModulePermissionList) {
this.vXModulePermissionList = vXModulePermissionList;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import java.util.List;

import org.apache.ranger.common.view.VList;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
Expand All @@ -50,6 +51,7 @@ public VXPermMapList(List<VXPermMap> objList) {
/**
* @return the vXPermMaps
*/
@JsonProperty("vXPermMaps")
public List<VXPermMap> getVXPermMaps() {
return vXPermMaps;
}
Expand All @@ -58,6 +60,7 @@ public List<VXPermMap> getVXPermMaps() {
* @param vXPermMaps
* the vXPermMaps to set
*/
@JsonProperty("vXPermMaps")
public void setVXPermMaps(List<VXPermMap> vXPermMaps) {
this.vXPermMaps = vXPermMaps;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import java.util.List;

import org.apache.ranger.common.view.VList;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
Expand All @@ -50,6 +51,7 @@ public VXPermObjList(List<VXPermObj> objList) {
/**
* @return the vXPermObjs
*/
@JsonProperty("vXPermObjs")
public List<VXPermObj> getVXPermObjs() {
return vXPermObjs;
}
Expand All @@ -58,6 +60,7 @@ public List<VXPermObj> getVXPermObjs() {
* @param vXPermObjs
* the vXPermObjs to set
*/
@JsonProperty("vXPermObjs")
public void setVXPermObjs(List<VXPermObj> vXPermObjs) {
this.vXPermObjs = vXPermObjs;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import java.util.List;

import org.apache.ranger.common.view.VList;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
Expand All @@ -50,6 +51,7 @@ public VXPolicyExportAuditList(List<VXPolicyExportAudit> objList) {
/**
* @return the vXPolicyExportAudits
*/
@JsonProperty("vXPolicyExportAudits")
public List<VXPolicyExportAudit> getVXPolicyExportAudits() {
return vXPolicyExportAudits;
}
Expand All @@ -58,6 +60,7 @@ public List<VXPolicyExportAudit> getVXPolicyExportAudits() {
* @param vXPolicyExportAudits
* the vXPolicyExportAudits to set
*/
@JsonProperty("vXPolicyExportAudits")
public void setVXPolicyExportAudits(List<VXPolicyExportAudit> vXPolicyExportAudits) {
this.vXPolicyExportAudits = vXPolicyExportAudits;
}
Expand Down
Loading

0 comments on commit 0da66da

Please sign in to comment.