Skip to content

Commit

Permalink
Merge pull request #1181 from chanikag/secPolicy
Browse files Browse the repository at this point in the history
Remove unsupported security policy options
  • Loading branch information
chanikag authored Dec 16, 2022
2 parents c695715 + 9f70d04 commit b6bc3ef
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1332,8 +1332,6 @@ private void deSelectAllSecurityOptionButtons() {
policyOneUserRolesButton.setVisible(false);
policySevenUserRolesButton.setVisible(false);
policyEightUserRolesButton.setVisible(false);
policyFourteenUserRolesButton.setVisible(false);
policyFifteenUserRolesButton.setVisible(false);
}

/**
Expand Down Expand Up @@ -2322,43 +2320,21 @@ private void enableUserRoleButton(Button secBtn) {
policyOneUserRolesButton.setVisible(true);
policySevenUserRolesButton.setVisible(false);
policyEightUserRolesButton.setVisible(false);
policyFourteenUserRolesButton.setVisible(false);
policyFifteenUserRolesButton.setVisible(false);

} else if (secBtn.getToolTipText().equals(SecurityPolicies.POLICY_TYPE_7)) {
policyOneUserRolesButton.setVisible(false);
policySevenUserRolesButton.setVisible(true);
policyEightUserRolesButton.setVisible(false);
policyFourteenUserRolesButton.setVisible(false);
policyFifteenUserRolesButton.setVisible(false);

} else if (secBtn.getToolTipText().equals(SecurityPolicies.POLICY_TYPE_8)) {
policyOneUserRolesButton.setVisible(false);
policySevenUserRolesButton.setVisible(false);
policyEightUserRolesButton.setVisible(true);
policyFourteenUserRolesButton.setVisible(false);
policyFifteenUserRolesButton.setVisible(false);

} else if (secBtn.getToolTipText().equals(SecurityPolicies.POLICY_TYPE_14)) {
policyOneUserRolesButton.setVisible(false);
policySevenUserRolesButton.setVisible(false);
policyEightUserRolesButton.setVisible(false);
policyFourteenUserRolesButton.setVisible(true);
policyFifteenUserRolesButton.setVisible(false);

} else if (secBtn.getToolTipText().equals(SecurityPolicies.POLICY_TYPE_15)) {
policyOneUserRolesButton.setVisible(false);
policySevenUserRolesButton.setVisible(false);
policyEightUserRolesButton.setVisible(false);
policyFourteenUserRolesButton.setVisible(false);
policyFifteenUserRolesButton.setVisible(true);

} else {
policyOneUserRolesButton.setVisible(false);
policySevenUserRolesButton.setVisible(false);
policyEightUserRolesButton.setVisible(false);
policyFourteenUserRolesButton.setVisible(false);
policyFifteenUserRolesButton.setVisible(false);

}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,7 @@ public String[] getBasicSecurityScenarios() {
public String[] getAdvancedSecurityScenarios() {
String[] advancedSecurityScenarios = new String[] { SecurityPolicies.POLICY_TYPE_5,
SecurityPolicies.POLICY_TYPE_6, SecurityPolicies.POLICY_TYPE_7,
SecurityPolicies.POLICY_TYPE_8, SecurityPolicies.POLICY_TYPE_9,
SecurityPolicies.POLICY_TYPE_10, SecurityPolicies.POLICY_TYPE_11,
SecurityPolicies.POLICY_TYPE_12, SecurityPolicies.POLICY_TYPE_13,
SecurityPolicies.POLICY_TYPE_14, SecurityPolicies.POLICY_TYPE_15,
SecurityPolicies.POLICY_TYPE_16, SecurityPolicies.POLICY_TYPE_17,
SecurityPolicies.POLICY_TYPE_18, SecurityPolicies.POLICY_TYPE_19,
SecurityPolicies.POLICY_TYPE_20 };
SecurityPolicies.POLICY_TYPE_8 };

return advancedSecurityScenarios;
}
Expand Down

0 comments on commit b6bc3ef

Please sign in to comment.