diff options
author | Endi Sukma Dewata <edewata@redhat.com> | 2012-04-05 14:49:11 -0500 |
---|---|---|
committer | Endi Sukma Dewata <edewata@redhat.com> | 2012-04-09 10:03:25 -0500 |
commit | 7c7b9d023cd466c1771068badc020dab36beb553 (patch) | |
tree | 178877eb83e25336be7577953945fbdb0b9e1a15 /base/console/src/com/netscape/admin/certsrv/config | |
parent | da1e6e2f49f66fd46c8039ff1aa4386309fba8f4 (diff) | |
download | pki-7c7b9d023cd466c1771068badc020dab36beb553.tar.gz pki-7c7b9d023cd466c1771068badc020dab36beb553.tar.xz pki-7c7b9d023cd466c1771068badc020dab36beb553.zip |
Removed whitespaces from Java code.
Whitespaces in Java code have been removed with the following command:
find . -not -path .git -name *.java -exec sed -i 's/[[:blank:]]\+$//' {} \;
Ticket #134
Diffstat (limited to 'base/console/src/com/netscape/admin/certsrv/config')
245 files changed, 1802 insertions, 1802 deletions
diff --git a/base/console/src/com/netscape/admin/certsrv/config/ACIDialog.java b/base/console/src/com/netscape/admin/certsrv/config/ACIDialog.java index e6085f820..c1a4a9807 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/ACIDialog.java +++ b/base/console/src/com/netscape/admin/certsrv/config/ACIDialog.java @@ -110,7 +110,7 @@ public class ACIDialog extends JDialog CMSAdminUtil.showErrorDialog(mParentFrame, mResource, msg ,CMSAdminUtil.ERROR_MESSAGE); return; - } + } } else if (evt.getSource().equals(mHelp)) { CMSAdminUtil.help(mHelpToken); } @@ -168,7 +168,7 @@ public class ACIDialog extends JDialog mAllowBtn.setSelected(true); } else if (aci.startsWith("deny")) { mDenyBtn.setSelected(true); - } + } int startIndex = aci.indexOf("("); int endIndex = aci.indexOf(")"); if ((startIndex > 0) && (endIndex > 0)) { @@ -197,7 +197,7 @@ public class ACIDialog extends JDialog String result = ""; if (!mAllowBtn.isSelected() && !mDenyBtn.isSelected()) return ""; - if (mAllowBtn.isSelected()) + if (mAllowBtn.isSelected()) result = result+"allow"+" ("; else if (mDenyBtn.isSelected()) result = result+"deny"+" ("; @@ -259,7 +259,7 @@ public class ACIDialog extends JDialog } } } - + return false; } @@ -356,7 +356,7 @@ public class ACIDialog extends JDialog private JPanel makeListPane() { JPanel listPanel = new JPanel(); - + GridBagConstraints gbc = new GridBagConstraints(); GridBagLayout gb = new GridBagLayout(); listPanel.setLayout(gb); @@ -439,7 +439,7 @@ public class ACIDialog extends JDialog gb.setConstraints(opsLabel, gbc); mainPanel.add(opsLabel); opsLabel.addMouseListener(this); - opsLabel.setName("rights"); + opsLabel.setName("rights"); mList = CMSAdminUtil.makeJList(mDataModel, 3); mScrollPane = new JScrollPane(mList, @@ -474,7 +474,7 @@ public class ACIDialog extends JDialog */ CMSAdminUtil.resetGBC(gbc); - JLabel attrLabel = CMSAdminUtil.makeJLabel(mResource, PREFIX, + JLabel attrLabel = CMSAdminUtil.makeJLabel(mResource, PREFIX, "SYNTAX", null); gbc.anchor = gbc.NORTHWEST; gbc.gridwidth = gbc.REMAINDER; diff --git a/base/console/src/com/netscape/admin/certsrv/config/ACLEditDialog.java b/base/console/src/com/netscape/admin/certsrv/config/ACLEditDialog.java index b3bcb72e1..cf3ae7dcd 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/ACLEditDialog.java +++ b/base/console/src/com/netscape/admin/certsrv/config/ACLEditDialog.java @@ -61,7 +61,7 @@ public class ACLEditDialog extends JDialog this(admin, parent, null, null); } - public ACLEditDialog(AdminConnection admin, JFrame parent, + public ACLEditDialog(AdminConnection admin, JFrame parent, String name, String desc) { super(parent,true); mParentFrame = parent; @@ -91,12 +91,12 @@ public class ACLEditDialog extends JDialog } else if (evt.getSource().equals(mDelete)) { int index = mList.getSelectedIndex(); if (index >= 0) { - int i = CMSAdminUtil.showConfirmDialog(mParentFrame, + int i = CMSAdminUtil.showConfirmDialog(mParentFrame, mResource, PREFIX, "DELETE", CMSAdminUtil.WARNING_MESSAGE); if (i == JOptionPane.YES_OPTION) { mDataModel.removeElementAt(index); Debug.println("Deleted"); - if (mDataModel.size() > 0) + if (mDataModel.size() > 0) mList.setSelectedIndex(0); } } @@ -106,12 +106,12 @@ public class ACLEditDialog extends JDialog if (mResourceName.equals("")) { String msg = mResource.getString( PREFIX+"_DIALOG_EMPTYRESOURCEID_MESSAGE"); - CMSAdminUtil.showErrorDialog(mParentFrame, - mResource, msg, CMSAdminUtil.ERROR_MESSAGE); + CMSAdminUtil.showErrorDialog(mParentFrame, + mResource, msg, CMSAdminUtil.ERROR_MESSAGE); return; } } - + String rights = mRightsText.getText().trim(); NameValuePairs pairs = new NameValuePairs(); @@ -160,11 +160,11 @@ public class ACLEditDialog extends JDialog } } else if (evt.getSource().equals(mAdd)) { String rights = mRightsText.getText().trim(); - if (rights.equals("")) { + if (rights.equals("")) { String msg = mResource.getString( PREFIX+"_DIALOG_EMPTYRIGHTS_MESSAGE"); - CMSAdminUtil.showErrorDialog(mParentFrame, - mResource, msg, CMSAdminUtil.ERROR_MESSAGE); + CMSAdminUtil.showErrorDialog(mParentFrame, + mResource, msg, CMSAdminUtil.ERROR_MESSAGE); return; } mOperations = rights; @@ -254,7 +254,7 @@ public class ACLEditDialog extends JDialog 0,CMSAdminUtil.DIFFERENT_COMPONENT_SPACE); gb.setConstraints(helpPanel, gbc); center.add(helpPanel); - + //action panel JPanel action = makeActionPane(); CMSAdminUtil.resetGBC(gbc); @@ -277,7 +277,7 @@ public class ACLEditDialog extends JDialog mDelete.setEnabled(true); mEdit.setEnabled(true); } - + return; } @@ -312,7 +312,7 @@ public class ACLEditDialog extends JDialog //up, down buttons required //actionlister to this object mAdd = CMSAdminUtil.makeJButton(mResource, PREFIX, "ADD", null, this); - mDelete = CMSAdminUtil.makeJButton(mResource, PREFIX, "DELETE", + mDelete = CMSAdminUtil.makeJButton(mResource, PREFIX, "DELETE", null, this); mEdit = CMSAdminUtil.makeJButton(mResource, PREFIX, "EDIT", null, this); JButton[] buttons = {mAdd, mDelete, mEdit}; @@ -344,7 +344,7 @@ public class ACLEditDialog extends JDialog mHelpArea.setWrapStyleWord(true); mHelpArea.setBackground(helpPanel.getBackground()); mHelpArea.setEditable(false); - + CMSAdminUtil.resetGBC(gbc); gbc.anchor = gbc.NORTHWEST; gbc.gridwidth = gbc.REMAINDER; @@ -410,7 +410,7 @@ public class ACLEditDialog extends JDialog mainPanel.add(rightsLbl); rightsLbl.setName("rights"); rightsLbl.addMouseListener(this); - + CMSAdminUtil.resetGBC(gbc); mRightsText = new JTextField(30); gbc.anchor = gbc.WEST; @@ -493,7 +493,7 @@ public class ACLEditDialog extends JDialog return mainPanel; } - private void enableTextField(JTextField textFld, boolean enabled, + private void enableTextField(JTextField textFld, boolean enabled, Color color) { textFld.setEnabled(enabled); textFld.setEditable(enabled); diff --git a/base/console/src/com/netscape/admin/certsrv/config/ACLImplTab.java b/base/console/src/com/netscape/admin/certsrv/config/ACLImplTab.java index 4693224b1..71735f455 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/ACLImplTab.java +++ b/base/console/src/com/netscape/admin/certsrv/config/ACLImplTab.java @@ -39,7 +39,7 @@ public class ACLImplTab extends CMSBaseUGTab { private AdminConnection mConnection; private JTable mTable; private JScrollPane mScrollPane; - protected ACLImplDataModel mDataModel; + protected ACLImplDataModel mDataModel; protected EvaluatorRegisterDialog mEditor=null; protected JButton mRefresh, mAdd, mDelete, mHelp; private static final String HELPINDEX = diff --git a/base/console/src/com/netscape/admin/certsrv/config/AutoRecoveryModel.java b/base/console/src/com/netscape/admin/certsrv/config/AutoRecoveryModel.java index 90b617cbd..a227a8d49 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/AutoRecoveryModel.java +++ b/base/console/src/com/netscape/admin/certsrv/config/AutoRecoveryModel.java @@ -37,8 +37,8 @@ public class AutoRecoveryModel extends CMSTableModel *==========================================================*/ public static final String COL1 = "NUMBER"; public static final String COL2 = "UID"; - public static final String COL3 = "PASSWORD"; - + public static final String COL3 = "PASSWORD"; + private static String[] mColumns = {COL1, COL2, COL3}; /*========================================================== diff --git a/base/console/src/com/netscape/admin/certsrv/config/CACertsTab.java b/base/console/src/com/netscape/admin/certsrv/config/CACertsTab.java index 18590747a..4cbc2edbb 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/CACertsTab.java +++ b/base/console/src/com/netscape/admin/certsrv/config/CACertsTab.java @@ -33,7 +33,7 @@ import com.netscape.admin.certsrv.keycert.*; /** * CA certs Tab * - * @author Christine Ho + * @author Christine Ho * @version $Revision$, $Date$ * @see com.netscape.admin.certsrv.config */ @@ -47,12 +47,12 @@ public class CACertsTab extends CMSBaseUGTab { private AdminConnection mConnection; private String mDestination; private ConsoleInfo mConsoleInfo; - + protected JScrollPane mScrollPane; protected JTable mTable; //table protected ListCertsModel mDataModel; //table model protected CertViewDialog mEditor=null; //keep single copy - + protected JButton mRefresh, mAdd, mDelete, mView, mEdit, mHelp; private final static String HELPINDEX = "configuration-log-plugin-help"; @@ -162,17 +162,17 @@ public class CACertsTab extends CMSBaseUGTab { String[] params = new String[2]; if (trust.equals("U")) { params[0] = "untrusted"; - params[1] = "trust"; + params[1] = "trust"; i = showConfirmDialog("TRUST", params); } else { params[0] = "trusted"; - params[1] = "untrust"; + params[1] = "untrust"; i = showConfirmDialog("TRUST", params); } if (i == JOptionPane.YES_OPTION) { nvps.put("trustbit", params[1]); - mConnection.modify(DestDef.DEST_SERVER_ADMIN, + mConnection.modify(DestDef.DEST_SERVER_ADMIN, ScopeDef.SC_ROOTCERT_TRUSTBIT, Constants.RS_ID_CONFIG, nvps); } @@ -189,7 +189,7 @@ public class CACertsTab extends CMSBaseUGTab { } public void mouseReleased(MouseEvent e) { - setButtons(); + setButtons(); } /*========================================================== @@ -198,8 +198,8 @@ public class CACertsTab extends CMSBaseUGTab { public void refresh() { mDataModel.removeAllRows(); - update(); - + update(); + setButtons(); mTable.invalidate(); mTable.validate(); @@ -284,7 +284,7 @@ public class CACertsTab extends CMSBaseUGTab { //set buttons private void setButtons() { - + //enable and diable buttons accordingly //Debug.println("setButtons() - "+mTable.getSelectedRow()); //Debug.println("setButtons() - "+mTable.getSelectionModel().isSelectionEmpty()); @@ -293,28 +293,28 @@ public class CACertsTab extends CMSBaseUGTab { mView.setEnabled(false); return; } - + if(mDataModel.getRowCount()<=0) { mDelete.setEnabled(false); mView.setEnabled(false); return; } - + mDelete.setEnabled(true); - mView.setEnabled(true); - + mView.setEnabled(true); + } - + //============================================= // SEND REQUESTS TO THE SERVER SIDE //============================================= private void update() { //send request and parse data - + mModel.progressStart(); NameValuePairs response; try { - response = mConnection.search(mDestination, ScopeDef.SC_ROOTCERTSLIST, + response = mConnection.search(mDestination, ScopeDef.SC_ROOTCERTSLIST, new NameValuePairs()); } catch (EAdminException e) { //display error dialog diff --git a/base/console/src/com/netscape/admin/certsrv/config/CMSAccessLogPanel.java b/base/console/src/com/netscape/admin/certsrv/config/CMSAccessLogPanel.java index 8f1fc1f20..377e6287d 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/CMSAccessLogPanel.java +++ b/base/console/src/com/netscape/admin/certsrv/config/CMSAccessLogPanel.java @@ -25,7 +25,7 @@ import java.awt.event.*; /** * Access Log Setting Tab to be displayed at the right hand side - * + * * @author Christine Ho * @version $Revision$, $Date$ */ @@ -46,7 +46,7 @@ public class CMSAccessLogPanel extends CMSBaseLogPanel { mHelpToken = HELPINDEX; mIsNT = isNT; } - + /*========================================================== * public methods *==========================================================*/ @@ -88,7 +88,7 @@ public class CMSAccessLogPanel extends CMSBaseLogPanel { } catch (EAdminException e) { showErrorDialog(e.toString()); mModel.progressStop(); - } + } setValues(); mModel.progressStop(); clearDirtyFlag(); @@ -97,14 +97,14 @@ public class CMSAccessLogPanel extends CMSBaseLogPanel { private void parseVals(NameValuePairs nvp) { if (nvp.get(Constants.PR_LOG_ENABLED).equalsIgnoreCase( - Constants.TRUE)) + Constants.TRUE)) activateLog.setSelected(true); else activateLog.setSelected(false); mLevel = Integer.parseInt(nvp.get(Constants.PR_LOG_LEVEL)); mlogBufSizTextData = nvp.get(Constants.PR_LOG_BUFFERSIZE); mlogMaxSizTextData = nvp.get(Constants.PR_LOG_MAXFILESIZE); - int val = + int val = Integer.parseInt(nvp.get(Constants.PR_LOG_ROLLEROVER_INTERVAL)); mFrequency = getRollOverIndex(val); } @@ -148,7 +148,7 @@ public class CMSAccessLogPanel extends CMSBaseLogPanel { NameValuePairs nvp = new NameValuePairs(); mModel.progressStart(); - if (activateLog.isSelected()) + if (activateLog.isSelected()) nvp.put(Constants.PR_LOG_ENABLED, Constants.TRUE); else nvp.put(Constants.PR_LOG_ENABLED, Constants.FALSE); @@ -183,13 +183,13 @@ public class CMSAccessLogPanel extends CMSBaseLogPanel { showErrorDialog(e.toString()); mModel.progressStop(); return false; - } + } clearDirtyFlag(); mModel.progressStop(); return true; } - + /** * Implementation for reset values * @return true if save successful; otherwise, false. @@ -201,8 +201,8 @@ public class CMSAccessLogPanel extends CMSBaseLogPanel { /*========================================================== * EVENT HANDLER METHODS - *==========================================================*/ - + *==========================================================*/ + //=== ACTIONLISTENER ===================== public void actionPerformed(ActionEvent e) { super.actionPerformed(e); diff --git a/base/console/src/com/netscape/admin/certsrv/config/CMSAuditLogPanel.java b/base/console/src/com/netscape/admin/certsrv/config/CMSAuditLogPanel.java index 067b954e8..384cbc6cc 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/CMSAuditLogPanel.java +++ b/base/console/src/com/netscape/admin/certsrv/config/CMSAuditLogPanel.java @@ -46,7 +46,7 @@ public class CMSAuditLogPanel extends CMSBaseLogPanel { mHelpToken = HELPINDEX; mIsNT = isNT; } - + /*========================================================== * public methods *==========================================================*/ @@ -97,14 +97,14 @@ public class CMSAuditLogPanel extends CMSBaseLogPanel { private void parseVals(NameValuePairs nvp) { if (nvp.get(Constants.PR_LOG_ENABLED).equalsIgnoreCase( - Constants.TRUE)) + Constants.TRUE)) activateLog.setSelected(true); else activateLog.setSelected(false); mLevel = Integer.parseInt(nvp.get(Constants.PR_LOG_LEVEL)); mlogBufSizTextData = nvp.get(Constants.PR_LOG_BUFFERSIZE); mlogMaxSizTextData = nvp.get(Constants.PR_LOG_MAXFILESIZE); - int val = + int val = Integer.parseInt(nvp.get(Constants.PR_LOG_ROLLEROVER_INTERVAL)); mFrequency = getRollOverIndex(val); } @@ -184,12 +184,12 @@ public class CMSAuditLogPanel extends CMSBaseLogPanel { mModel.progressStop(); return false; } - + mModel.progressStop(); clearDirtyFlag(); return true; } - + /** * Implementation for reset values * @return true if save successful; otherwise, false. @@ -201,8 +201,8 @@ public class CMSAuditLogPanel extends CMSBaseLogPanel { /*========================================================== * EVENT HANDLER METHODS - *==========================================================*/ - + *==========================================================*/ + //=== ACTIONLISTENER ===================== public void actionPerformed(ActionEvent e) { super.actionPerformed(e); diff --git a/base/console/src/com/netscape/admin/certsrv/config/CMSAutoRecovery.java b/base/console/src/com/netscape/admin/certsrv/config/CMSAutoRecovery.java index ef55470c6..b29a579b4 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/CMSAutoRecovery.java +++ b/base/console/src/com/netscape/admin/certsrv/config/CMSAutoRecovery.java @@ -74,7 +74,7 @@ public class CMSAutoRecovery extends JDialog implements ActionListener, int col = mTable.getEditingColumn(); int row = mTable.getEditingRow(); if ((col>-1)&&(row>-1)) { - String str = ((JTextComponent)component).getText(); + String str = ((JTextComponent)component).getText(); mTable.setValueAt(str, row, col); } } @@ -86,11 +86,11 @@ public class CMSAutoRecovery extends JDialog implements ActionListener, CMSAdminUtil.showMessageDialog(mParentFrame, mResource, PREFIX, "EMPTYFIELD", CMSAdminUtil.ERROR_MESSAGE); return; - } else { + } else { NameValuePairs nvps = new NameValuePairs(); nvps.put(Constants.PR_RECOVERY_AGENT, val); nvps.put(Constants.PR_AUTO_RECOVERY_ON, Constants.TRUE); - + try { mAdmin.modify(DestDef.DEST_KRA_ADMIN, ScopeDef.SC_AUTO_RECOVERY, Constants.RS_ID_CONFIG, nvps); @@ -98,7 +98,7 @@ public class CMSAutoRecovery extends JDialog implements ActionListener, CMSAdminUtil.showErrorDialog(mParentFrame, mResource, ex.getMessage(), CMSAdminUtil.ERROR_MESSAGE); } - } + } mEnable.setText(mDisableLabel); mEnable.setToolTipText(mDisableTip); mEnable.repaint(); @@ -108,7 +108,7 @@ public class CMSAutoRecovery extends JDialog implements ActionListener, cleanup(); this.dispose(); } - + } //Set the first column's cellrender as label cell @@ -151,7 +151,7 @@ public class CMSAutoRecovery extends JDialog implements ActionListener, GridBagLayout gbm = new GridBagLayout(); getContentPane().setLayout(gbm); GridBagConstraints gbc = new GridBagConstraints(); - + CMSAdminUtil.resetGBC(gbc); JLabel heading = CMSAdminUtil.makeJLabel(mResource, PREFIX, "HEADING", null); @@ -214,7 +214,7 @@ public class CMSAutoRecovery extends JDialog implements ActionListener, } private void createTable() { - + NameValuePairs nvps = new NameValuePairs(); nvps.put(Constants.PR_RECOVERY_M, ""); @@ -227,7 +227,7 @@ public class CMSAutoRecovery extends JDialog implements ActionListener, } catch (EAdminException e) { //showErrorDialog(e.toString()); } - + mDataModel = new AutoRecoveryModel(); Vector[] data = new Vector[numUsers]; for (int i=0; i<data.length; i++) { diff --git a/base/console/src/com/netscape/admin/certsrv/config/CMSBaseConfigDialog.java b/base/console/src/com/netscape/admin/certsrv/config/CMSBaseConfigDialog.java index 87562829b..37d10879c 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/CMSBaseConfigDialog.java +++ b/base/console/src/com/netscape/admin/certsrv/config/CMSBaseConfigDialog.java @@ -76,7 +76,7 @@ public class CMSBaseConfigDialog extends JDialog /* true if creating a new instance * false if editing an old one */ - protected boolean mNewInstance=false; // + protected boolean mNewInstance=false; // private ExtendedPluginInfoSet mEPIs = null; protected CMSBaseResourceModel mModel = null; @@ -140,7 +140,7 @@ public class CMSBaseConfigDialog extends JDialog /** * retrieve the extended plugin information for this plugin - * from the server. The servlet must implement the scope + * from the server. The servlet must implement the scope * 'extendedPluginInfo' and the plugin must implement the * IExtendedPluginInfo interface, or else the display * will revert back to simple name-value pairs. @@ -148,12 +148,12 @@ public class CMSBaseConfigDialog extends JDialog ExtendedPluginInfoSet getExtendedPluginInfo(String implname, NameValuePairs oldstyle) { - + NameValuePairs data = new NameValuePairs(); String query = mImplType+":"+implname;//implName:pluginName NameValuePairs response=null; - if (mImplType.equals("policy") && + if (mImplType.equals("policy") && (mRuleName != null) && !mRuleName.trim().equals("")) { query = query + ":" + mRuleName; } @@ -174,7 +174,7 @@ public class CMSBaseConfigDialog extends JDialog /* if the servlet or rule wasn't capable of handling the new style * of interface, just return the names from the name/value pairs that - * were passed in + * were passed in * otherwise, for each parameter name, fetch the associated * parameter type from the extendedPluginInfo that the server * returned @@ -191,10 +191,10 @@ public class CMSBaseConfigDialog extends JDialog String ht = response.get("HELP_TOKEN"); - if (ht != null) epis.setHelpToken(ht); + if (ht != null) epis.setHelpToken(ht); String hs = response.get("HELP_TEXT"); - if (hs != null) epis.setHelpSummary(hs); + if (hs != null) epis.setHelpSummary(hs); return epis; } @@ -265,7 +265,7 @@ public class CMSBaseConfigDialog extends JDialog 0, // bottom 5); // right p.add(l,gbc); - + /* if there was no text extendedplugininfo for this parameter * just make it a text box @@ -283,7 +283,7 @@ public class CMSBaseConfigDialog extends JDialog */ comp.addFocusListener(this); - gbc.weightx = 0.7; + gbc.weightx = 0.7; gbc.fill = gbc.HORIZONTAL; gbc.gridwidth = gbc.RELATIVE; gbc.anchor = gbc.WEST; @@ -298,17 +298,17 @@ public class CMSBaseConfigDialog extends JDialog * keep it from hiting the edge of the panel */ JLabel j = new JLabel(""); - gbc.weightx = 0.1; + gbc.weightx = 0.1; gbc.fill = gbc.HORIZONTAL; gbc.gridwidth = gbc.REMAINDER; gbc.anchor = gbc.WEST; gbc.insets = new Insets( CMSAdminUtil.COMPONENT_SPACE, //top 0, //left - 0, //bottom + 0, //bottom CMSAdminUtil.COMPONENT_SPACE); // right p.add(j,gbc); - + } } @@ -352,9 +352,9 @@ public class CMSBaseConfigDialog extends JDialog return mIsOK; } - + public String getRuleName() { - return mRuleName; + return mRuleName; } /*========================================================== @@ -384,7 +384,7 @@ public class CMSBaseConfigDialog extends JDialog mHelpLabel.setText(text); mHelpLabel.repaint(); - + } /** need to supply this method for focuslistener, but we @@ -392,7 +392,7 @@ public class CMSBaseConfigDialog extends JDialog */ public void focusLost(FocusEvent f) { } - + /* * mouselistener events - for JLabel @@ -451,14 +451,14 @@ public class CMSBaseConfigDialog extends JDialog public void actionPerformed(ActionEvent evt) { if (evt.getSource().equals(mOK)) { - + /* if this is a new instance of a rule, (as opposed to editing an old one) */ if (mNewInstance) { mRuleName = mPluginName.getText(); /* make sure they set the name of the rule, otherwise, show an error message */ if (mRuleName.trim().equals("")) { CMSAdminUtil.showErrorDialog(mParentFrame, mResource, - mResource.getString("INSTANCECONFIGDIALOG_DIALOG_NOINSTANCENAME_MESSAGE"), + mResource.getString("INSTANCECONFIGDIALOG_DIALOG_NOINSTANCENAME_MESSAGE"), CMSAdminUtil.ERROR_MESSAGE); return; } @@ -466,7 +466,7 @@ public class CMSBaseConfigDialog extends JDialog else { mRuleName = mPluginLabel.getText(); } - + Debug.println(4,"User pressed okay on instance config dialog"); Enumeration e = mEPIs.keys(); NameValuePairs nvp = new NameValuePairs(); @@ -481,7 +481,7 @@ public class CMSBaseConfigDialog extends JDialog nvp.put("PASSWORD_CACHE_ADD", value + ";" + password); } } - + nvp.put(paramName, value); } nvp.put(PolicyRuleDataModel.RULE_NAME, mRuleName); @@ -509,7 +509,7 @@ public class CMSBaseConfigDialog extends JDialog ex.toString(),CMSAdminUtil.ERROR_MESSAGE); } } - + if (evt.getSource().equals(mCancel)) { this.dispose(); } @@ -591,19 +591,19 @@ public class CMSBaseConfigDialog extends JDialog /* mPluginName and mPluginLabel occupy the same space in the UI, but * only one of them is visible at a time. showDialog() determines which - * is visible. If this is a new component, mPluginName is visible, and is a + * is visible. If this is a new component, mPluginName is visible, and is a * a text field, so the user can enter the name of the new instance. * Otherwise, it's just a label, showing the existing name. */ // 'Policy Rule ID' here CMSAdminUtil.resetGBC(gbc); - mRulenameCaption = CMSAdminUtil.makeJLabel(mResource, PREFIX, + mRulenameCaption = CMSAdminUtil.makeJLabel(mResource, PREFIX, "RULENAME", null); mRulenameCaption.addMouseListener(this); mPluginLabel = new JLabel(); mPluginLabel.setVisible(false); mPluginName = new JTextField(); - + gbc.fill = gbc.NONE; gbc.weightx = 0.0; gbc.gridwidth = 1; @@ -621,10 +621,10 @@ public class CMSBaseConfigDialog extends JDialog 0,CMSAdminUtil.COMPONENT_SPACE); mListPanel.add( mPluginName, gbc ); mListPanel.add( mPluginLabel, gbc ); - + // 'Policy Plugin ID' here CMSAdminUtil.resetGBC(gbc); - mImplnameCaption = CMSAdminUtil.makeJLabel(mResource, PREFIX, + mImplnameCaption = CMSAdminUtil.makeJLabel(mResource, PREFIX, "IMPLNAME", null); mImplnameCaption.addMouseListener(this); @@ -648,7 +648,7 @@ public class CMSBaseConfigDialog extends JDialog mScrollPane = new JScrollPane(mParamPanel); mScrollPane.setBorder(CMSAdminUtil.makeEtchedBorder()); - + CMSAdminUtil.resetGBC(gbc); gbc.fill = gbc.BOTH; gbc.anchor = gbc.WEST; @@ -691,14 +691,14 @@ public class CMSBaseConfigDialog extends JDialog return mListPanel; } -} +} class ExtendedPluginInfoSet extends Hashtable { /** * Add a value for this config parameter. - * the format of 'syntax' is specified in + * the format of 'syntax' is specified in * @see com.netscape.certsrv.base.IExtendedPluginInfo */ public void add(String param, String syntax, boolean oldstyle) { @@ -725,7 +725,7 @@ class ExtendedPluginInfoSet extends Hashtable { helptext = rest; // ADDED to fix bug #383969 /* semicolon = rest.indexOf(';'); - if (semicolon == -1) { // no more semicolons + if (semicolon == -1) { // no more semicolons helptext = rest; } else { @@ -786,7 +786,7 @@ class ExtendedPluginInfoCheckBox extends JCheckBox implements ExtendedPluginInfoComponent { private ExtendedPluginInfo mEpi; - + public ExtendedPluginInfoCheckBox(ExtendedPluginInfo epi, boolean b) { super("",b); @@ -805,14 +805,14 @@ implements ExtendedPluginInfoComponent return "false"; } } - + } class ExtendedPluginInfoComboBox extends JComboBox implements ExtendedPluginInfoComponent { private ExtendedPluginInfo mEpi; - + public ExtendedPluginInfoComboBox(ExtendedPluginInfo epi, Vector v) { super(v); @@ -832,7 +832,7 @@ class ExtendedPluginInfoTextField extends JTextField implements ExtendedPluginInfoComponent { private ExtendedPluginInfo mEpi; - + public ExtendedPluginInfoTextField(ExtendedPluginInfo epi, String s) { super(s); @@ -852,7 +852,7 @@ class ExtendedPluginInfoPasswordField extends JPasswordField implements ExtendedPluginInfoComponent { private ExtendedPluginInfo mEpi; - + public ExtendedPluginInfoPasswordField(ExtendedPluginInfo epi, String s) { super(s); @@ -872,7 +872,7 @@ class ExtendedPluginInfoNumberField extends JTextField implements ExtendedPluginInfoComponent { private ExtendedPluginInfo mEpi; - + public ExtendedPluginInfoNumberField(ExtendedPluginInfo epi, String s) { super(s); @@ -893,7 +893,7 @@ implements ExtendedPluginInfoComponent static class NumberDocument extends PlainDocument { - public void insertString(int offs, String str, AttributeSet a) + public void insertString(int offs, String str, AttributeSet a) throws BadLocationException { if (str == null) { @@ -902,9 +902,9 @@ implements ExtendedPluginInfoComponent char[] chars = str.toCharArray(); int j=0; - + for (int i = 0; i < chars.length; i++) { - if ( (chars[i]<'0' || chars[i]>'9') + if ( (chars[i]<'0' || chars[i]>'9') && (chars[i] != '.') && (chars[i] != '-') ) { } @@ -929,7 +929,7 @@ implements ExtendedPluginInfoComponent */ class ExtendedPluginInfo { - + public static final int TYPE_STRING = 0; public static final int TYPE_BOOLEAN = 1; public static final int TYPE_NUMBER = 2; @@ -1015,7 +1015,7 @@ class ExtendedPluginInfo { public int getType() { return mType; } - + public void setRequired(boolean b) { mRequired = b; } diff --git a/base/console/src/com/netscape/admin/certsrv/config/CMSBaseConfigPanel.java b/base/console/src/com/netscape/admin/certsrv/config/CMSBaseConfigPanel.java index 89dce60c7..415dfe238 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/CMSBaseConfigPanel.java +++ b/base/console/src/com/netscape/admin/certsrv/config/CMSBaseConfigPanel.java @@ -35,11 +35,11 @@ import java.awt.event.*; * @version $Revision$, $Date$ */ public abstract class CMSBaseConfigPanel extends CMSBasePanel { - + /*========================================================== * variables *==========================================================*/ - + private String mTitle; // panel title actually shows protected boolean mDirty = false; // panel dirty flag protected boolean mInit = false; // true if this panel is initialized @@ -59,32 +59,32 @@ public abstract class CMSBaseConfigPanel extends CMSBasePanel { mTitle = title; } catch (MissingResourceException e) { mTitle = "Missing Title"; - } + } } - + public CMSBaseConfigPanel() { - super(""); + super(""); mTitle = "Missing Title"; } - + /*========================================================== * abstract methods *==========================================================*/ - + //Actual Instanciation of the panels public abstract void init(); - + //Implementation for saving panel information public abstract boolean applyCallback(); - + //Implementation for reset values public abstract boolean resetCallback(); - - + + /*========================================================== * public methods *==========================================================*/ - + //Implementation for calling help public void helpCallback() { CMSAdminUtil.help(mHelpToken); @@ -96,15 +96,15 @@ public abstract class CMSBaseConfigPanel extends CMSBasePanel { */ public String getTitle() { return mTitle; - } - + } + /** * set the title of the tab */ public void setTitle(String title) { mTitle = title; - } - + } + /** * see if the contents of the panel have been changed but not applied * @return true if dirty; otherwise,false. @@ -112,7 +112,7 @@ public abstract class CMSBaseConfigPanel extends CMSBasePanel { public boolean isDirty() { return mDirty; } - + /** * Called by the Tab parent to initialize the panel */ @@ -124,11 +124,11 @@ public abstract class CMSBaseConfigPanel extends CMSBasePanel { mInit = true; } } - + /*========================================================== * EVNET HANDLER METHODS - *==========================================================*/ - + *==========================================================*/ + //=== ACTIONLISTENER ===================== public void actionPerformed(ActionEvent e) { if (mInit) @@ -160,21 +160,21 @@ public abstract class CMSBaseConfigPanel extends CMSBasePanel { if (mInit) this.setDirtyFlag(); } - + /*========================================================== * protected methods *==========================================================*/ - - //=== Dirty Flag ========================= - + + //=== Dirty Flag ========================= + //set dirty flag protected void setDirtyFlag() { mDirty = true; } - + //clear dirty flag protected void clearDirtyFlag() { mDirty = false; } - + } diff --git a/base/console/src/com/netscape/admin/certsrv/config/CMSBaseLDAPPanel.java b/base/console/src/com/netscape/admin/certsrv/config/CMSBaseLDAPPanel.java index dbba4a763..a1767f213 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/CMSBaseLDAPPanel.java +++ b/base/console/src/com/netscape/admin/certsrv/config/CMSBaseLDAPPanel.java @@ -44,7 +44,7 @@ public abstract class CMSBaseLDAPPanel extends CMSBaseTab implements ItemListene private JCheckBox mEnablePublishing; private JCheckBox mEnableQueue; private Color mActiveColor; - private JLabel mHostLabel, mPortLabel, mBindAsLabel, mVersionLabel; + private JLabel mHostLabel, mPortLabel, mBindAsLabel, mVersionLabel; protected JLabel mPasswordLabel; protected AdminConnection mAdmin; protected CMSBaseResourceModel mModel; @@ -70,7 +70,7 @@ public abstract class CMSBaseLDAPPanel extends CMSBaseTab implements ItemListene this(panelName, parent, true); mPanelName = panelName; } - + public CMSBaseLDAPPanel(String panelName, CMSTabPanel parent, boolean flag) { super(panelName, parent); mServletName = getServletName(panelName); @@ -87,7 +87,7 @@ public abstract class CMSBaseLDAPPanel extends CMSBaseTab implements ItemListene GridBagLayout gb = new GridBagLayout(); GridBagConstraints gbc = new GridBagConstraints(); mCenterPanel.setLayout(gb); - + mEnablePublishing = makeJCheckBox("ENABLEPUBLISHING"); mEnablePublishing.setSelected(true); CMSAdminUtil.resetGBC(gbc); @@ -95,7 +95,7 @@ public abstract class CMSBaseLDAPPanel extends CMSBaseTab implements ItemListene gbc.fill = gbc.NONE; gbc.gridwidth = gbc.REMAINDER; gbc.weightx = 1.0; - gbc.insets = new Insets(DIFFERENT_COMPONENT_SPACE, + gbc.insets = new Insets(DIFFERENT_COMPONENT_SPACE, DIFFERENT_COMPONENT_SPACE, 0, DIFFERENT_COMPONENT_SPACE); @@ -111,7 +111,7 @@ public abstract class CMSBaseLDAPPanel extends CMSBaseTab implements ItemListene gbc.fill = gbc.NONE; gbc.gridwidth = gbc.REMAINDER; gbc.weightx = 1.0; - gbc.insets = new Insets(DIFFERENT_COMPONENT_SPACE, + gbc.insets = new Insets(DIFFERENT_COMPONENT_SPACE, DIFFERENT_COMPONENT_SPACE, 0, DIFFERENT_COMPONENT_SPACE); @@ -127,7 +127,7 @@ public abstract class CMSBaseLDAPPanel extends CMSBaseTab implements ItemListene gbc.fill = gbc.NONE; gbc.gridwidth = gbc.REMAINDER; gbc.weightx = 1.0; - gbc.insets = new Insets(DIFFERENT_COMPONENT_SPACE, + gbc.insets = new Insets(DIFFERENT_COMPONENT_SPACE, DIFFERENT_COMPONENT_SPACE, 0, DIFFERENT_COMPONENT_SPACE); @@ -135,7 +135,7 @@ public abstract class CMSBaseLDAPPanel extends CMSBaseTab implements ItemListene mEnable.addItemListener(this); if (mLDAPPublishing) mCenterPanel.add(mEnable); - + //add the destination panel CMSAdminUtil.resetGBC(gbc); gbc.anchor = gbc.NORTH; @@ -150,7 +150,7 @@ public abstract class CMSBaseLDAPPanel extends CMSBaseTab implements ItemListene serverInfo.setLayout(gb1); if (mLDAPPublishing) serverInfo.setBorder(makeTitledBorder("DESTINATION")); - + // add host name label and text field CMSAdminUtil.resetGBC(gbc); mHostLabel = makeJLabel("HOST"); @@ -213,7 +213,7 @@ public abstract class CMSBaseLDAPPanel extends CMSBaseTab implements ItemListene JLabel dummy = new JLabel(" "); CMSAdminUtil.addEntryField(serverInfo, mVersionLabel, mVersionBox, dummy, gbc); - + // add cert nickname CMSAdminUtil.resetGBC(gbc); mCertLabel = makeJLabel("CERTLIST"); @@ -268,9 +268,9 @@ public abstract class CMSBaseLDAPPanel extends CMSBaseTab implements ItemListene } protected String getServletName(String panelName) { - if (panelName.equals("LDAPSETTING")) + if (panelName.equals("LDAPSETTING")) return DestDef.DEST_SERVER_ADMIN; - else if (panelName.equals("CALDAPSETTING")) + else if (panelName.equals("CALDAPSETTING")) return DestDef.DEST_CA_PUBLISHER_ADMIN; return DestDef.DEST_RA_PUBLISHER_ADMIN; } @@ -331,7 +331,7 @@ public abstract class CMSBaseLDAPPanel extends CMSBaseTab implements ItemListene for (int index=0; tokenizer.hasMoreTokens(); index++) { String str = (String)tokenizer.nextToken(); if (str.startsWith(SERVER_CERT_NICKNAME)) - serverCertIndex = index; + serverCertIndex = index; mCertBox.addItem(str); } } else if (name.equals(Constants.PR_LDAP_CLIENT_CERT)) { @@ -341,7 +341,7 @@ public abstract class CMSBaseLDAPPanel extends CMSBaseTab implements ItemListene } } - if (version.equals("")) + if (version.equals("")) mVersionBox.setSelectedIndex(1); else mVersionBox.setSelectedItem(version); @@ -462,7 +462,7 @@ public abstract class CMSBaseLDAPPanel extends CMSBaseTab implements ItemListene private void repaintComp(JComponent component) { component.invalidate(); component.validate(); - component.repaint(1); + component.repaint(1); } public void actionPerformed(ActionEvent e) { @@ -570,7 +570,7 @@ public abstract class CMSBaseLDAPPanel extends CMSBaseTab implements ItemListene showMessageDialog("EMPTYPASSWD"); return false; } - + nvps.put(Constants.PR_DIRECTORY_MANAGER_PWD, passwd); } else { nvps.put(Constants.PR_LDAP_CLIENT_CERT, @@ -632,7 +632,7 @@ public abstract class CMSBaseLDAPPanel extends CMSBaseTab implements ItemListene } } */ - + } mModel.progressStart(); @@ -649,7 +649,7 @@ public abstract class CMSBaseLDAPPanel extends CMSBaseTab implements ItemListene UtilConsoleGlobals.getActivatedFrame(), CMSAdminUtil.wrapText(report,80), "Configuration Successful", - JOptionPane.INFORMATION_MESSAGE, + JOptionPane.INFORMATION_MESSAGE, CMSAdminUtil.getImage(CMSAdminResources.IMAGE_INFO_ICON)); clearDirtyFlag(); } else { @@ -657,7 +657,7 @@ public abstract class CMSBaseLDAPPanel extends CMSBaseTab implements ItemListene UtilConsoleGlobals.getActivatedFrame(), CMSAdminUtil.wrapText(report,80), "Configuration Error", JOptionPane.YES_NO_OPTION, - JOptionPane.ERROR_MESSAGE, + JOptionPane.ERROR_MESSAGE, CMSAdminUtil.getImage(CMSAdminResources.IMAGE_ERROR_ICON)); if (i == JOptionPane.YES_OPTION) { mAdmin.modify(mServletName, ScopeDef.SC_LDAP, diff --git a/base/console/src/com/netscape/admin/certsrv/config/CMSBaseLogPanel.java b/base/console/src/com/netscape/admin/certsrv/config/CMSBaseLogPanel.java index c0437cbc4..c4cd26ffb 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/CMSBaseLogPanel.java +++ b/base/console/src/com/netscape/admin/certsrv/config/CMSBaseLogPanel.java @@ -67,7 +67,7 @@ public abstract class CMSBaseLogPanel extends CMSBaseTab { super(panelName, parent); mModel = parent.getResourceModel(); } - + /*========================================================== * public methods *==========================================================*/ @@ -115,7 +115,7 @@ public abstract class CMSBaseLogPanel extends CMSBaseTab { gbc.fill = gbc.NONE; gbc.insets = new Insets(COMPONENT_SPACE, COMPONENT_SPACE, 0, COMPONENT_SPACE); logInfo.add(logFQC, gbc); - + mlogFQC = makeJComboBox("LOGFQC"); gbc.anchor = gbc.WEST; logInfo.add(mlogFQC, gbc); @@ -125,7 +125,7 @@ public abstract class CMSBaseLogPanel extends CMSBaseTab { gbc.fill = gbc.HORIZONTAL; gbc.weightx = 1.0; logInfo.add(dummyFQC, gbc); - + // Log File Maximum Size CMSAdminUtil.resetGBC(gbc); JLabel logMaxSiz = makeJLabel("LOGMAXSIZ"); @@ -142,7 +142,7 @@ public abstract class CMSBaseLogPanel extends CMSBaseTab { gbc.fill = gbc.HORIZONTAL; logInfo.add(mlogMaxSizText, gbc); mActiveColor = mlogMaxSizText.getBackground(); - + mMaxLabel = makeJLabel("SIZEUNIT"); gbc.weightx = 0.0; gbc.fill = gbc.NONE; @@ -314,7 +314,7 @@ public abstract class CMSBaseLogPanel extends CMSBaseTab { mlogFQC.setSelectedIndex(mFrequency); mlogMaxSizText.setText(mlogMaxSizTextData); mlogBufSizText.setText(mlogBufSizTextData); - mLogLevel.setSelectedIndex(mLevel); + mLogLevel.setSelectedIndex(mLevel); if (mIsNT) { if (mActivateNTLog.isSelected()) { @@ -353,8 +353,8 @@ public abstract class CMSBaseLogPanel extends CMSBaseTab { /*========================================================== * EVENT HANDLER METHODS - *==========================================================*/ - + *==========================================================*/ + //=== ACTIONLISTENER ===================== public void actionPerformed(ActionEvent e) { super.actionPerformed(e); diff --git a/base/console/src/com/netscape/admin/certsrv/config/CMSBaseTab.java b/base/console/src/com/netscape/admin/certsrv/config/CMSBaseTab.java index c3c707f68..6d9e445f3 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/CMSBaseTab.java +++ b/base/console/src/com/netscape/admin/certsrv/config/CMSBaseTab.java @@ -34,7 +34,7 @@ import com.netscape.management.client.util.*; * @author Jack Pan-Chen * @version $Revision$, $Date$ */ -public abstract class CMSBaseTab extends CMSBaseConfigPanel +public abstract class CMSBaseTab extends CMSBaseConfigPanel implements IRefreshTab { /*========================================================== @@ -66,28 +66,28 @@ public abstract class CMSBaseTab extends CMSBaseConfigPanel super.clearDirtyFlag(); mParent.clearDirtyTab(this); } - + //=== OVERWRITE DIALOG MESSAGE ===================== - + protected void showMessageDialog(String keyword, int messageType ) { CMSAdminUtil.showMessageDialog(mParent.mModel.getFrame(), mResource, mPanelName, keyword, messageType); } - + protected void showMessageDialog(String keyword) { showMessageDialog(keyword, ERROR_MESSAGE); } - + protected int showConfirmDialog(String keyword, int messageType ) { return CMSAdminUtil.showConfirmDialog(mParent.mModel.getFrame(), mResource, mPanelName, keyword, messageType); - } - + } + protected int showConfirmDialog(String keyword) { return showConfirmDialog(keyword, WARNING_MESSAGE); } - + protected void showErrorDialog(String message) { CMSAdminUtil.showErrorDialog(mParent.mModel.getFrame(), mResource, message, ERROR_MESSAGE); - } + } public void refresh() { } diff --git a/base/console/src/com/netscape/admin/certsrv/config/CMSBlankPanel.java b/base/console/src/com/netscape/admin/certsrv/config/CMSBlankPanel.java index b3f357564..819446e9a 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/CMSBlankPanel.java +++ b/base/console/src/com/netscape/admin/certsrv/config/CMSBlankPanel.java @@ -41,7 +41,7 @@ public class CMSBlankPanel extends CMSBaseTab { public CMSBlankPanel(ResourceModel model) { super(PANEL_NAME, null); } - + public CMSBlankPanel(ResourceModel model, CMSTabPanel parent, String name) { super(PANEL_NAME, parent); setTitle(name); @@ -50,13 +50,13 @@ public class CMSBlankPanel extends CMSBaseTab { /*========================================================== * public methods *==========================================================*/ - + /** * Actual Instanciation of the UI components - */ + */ public void init() { } - + /** * Implementation for saving panel information * @return true if save successful; otherwise, false. @@ -64,7 +64,7 @@ public class CMSBlankPanel extends CMSBaseTab { public boolean applyCallback() { return true; } - + /** * Implementation for reset values * @return true if save successful; otherwise, false. @@ -72,7 +72,7 @@ public class CMSBlankPanel extends CMSBaseTab { public boolean resetCallback() { return true; } - + /** * Implementation for calling help */ diff --git a/base/console/src/com/netscape/admin/certsrv/config/CMSCACertSettingPanel.java b/base/console/src/com/netscape/admin/certsrv/config/CMSCACertSettingPanel.java index 76aa59511..9e898ed05 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/CMSCACertSettingPanel.java +++ b/base/console/src/com/netscape/admin/certsrv/config/CMSCACertSettingPanel.java @@ -38,7 +38,7 @@ public class CMSCACertSettingPanel extends CMSCertSettingPanel { private static String PANEL_NAME = "CACERTSETTING"; private PanelMapperConfigDialog mDialog = null; private CMSTabPanel mParent; - private static final String HELPINDEX = + private static final String HELPINDEX = "configuration-ca-ldappublish-cacert-help"; /*========================================================== @@ -53,17 +53,17 @@ public class CMSCACertSettingPanel extends CMSCertSettingPanel { /*========================================================== * public methods *==========================================================*/ - + /** * Actual UI construction */ public void init() { super.init(); - + //XXX B1 - disable the publisher configuration mPublisher.setEnabled(false); //XXX B1 - disable the publisher configuration - + refresh(); } @@ -105,17 +105,17 @@ public class CMSCACertSettingPanel extends CMSCertSettingPanel { refresh(); return true; } - + /*========================================================== * EVNET HANDLER METHODS - *==========================================================*/ - + *==========================================================*/ + //=== ACTIONLISTENER ===================== public void actionPerformed(ActionEvent e) { if (e.getSource().equals(mMapper)) { Debug.println("Edit Mapper Config"); mDialog = new PanelMapperConfigDialog(_model.getFrame(), _admin); - mDialog.showDialog(_mapper.getText(), + mDialog.showDialog(_mapper.getText(), DestDef.DEST_CA_ADMIN, ScopeDef.SC_CACERT); if (!mDialog.isOK()) return; @@ -124,24 +124,24 @@ public class CMSCACertSettingPanel extends CMSCertSettingPanel { //Debug.println("Edit Publisher Config"); } } - + /*========================================================== * private methods *==========================================================*/ - + /* get config parameters associated with each mapper private NameValueParis getConfig() throws EAdminException { - + NameValuePairs response = _admin.read(DestDef.DEST_CA_ADMIN, - ScopeDef.SC_CAMAPPER, _mapper.getText()], + ScopeDef.SC_CAMAPPER, _mapper.getText()], new NameValuePairs()); return response; } */ - - /*send configuration to server + + /*send configuration to server private void sendConfig(NameValuePairs response) { - + response.add(Constants.PR_MAPPER, MAPPER[_mapper.getSelectedIndex()]); _model.progressStart(); try { @@ -153,10 +153,10 @@ public class CMSCACertSettingPanel extends CMSCertSettingPanel { return false; } _model.progressStop(); - + } */ - + private void populate(NameValuePairs nvps) { for (String name : nvps.keySet()) { String value = nvps.get(name); @@ -166,6 +166,6 @@ public class CMSCACertSettingPanel extends CMSCertSettingPanel { _publisher.setText(value); } } - } + } } diff --git a/base/console/src/com/netscape/admin/certsrv/config/CMSCAConnectorPanel.java b/base/console/src/com/netscape/admin/certsrv/config/CMSCAConnectorPanel.java index 1af02a881..35f891530 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/CMSCAConnectorPanel.java +++ b/base/console/src/com/netscape/admin/certsrv/config/CMSCAConnectorPanel.java @@ -162,7 +162,7 @@ public class CMSCAConnectorPanel extends CMSBaseTab ScopeDef.SC_CONNECTOR, name, nvps); NameValuePairs subsystems = mAdmin.search(DestDef.DEST_SERVER_ADMIN, ScopeDef.SC_SUBSYSTEM, new NameValuePairs()); - + boolean colocated = false; if (name.equals("Data Recovery Manager Connector")) { String val = values.get("id"); @@ -171,7 +171,7 @@ public class CMSCAConnectorPanel extends CMSBaseTab } ConnectorEditor editor = new ConnectorEditor(mAdmin, - mModel.getFrame(), name, DestDef.DEST_CA_ADMIN, + mModel.getFrame(), name, DestDef.DEST_CA_ADMIN, mModel.getServerInfo().getServerId(), colocated); editor.showDialog(values); } catch (EAdminException ex) { diff --git a/base/console/src/com/netscape/admin/certsrv/config/CMSCAGeneralPanel.java b/base/console/src/com/netscape/admin/certsrv/config/CMSCAGeneralPanel.java index 6f809316a..bee66d6ee 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/CMSCAGeneralPanel.java +++ b/base/console/src/com/netscape/admin/certsrv/config/CMSCAGeneralPanel.java @@ -95,7 +95,7 @@ public class CMSCAGeneralPanel extends CMSBaseTab implements ItemListener { //gbc.weighty = 1.0; gb.setConstraints(adminPanel, gbc); // mCenterPanel.add(adminPanel); - + CMSAdminUtil.resetGBC(gbc); gbc.anchor = gbc.NORTH; gbc.gridwidth = gbc.REMAINDER; diff --git a/base/console/src/com/netscape/admin/certsrv/config/CMSCALDAPPanel.java b/base/console/src/com/netscape/admin/certsrv/config/CMSCALDAPPanel.java index 735818834..a06aac901 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/CMSCALDAPPanel.java +++ b/base/console/src/com/netscape/admin/certsrv/config/CMSCALDAPPanel.java @@ -28,7 +28,7 @@ import com.netscape.management.client.util.*; public class CMSCALDAPPanel extends CMSBaseLDAPPanel { private static String PANEL_NAME = "CALDAPSETTING"; - private static final String HELPINDEX = + private static final String HELPINDEX = "configuration-ca-ldappublish-destination-help"; public CMSCALDAPPanel(CMSTabPanel parent) { diff --git a/base/console/src/com/netscape/admin/certsrv/config/CMSCRLCachePanel.java b/base/console/src/com/netscape/admin/certsrv/config/CMSCRLCachePanel.java index 51da9c58c..1e1516f2b 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/CMSCRLCachePanel.java +++ b/base/console/src/com/netscape/admin/certsrv/config/CMSCRLCachePanel.java @@ -32,10 +32,10 @@ import java.awt.event.*; * @version $Revision$, $Date$ */ public class CMSCRLCachePanel extends CMSBaseTab { - + /*========================================================== * variables - *==========================================================*/ + *==========================================================*/ private static String PANEL_NAME = "CRLCACHE"; private JCheckBox mEnableCache; @@ -83,11 +83,11 @@ public class CMSCRLCachePanel extends CMSBaseTab { public void init() { Debug.println("CRLCachePanel: init()"); _admin = _model.getServerInfo().getAdmin(); - + GridBagLayout gb = new GridBagLayout(); GridBagConstraints gbc = new GridBagConstraints(); mCenterPanel.setLayout(gb); - + //cache panel JPanel cachePanel = new JPanel(); @@ -333,7 +333,7 @@ public class CMSCRLCachePanel extends CMSBaseTab { public boolean resetCallback() { refresh(); return true; - } + } public void actionPerformed(ActionEvent e) { if (e.getSource().equals(mEnableCache)) { diff --git a/base/console/src/com/netscape/admin/certsrv/config/CMSCRLFormatPanel.java b/base/console/src/com/netscape/admin/certsrv/config/CMSCRLFormatPanel.java index 3257b90a0..4486bd80b 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/CMSCRLFormatPanel.java +++ b/base/console/src/com/netscape/admin/certsrv/config/CMSCRLFormatPanel.java @@ -33,10 +33,10 @@ import java.util.StringTokenizer; * @version $Revision$, $Date$ */ public class CMSCRLFormatPanel extends CMSBaseTab { - + /*========================================================== * variables - *==========================================================*/ + *==========================================================*/ private static String PANEL_NAME = "CRLFORMAT"; private JCheckBox mEnableExtensions; private JCheckBox mEnableExpired; @@ -203,7 +203,7 @@ public class CMSCRLFormatPanel extends CMSBaseTab { gbc.gridwidth = 1; gbc.insets = new Insets(COMPONENT_SPACE,DIFFERENT_COMPONENT_SPACE,0,0); contentsPanel.add(mProfileCertsOnly, gbc); - + mProfiles = makeJTextField(20); gbc.anchor = gbc.WEST; gbc.gridx++; @@ -329,7 +329,7 @@ public class CMSCRLFormatPanel extends CMSBaseTab { nvps.put(Constants.PR_EXTENSIONS, Constants.TRUE); else nvps.put(Constants.PR_EXTENSIONS, Constants.FALSE); - + if (mEnableExpired.isSelected()) nvps.put(Constants.PR_INCLUDE_EXPIREDCERTS, Constants.TRUE); else @@ -344,7 +344,7 @@ public class CMSCRLFormatPanel extends CMSBaseTab { nvps.put(Constants.PR_CA_CERTS_ONLY, Constants.TRUE); else nvps.put(Constants.PR_CA_CERTS_ONLY, Constants.FALSE); - + if (mProfileCertsOnly.isSelected()) nvps.put(Constants.PR_PROFILE_CERTS_ONLY, Constants.TRUE); else @@ -401,7 +401,7 @@ public class CMSCRLFormatPanel extends CMSBaseTab { public boolean resetCallback() { refresh(); return true; - } + } public void actionPerformed(ActionEvent e) { if (e.getSource().equals(mProfileCertsOnly)) { @@ -432,7 +432,7 @@ public class CMSCRLFormatPanel extends CMSBaseTab { * Override the initialize method only for this panel. * We need to refresh in case the CRLDistributionPointExtension * has modified the caCertsOnly property for us. - **/ + **/ public void initialize() { Debug.println("CMSCRLFormatPanel: intialize()"); if (!mInit) { diff --git a/base/console/src/com/netscape/admin/certsrv/config/CMSCRLIPPanel.java b/base/console/src/com/netscape/admin/certsrv/config/CMSCRLIPPanel.java index 553211eb8..eb4118555 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/CMSCRLIPPanel.java +++ b/base/console/src/com/netscape/admin/certsrv/config/CMSCRLIPPanel.java @@ -196,7 +196,7 @@ public class CMSCRLIPPanel extends CMSBaseTab mNames); editor.showDialog(new NameValuePairs()); String name = editor.getCRLName(); - CMSResourceObject node = (CMSResourceObject)(mParent.getResourceObject()); + CMSResourceObject node = (CMSResourceObject)(mParent.getResourceObject()); CMSResourceObject crlsNode = node; node = new CMSResourceObject(); node.setName(name); @@ -238,11 +238,11 @@ public class CMSCRLIPPanel extends CMSBaseTab if (mNames.contains(name)) mNames.remove(name); mDataModel.removeElementAt(index); - if (mDataModel.size() > 0) + if (mDataModel.size() > 0) mList.setSelectedIndex(0); } - CMSResourceObject node = - (CMSResourceObject)(mParent.getResourceObject()); + CMSResourceObject node = + (CMSResourceObject)(mParent.getResourceObject()); Enumeration allchildren = node.children(); while (allchildren.hasMoreElements()) { CMSResourceObject child = (CMSResourceObject)(allchildren.nextElement()); @@ -301,11 +301,11 @@ public class CMSCRLIPPanel extends CMSBaseTab String enable = nvps.get(name + "." + Constants.PR_ENABLED); if (enable != null && enable.equalsIgnoreCase(Constants.TRUE)) { - mDataModel.addElement(new JLabel(name, + mDataModel.addElement(new JLabel(name, CMSAdminUtil.getImage(CMSAdminResources.IMAGE_RULE), JLabel.LEFT)); } else { - mDataModel.addElement(new JLabel(name, + mDataModel.addElement(new JLabel(name, CMSAdminUtil.getImage(CMSAdminResources.IMAGE_RULE_DISABLE), JLabel.LEFT)); } diff --git a/base/console/src/com/netscape/admin/certsrv/config/CMSCRLSettingPanel.java b/base/console/src/com/netscape/admin/certsrv/config/CMSCRLSettingPanel.java index d420686e3..b55022921 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/CMSCRLSettingPanel.java +++ b/base/console/src/com/netscape/admin/certsrv/config/CMSCRLSettingPanel.java @@ -36,10 +36,10 @@ import java.util.Vector; * @version $Revision$, $Date$ */ public class CMSCRLSettingPanel extends CMSBaseTab { - + /*========================================================== * variables - *==========================================================*/ + *==========================================================*/ private static String PANEL_NAME = "CRLSETTING"; private JCheckBox mEnableCRL; @@ -107,7 +107,7 @@ public class CMSCRLSettingPanel extends CMSBaseTab { gbc.weightx = 1.0; gbc.weighty = 0.0; gb.setConstraints(schemaPanel, gbc); - mCenterPanel.add(schemaPanel); + mCenterPanel.add(schemaPanel); GridBagLayout gb4 = new GridBagLayout(); schemaPanel.setLayout(gb4); @@ -190,8 +190,8 @@ public class CMSCRLSettingPanel extends CMSBaseTab { gbc.weightx = 1.0; gbc.weighty = 1.0; gb.setConstraints(freqPanel, gbc); - mCenterPanel.add(freqPanel); - + mCenterPanel.add(freqPanel); + //add components GridBagLayout gb2 = new GridBagLayout(); freqPanel.setLayout(gb2); @@ -218,7 +218,7 @@ public class CMSCRLSettingPanel extends CMSBaseTab { gbc.gridwidth = 1; gbc.insets = new Insets(COMPONENT_SPACE,DIFFERENT_COMPONENT_SPACE,0,0); freqPanel.add(mDaily, gbc); - + mDailyAt = makeJTextField(30); gbc.anchor = gbc.WEST; gbc.gridx++; diff --git a/base/console/src/com/netscape/admin/certsrv/config/CMSCertSettingPanel.java b/base/console/src/com/netscape/admin/certsrv/config/CMSCertSettingPanel.java index 975ba97da..7cb8ad90a 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/CMSCertSettingPanel.java +++ b/base/console/src/com/netscape/admin/certsrv/config/CMSCertSettingPanel.java @@ -44,7 +44,7 @@ public abstract class CMSCertSettingPanel extends CMSBaseTab { /*========================================================== * constructors *==========================================================*/ - + public CMSCertSettingPanel(String panelName, CMSTabPanel parent) { super(panelName, parent); _model = parent.getResourceModel(); @@ -53,7 +53,7 @@ public abstract class CMSCertSettingPanel extends CMSBaseTab { /*========================================================== * public methods *==========================================================*/ - + /** * Actual UI construction */ @@ -63,7 +63,7 @@ public abstract class CMSCertSettingPanel extends CMSBaseTab { GridBagConstraints gbc = new GridBagConstraints(); CMSAdminUtil.resetGBC(gbc); mCenterPanel.setLayout(gb); - + JPanel mapPanel = new JPanel(); GridBagLayout gb2 = new GridBagLayout(); mapPanel.setLayout(gb2); @@ -74,13 +74,13 @@ public abstract class CMSCertSettingPanel extends CMSBaseTab { gbc.weightx = 1.0; gb.setConstraints(mapPanel, gbc); mCenterPanel.add(mapPanel); - + CMSAdminUtil.resetGBC(gbc); JLabel mapperLabel = makeJLabel("MAPPER"); _mapper = new JLabel(""); mMapper = makeJButton("MAPPER"); addEntryField(mapPanel, mapperLabel, _mapper, mMapper , gbc); - + JPanel certSetting = new JPanel(); GridBagLayout gb1 = new GridBagLayout(); certSetting.setLayout(gb1); @@ -100,11 +100,11 @@ public abstract class CMSCertSettingPanel extends CMSBaseTab { mPublisher = makeJButton("PUBLISHER"); addEntryField(certSetting, publisherLabel, _publisher, mPublisher, gbc); } - + /*========================================================== * protected methods *==========================================================*/ - + protected int getIndex(String value, String[] source) { for (int i=0; i<source.length; i++) { if (value.equals(source[i])) @@ -112,13 +112,13 @@ public abstract class CMSCertSettingPanel extends CMSBaseTab { } return -1; } - + /** * Add 3 components in the same row to a panel, assumed to be using * GridBagLayout. Customized for the LDAP certificate mappings/publishing * UI. */ - protected void addEntryField(JPanel panel, JComponent field1, + protected void addEntryField(JPanel panel, JComponent field1, JComponent field2, JComponent field3, GridBagConstraints gbc) { gbc.fill = gbc.NONE; gbc.weightx = 0.0; @@ -145,6 +145,6 @@ public abstract class CMSCertSettingPanel extends CMSBaseTab { 0,DIFFERENT_COMPONENT_SPACE); panel.add( field3, gbc ); } - + } diff --git a/base/console/src/com/netscape/admin/certsrv/config/CMSCipherPreferenceDialog.java b/base/console/src/com/netscape/admin/certsrv/config/CMSCipherPreferenceDialog.java index 69e208be5..a477bc5c4 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/CMSCipherPreferenceDialog.java +++ b/base/console/src/com/netscape/admin/certsrv/config/CMSCipherPreferenceDialog.java @@ -24,7 +24,7 @@ import java.awt.*; /** * Allows user to select the SSL cipher preferences. - * + * * @author Christine Ho * @version $Revision$, $Date$ * @see com.netscape.admin.certsrv.config @@ -41,17 +41,17 @@ public class CMSCipherPreferenceDialog extends AbstractDialog { private static final ResourceSet mHelpResource = new ResourceSet("com.netscape.admin.certsrv.certsrv-help"); Help help; - + public CMSCipherPreferenceDialog(JFrame parent, boolean isDomestic) { this(parent, isDomestic, false); } - public CMSCipherPreferenceDialog(JFrame parent, boolean isDomestic, + public CMSCipherPreferenceDialog(JFrame parent, boolean isDomestic, boolean hasFortezza) { this(parent, isDomestic, hasFortezza, SSL2|SSL3); } - public CMSCipherPreferenceDialog(JFrame parent, boolean isDomestic, + public CMSCipherPreferenceDialog(JFrame parent, boolean isDomestic, boolean hasFortezza, int SSLVersion) { super(parent, "", true, OK | CANCEL | HELP); @@ -103,10 +103,10 @@ public class CMSCipherPreferenceDialog extends AbstractDialog { switch(sslVersion) { case SSL2: cipher = ssl2CipherPref.getCipherList(); - break; + break; case SSL3: cipher = ssl3CipherPref.getCipherList(); - break; + break; default: break; } diff --git a/base/console/src/com/netscape/admin/certsrv/config/CMSCipherPreferencePane.java b/base/console/src/com/netscape/admin/certsrv/config/CMSCipherPreferencePane.java index 88faf2a71..a36f4bb32 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/CMSCipherPreferencePane.java +++ b/base/console/src/com/netscape/admin/certsrv/config/CMSCipherPreferencePane.java @@ -16,7 +16,7 @@ // All rights reserved. // --- END COPYRIGHT BLOCK --- package com.netscape.admin.certsrv.config; - + import com.netscape.admin.certsrv.security.*; import java.awt.event.*; import java.awt.*; diff --git a/base/console/src/com/netscape/admin/certsrv/config/CMSEAGeneralPanel.java b/base/console/src/com/netscape/admin/certsrv/config/CMSEAGeneralPanel.java index 2d35133df..45ecbdd42 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/CMSEAGeneralPanel.java +++ b/base/console/src/com/netscape/admin/certsrv/config/CMSEAGeneralPanel.java @@ -75,13 +75,13 @@ public class CMSEAGeneralPanel extends CMSBaseTab implements ItemListener { gbc.weighty = 1.0; gb.setConstraints(agentsPanel, gbc); mCenterPanel.add(agentsPanel); - + CMSAdminUtil.resetGBC(gbc); JLabel numberLabel = makeJLabel("NUMBER"); mNumberOfAgentsText = makeJTextField(30); CMSAdminUtil.addEntryField(agentsPanel, numberLabel, mNumberOfAgentsText, gbc); - + refresh(); } diff --git a/base/console/src/com/netscape/admin/certsrv/config/CMSEncryptionPanel.java b/base/console/src/com/netscape/admin/certsrv/config/CMSEncryptionPanel.java index 913974eaf..06b0cba4d 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/CMSEncryptionPanel.java +++ b/base/console/src/com/netscape/admin/certsrv/config/CMSEncryptionPanel.java @@ -31,7 +31,7 @@ import com.netscape.admin.certsrv.keycert.*; import com.netscape.admin.certsrv.managecert.*; /** - * Encryption panel used for setup server encryption options. + * Encryption panel used for setup server encryption options. * This is a wrapper class that emulates the CMSBaseTab API * calls. * @@ -51,10 +51,10 @@ public class CMSEncryptionPanel extends CMSBaseTab { private JPanel mEncryptPane; private JComboBox mSelection, mTokenList, mCertList; private Hashtable mCertMapping; //maps the function list items to tags - private String mSelectedItem, mSelectedToken, mSelectedCert; - private JButton mWizard, mCipherPref, mSetup; + private String mSelectedItem, mSelectedToken, mSelectedCert; + private JButton mWizard, mCipherPref, mSetup; private Hashtable mTokenCertList; //container for tokens and certs (Vector) - private boolean mIsDomestic = false; + private boolean mIsDomestic = false; private boolean mHasFortezza = false; private Vector mCipherPrefStore; private CMSCipherPreferenceDialog mCipherDialog; @@ -63,7 +63,7 @@ public class CMSEncryptionPanel extends CMSBaseTab { private boolean mWarningOn = false; private static final String HELPINDEX = "configuration-system-encryption-help"; - + /**========================================================= * constructors * @param parent the parent panel @@ -79,7 +79,7 @@ public class CMSEncryptionPanel extends CMSBaseTab { mCipherPrefStore = new Vector(); mHelpToken = HELPINDEX; } - + /*========================================================== * public methods *==========================================================*/ @@ -93,19 +93,19 @@ public class CMSEncryptionPanel extends CMSBaseTab { GridBagConstraints gbc = new GridBagConstraints(); CMSAdminUtil.resetGBC(gbc); mCenterPanel.setLayout(gb); - + //certificate settings JPanel top = new JPanel(); GridBagLayout gb2 = new GridBagLayout(); top.setLayout(gb2); top.setBorder( new CompoundBorder( BorderFactory.createTitledBorder( - mResource.getString("ENCRYPTION_BORDER_CERT_LABEL")), + mResource.getString("ENCRYPTION_BORDER_CERT_LABEL")), new EmptyBorder(-3, 0, DIFFERENT_COMPONENT_SPACE - 3, 0))); - + //add selection combobox JLabel label1 = makeJLabel("SELECT"); mSelection = new JComboBox(); @@ -116,10 +116,10 @@ public class CMSEncryptionPanel extends CMSBaseTab { mSelectedItem = (String) mSelection.getSelectedItem(); } else { //disable if nothing there - mSelection.setEnabled(false); + mSelection.setEnabled(false); } mSelection.addItemListener(this); - + //add encryption panel mEncryptPane = createCertEntry(); //mEncryptPane = new InnerEncryptionPane(mConsoleInfo); @@ -134,13 +134,13 @@ public class CMSEncryptionPanel extends CMSBaseTab { COMPONENT_SPACE,0,COMPONENT_SPACE); gb2.setConstraints(mEncryptPane, gbc); top.add(mEncryptPane); - + CMSAdminUtil.resetGBC(gbc); gbc.gridwidth = gbc.REMAINDER; gbc.weightx = 1.0; gb.setConstraints(top, gbc); mCenterPanel.add(top); - + mWizard = makeJButton("WIZARD"); mCipherPref = makeJButton("CIPHERPREF"); mSetup = makeJButton("SETUP"); @@ -150,20 +150,20 @@ public class CMSEncryptionPanel extends CMSBaseTab { //addButtonEntryField(mCenterPanel, mSetup, mWizard, mCipherPref, gbc); addButtonEntryField(mCenterPanel, mSetup, mWizard, gbc); //addButtonEntryField(mCenterPanel, mCipherPref, gbc); - + /* retrieve data from server and * feed data into mEncryptionPane for display ... */ refresh(); } - + /** * Implementation for saving panel information * @return true if save successful; otherwise, false. */ public boolean applyCallback() { if (mWarningOn) { - String errorMsg = + String errorMsg = mResource.getString(mPanelName+"_LABEL_WARNING_LABEL"); JOptionPane.showMessageDialog(new JFrame(), errorMsg, "Warning", JOptionPane.WARNING_MESSAGE, @@ -174,22 +174,22 @@ public class CMSEncryptionPanel extends CMSBaseTab { //save current changes if modified saveChanges((String) mSelection.getSelectedItem()); - + //construct NVP parameters NameValuePairs nvp = new NameValuePairs(); for (Enumeration e = mCertMapping.keys() ; e.hasMoreElements() ;) { - CipherEntryData data = + CipherEntryData data = (CipherEntryData)mCertMapping.get(e.nextElement()); nvp.put(data.getTagName(), data.getTokenName() + "," + data.getCertName()); } - + if (updateCertMap(nvp)) { mWarningOn = false; clearDirtyFlag(); return true; } - - return false; + + return false; } /** @@ -208,7 +208,7 @@ public class CMSEncryptionPanel extends CMSBaseTab { * refresh the panel and update data */ public void refresh() { - + //call server to get the encryption settings NameValuePairs response; try { @@ -219,14 +219,14 @@ public class CMSEncryptionPanel extends CMSBaseTab { e.getMessage(), CMSAdminUtil.ERROR_MESSAGE); return; } - + //setup the data and UI updateFlag = true; cleanup(); setupDataContainer(response); setupComboSelection(); updateFlag = false; - + clearDirtyFlag(); } @@ -246,47 +246,47 @@ public class CMSEncryptionPanel extends CMSBaseTab { } */ if (e.getSource().equals(mSetup)) { - ManageCertDialog manageDialog = + ManageCertDialog manageDialog = new ManageCertDialog(mParent.getResourceModel().getFrame()); manageDialog.showDialog(mParent.getResourceModel().getServerInfo().getAdmin()); } if (e.getSource().equals(mWizard)) { Debug.println("Wizard"); - - //XXX launch OUR OWN wizard + + //XXX launch OUR OWN wizard CertSetupWizardInfo info = new CertSetupWizardInfo(mConnection, mConsoleInfo); CertSetupWizard wizard = new CertSetupWizard(mParent.getResourceModel(), info); // mParent.getResourceModel().getFrame(), info); //KeyCertWizard wizard = new KeyCertWizard(mConnection); - + //XXX we should update the settings to reflect the changes - - + + return; - } + } if (e.getSource().equals(mCipherPref)) { Debug.println("Wizard"); - + if (mCipherDialog == null) { mCipherDialog = new CMSCipherPreferenceDialog(mParent.mModel.getFrame(), - mIsDomestic, - mHasFortezza, + mIsDomestic, + mHasFortezza, CMSCipherPreferenceDialog.SSL2|CMSCipherPreferenceDialog.SSL3); - + } - + refresh(); setupCipherDialog(mCipherDialog); - + mCipherDialog.show(); - + if (!mCipherDialog.isModified()) return; - + //Save the cipher settings StringBuffer buf = new StringBuffer(); - + if (mCipherDialog.isSSLEnabled(mCipherDialog.SSL2)) { String[] v2 = mCipherDialog.getSSLPreference(mCipherDialog.SSL2); for (int i=0; i< v2.length; i++) { @@ -297,30 +297,30 @@ public class CMSEncryptionPanel extends CMSBaseTab { } } } - + if (mCipherDialog.isSSLEnabled(mCipherDialog.SSL3)) { String[] v3 = mCipherDialog.getSSLPreference(mCipherDialog.SSL3); for (int i=0; i< v3.length; i++) { if (mCipherDialog.isCipherEnabled(v3[i])) { - if (buf.length()>0) + if (buf.length()>0) buf.append(","); buf.append(v3[i]); } } } - + updateCipherPref(buf.toString()); - + //save the new settings mCipherDialog.setSaved(true); - + return; } } - + //== ItemListener == public void itemStateChanged(ItemEvent e){ - + if (e.getSource().equals(mSelection)) { if (e.getStateChange() == e.SELECTED) { if (!mSelectionIgnore) { @@ -349,35 +349,35 @@ public class CMSEncryptionPanel extends CMSBaseTab { } mWarningOn = true; } - + /*========================================================== * Private Methods *==========================================================*/ - + //save the mappings if changes made private void saveChanges(String entry) { if ( (!mSelectedToken.equals((String)mTokenList.getSelectedItem())) || (!mSelectedCert.equals((String)mCertList.getSelectedItem())) ) { - + CipherEntryData data = (CipherEntryData) mCertMapping.get(entry); data.setData((String)mTokenList.getSelectedItem(), (String)mCertList.getSelectedItem()); } } - //cleanup the + //cleanup the private void cleanup() { mTokenCertList.clear(); mCipherPrefStore.removeAllElements(); mTokenList.removeAllItems(); mCertList.removeAllItems(); } - + //setup the cipher dialog private void setupCipherDialog(CMSCipherPreferenceDialog dialog) { Debug.println("setupCipherDialog"); dialog.setSSLEnabled(dialog.SSL3,true); - + //set selected/unselected ciphers String[] v2 = dialog.getSSLPreference(dialog.SSL2); @@ -410,26 +410,26 @@ public class CMSEncryptionPanel extends CMSBaseTab { dialog.setCipherEnabled(v3[i], false); } } - + mCipherDialog.setSaved(true); } - + //initialize the data containers private void setupDataContainer(NameValuePairs response) { - + //setup security version flag String version = response.get(Constants.PR_CIPHER_VERSION); if ( (version != null) && (version.equals( Constants.PR_CIPHER_VERSION_DOMESTIC)) ) { - mIsDomestic = true; + mIsDomestic = true; } - + //setup fortezza flag String fortezza = response.get(Constants.PR_CIPHER_FORTEZZA); if ( (fortezza != null) && (fortezza.equalsIgnoreCase("TRUE")) ){ - mHasFortezza = true; + mHasFortezza = true; } - + //setup cipher preference settings String cipherpref = response.get(Constants.PR_CIPHER_PREF); //Debug.println("cipher preference: "+cipherpref); @@ -441,9 +441,9 @@ public class CMSEncryptionPanel extends CMSBaseTab { mCipherPrefStore.addElement(pref); } } else { - Debug.println("ERROR: CMSEncryptionPanel: setupDataContainer()- no cert pref list"); + Debug.println("ERROR: CMSEncryptionPanel: setupDataContainer()- no cert pref list"); } - + //setup the cipher entry data - loop through table and retrieve //the current mappings mSelectionIgnore = true; @@ -457,7 +457,7 @@ public class CMSEncryptionPanel extends CMSBaseTab { String token = tokenizer.nextToken().trim(); String cert = tokenizer.nextToken().trim(); data.setData(token, cert); - } catch(Exception ex) { + } catch(Exception ex) { Debug.println("ERROR: CMSEncryptionPanel: setupDataContainer()- no token/cert not complete"); } } else { @@ -468,7 +468,7 @@ public class CMSEncryptionPanel extends CMSBaseTab { } } mSelectionIgnore = false; - + //setup the token-cert list data table String tokenlist = response.get(Constants.PR_TOKEN_LIST); if ( (tokenlist != null) && (!tokenlist.trim().equals("")) ) { @@ -476,7 +476,7 @@ public class CMSEncryptionPanel extends CMSBaseTab { while (tokenizer.hasMoreTokens()) { String token = tokenizer.nextToken().trim(); Debug.println("Token: "+token); - + //get the certificate associated with this token String certList = response.get(Constants.PR_TOKEN_PREFIX + token); Vector certVector = new Vector(); @@ -486,31 +486,31 @@ public class CMSEncryptionPanel extends CMSBaseTab { certVector.addElement(tokenizer2.nextToken().trim()); } } else { - Debug.println("WARNING: CMSEncryptionPanel: setupDataContainer()- no certlist for: "+token); + Debug.println("WARNING: CMSEncryptionPanel: setupDataContainer()- no certlist for: "+token); } - + //set the token-cert to hashtable mTokenCertList.put(token, certVector); mTokenList.addItem(token); } } else { - Debug.println("ERROR: CMSEncryptionPanel: setupDataContainer()- no tokenlist"); + Debug.println("ERROR: CMSEncryptionPanel: setupDataContainer()- no tokenlist"); } - + //setup the initial combobox selection String newToken = (String) mTokenList.getSelectedItem(); mSelectedToken = newToken; mCertList.removeAllItems(); Vector list = (Vector) mTokenCertList.get(newToken); for (int i=0; i< list.size(); i++) - mCertList.addItem(list.elementAt(i)); + mCertList.addItem(list.elementAt(i)); } - + //setup combobox selection private void setupComboSelection() { //get current function selection CipherEntryData data = (CipherEntryData) mCertMapping.get(mSelection.getSelectedItem()); - + //select correct token from the token list String oldToken = (String) mTokenList.getSelectedItem(); String newToken = data.getTokenName(); @@ -523,7 +523,7 @@ public class CMSEncryptionPanel extends CMSBaseTab { mCertList.setSelectedItem(data.getCertName()); mSelectedCert = data.getCertName(); } - + //setup the certlist combo private void setupCertCombo() { String newToken = (String) mTokenList.getSelectedItem(); @@ -532,7 +532,7 @@ public class CMSEncryptionPanel extends CMSBaseTab { for (int i=0; i< list.size(); i++) mCertList.addItem(list.elementAt(i)); } - + //creating the certificate mapping UI components private JPanel createCertEntry() { JPanel panel = new JPanel(); @@ -540,15 +540,15 @@ public class CMSEncryptionPanel extends CMSBaseTab { GridBagConstraints gbc = new GridBagConstraints(); CMSAdminUtil.resetGBC(gbc); panel.setLayout(gb); - + //set border panel.setBorder( new CompoundBorder( - BorderFactory.createTitledBorder(mResource.getString("ENCRYPTION_BORDER_MAPTO_LABEL")), + BorderFactory.createTitledBorder(mResource.getString("ENCRYPTION_BORDER_MAPTO_LABEL")), new EmptyBorder(-3, 0, CMSAdminUtil.DIFFERENT_COMPONENT_SPACE, 0))); - + //add components mTokenList = new JComboBox(); mTokenList.addItemListener(this); @@ -559,13 +559,13 @@ public class CMSEncryptionPanel extends CMSBaseTab { CMSAdminUtil.addEntryField(panel, label1, mTokenList, label2, mCertList, gbc); return panel; } - + /** * The certificates used by each subsystem are stored as cert list * strings in the resource file using the PR_ prefix tags. */ private void updateCertSelection() { - //get installed subsystem + //get installed subsystem Vector v = mServerInfo.getInstalledSubsystems(); //add default system certificate list @@ -583,7 +583,7 @@ public class CMSEncryptionPanel extends CMSBaseTab { loadCertList(certname); } } - + //create additional subsystem certificate list for (int i=0; i< v.size(); i++) { String name = (String)v.elementAt(i); @@ -597,11 +597,11 @@ public class CMSEncryptionPanel extends CMSBaseTab { } } } catch (MissingResourceException e) { - Debug.println("ERROR: unable retrieving subsystem certificate list: "+name); + Debug.println("ERROR: unable retrieving subsystem certificate list: "+name); } - } + } } - + //register the certificate and mapping entry private void loadCertList(String certTag) { //add to selection list @@ -616,7 +616,7 @@ public class CMSEncryptionPanel extends CMSBaseTab { mCertMapping.put(name, new CipherEntryData(certTag)); } - private static void addTopEntryField(JPanel panel, JComponent label, + private static void addTopEntryField(JPanel panel, JComponent label, JComponent field, GridBagConstraints gbc) { gbc.fill = gbc.NONE; gbc.weightx = 0.0; @@ -636,7 +636,7 @@ public class CMSEncryptionPanel extends CMSBaseTab { panel.add( field, gbc ); } - private static void addButtonEntryField(JPanel panel, + private static void addButtonEntryField(JPanel panel, JComponent field, GridBagConstraints gbc) { gbc.fill = gbc.NONE; gbc.weightx = 0.0; @@ -657,9 +657,9 @@ public class CMSEncryptionPanel extends CMSBaseTab { gbc.insets = new Insets(COMPONENT_SPACE,COMPONENT_SPACE, 0,COMPONENT_SPACE); panel.add( field, gbc ); - } + } - private static void addButtonEntryField(JPanel panel, JComponent label, + private static void addButtonEntryField(JPanel panel, JComponent label, JComponent field, GridBagConstraints gbc) { gbc.fill = gbc.NONE; gbc.weightx = 0.0; @@ -669,7 +669,7 @@ public class CMSEncryptionPanel extends CMSBaseTab { //gbc.insets = new Insets(DIFFERENT_COMPONENT_SPACE,DIFFERENT_COMPONENT_SPACE,0,0); gbc.insets = new Insets(COMPONENT_SPACE,COMPONENT_SPACE,0,0); panel.add(new JLabel("")); - + gbc.gridx++; gbc.weightx = 1.0; panel.add( label, gbc ); @@ -684,9 +684,9 @@ public class CMSEncryptionPanel extends CMSBaseTab { gbc.insets = new Insets(COMPONENT_SPACE,COMPONENT_SPACE, 0,COMPONENT_SPACE); panel.add( field, gbc ); - } + } - private static void addButtonEntryField(JPanel panel, JComponent label, + private static void addButtonEntryField(JPanel panel, JComponent label, JComponent field, JComponent field1, GridBagConstraints gbc) { gbc.fill = gbc.NONE; gbc.weightx = 0.0; @@ -696,7 +696,7 @@ public class CMSEncryptionPanel extends CMSBaseTab { //gbc.insets = new Insets(DIFFERENT_COMPONENT_SPACE,DIFFERENT_COMPONENT_SPACE,0,0); gbc.insets = new Insets(COMPONENT_SPACE,COMPONENT_SPACE,0,0); panel.add(new JLabel("")); - + gbc.gridx++; gbc.weightx = 1.0; panel.add( label, gbc ); @@ -722,14 +722,14 @@ public class CMSEncryptionPanel extends CMSBaseTab { gbc.insets = new Insets(COMPONENT_SPACE,COMPONENT_SPACE, 0,COMPONENT_SPACE); panel.add( field1, gbc ); - } + } /*========================================================== - * SEND STUFF TO SERVER - *==========================================================*/ - + * SEND STUFF TO SERVER + *==========================================================*/ + //retrieve security information from the server side - private NameValuePairs updateSecurityInformation() + private NameValuePairs updateSecurityInformation() throws EAdminException { Debug.println("Get Security Information"); @@ -738,32 +738,32 @@ public class CMSEncryptionPanel extends CMSBaseTab { nvp.put(Constants.PR_CIPHER_VERSION, ""); nvp.put(Constants.PR_CIPHER_FORTEZZA, ""); nvp.put(Constants.PR_TOKEN_LIST, ""); - + //create installed certificate list data request for (Enumeration e = mCertMapping.elements(); e.hasMoreElements() ;) { CipherEntryData data = (CipherEntryData)e.nextElement(); nvp.put(data.getTagName(), ""); } - + NameValuePairs response; - + response = mConnection.read(DestDef.DEST_SERVER_ADMIN, ScopeDef.SC_ENCRYPTION, Constants.RS_ID_CONFIG, - nvp); - + nvp); + Debug.println("Received: "+response.toString()); - + return response; } - + //modify cipher preference private void updateCipherPref(String list) { Debug.println("Set Cipher Preference: "+list); - + NameValuePairs nvp = new NameValuePairs(); nvp.put(Constants.PR_CIPHER_PREF, list); - + //send to server try { mConnection.modify(DestDef.DEST_SERVER_ADMIN, @@ -777,11 +777,11 @@ public class CMSEncryptionPanel extends CMSBaseTab { return; } } - + //modify certificate mapping private boolean updateCertMap(NameValuePairs config) { Debug.println("Set Certificate Mapping: "+config.toString()); - + //send to server try { mConnection.modify(DestDef.DEST_SERVER_ADMIN, @@ -794,42 +794,42 @@ public class CMSEncryptionPanel extends CMSBaseTab { e.getMessage(), CMSAdminUtil.ERROR_MESSAGE); return false; } - + return true; - } - + } + } //internal data structure class CipherEntryData { - + String mTag; String mToken; String mCert; - + public CipherEntryData(String tag) { mTag = tag; } - + public void setData(String token, String cert) { mToken = token; mCert = cert; } - + public String getCertName() { - return mCert; + return mCert; } - + public String getTokenName() { - return mToken; + return mToken; } - + public String getTagName() { - return mTag; + return mTag; } - + public String toString() { - return mTag+"-"+mToken+":"+mCert; + return mTag+"-"+mToken+":"+mCert; } } diff --git a/base/console/src/com/netscape/admin/certsrv/config/CMSErrorLogPanel.java b/base/console/src/com/netscape/admin/certsrv/config/CMSErrorLogPanel.java index 23b4ececa..7160276d7 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/CMSErrorLogPanel.java +++ b/base/console/src/com/netscape/admin/certsrv/config/CMSErrorLogPanel.java @@ -47,7 +47,7 @@ public class CMSErrorLogPanel extends CMSBaseLogPanel { mHelpToken = HELPINDEX; mIsNT = isNT; } - + /*========================================================== * public methods *==========================================================*/ @@ -90,14 +90,14 @@ public class CMSErrorLogPanel extends CMSBaseLogPanel { private void parseVals(NameValuePairs nvp) { if (nvp.get(Constants.PR_LOG_ENABLED).equalsIgnoreCase( - Constants.TRUE)) + Constants.TRUE)) activateLog.setSelected(true); else activateLog.setSelected(false); mLevel = Integer.parseInt(nvp.get(Constants.PR_LOG_LEVEL)); mlogBufSizTextData = nvp.get(Constants.PR_LOG_BUFFERSIZE); mlogMaxSizTextData = nvp.get(Constants.PR_LOG_MAXFILESIZE); - int val = + int val = Integer.parseInt(nvp.get(Constants.PR_LOG_ROLLEROVER_INTERVAL)); mFrequency = getRollOverIndex(val); } @@ -159,7 +159,7 @@ public class CMSErrorLogPanel extends CMSBaseLogPanel { clearDirtyFlag(); return true; } - + /** * Implementation for reset values * @return true if save successful; otherwise, false. @@ -171,8 +171,8 @@ public class CMSErrorLogPanel extends CMSBaseLogPanel { /*========================================================== * EVENT HANDLER METHODS - *==========================================================*/ - + *==========================================================*/ + //=== ACTIONLISTENER ===================== public void actionPerformed(ActionEvent e) { super.actionPerformed(e); diff --git a/base/console/src/com/netscape/admin/certsrv/config/CMSKRAAutoPanel.java b/base/console/src/com/netscape/admin/certsrv/config/CMSKRAAutoPanel.java index f408e7297..8a0160101 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/CMSKRAAutoPanel.java +++ b/base/console/src/com/netscape/admin/certsrv/config/CMSKRAAutoPanel.java @@ -27,7 +27,7 @@ import java.awt.event.*; /** * KRA recovery management tab - * + * * @author Christine Ho * @version $Revision$, $Date$ */ @@ -186,7 +186,7 @@ public class CMSKRAAutoPanel extends CMSBaseUGTab { } public void actionPerformed(ActionEvent e) { - + if (e.getActionCommand().equals("autoButton")) { String text = mEnableAuto.getText(); if (text.equals(mEnableLabel)) { @@ -211,7 +211,7 @@ public class CMSKRAAutoPanel extends CMSBaseUGTab { refresh(); } else if (e.getSource().equals(mHelp)) { helpCallback(); - } + } } public void mouseClicked(MouseEvent e) { diff --git a/base/console/src/com/netscape/admin/certsrv/config/CMSLDAPSettingPanel.java b/base/console/src/com/netscape/admin/certsrv/config/CMSLDAPSettingPanel.java index 641a6641e..6bfec15b2 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/CMSLDAPSettingPanel.java +++ b/base/console/src/com/netscape/admin/certsrv/config/CMSLDAPSettingPanel.java @@ -33,7 +33,7 @@ import java.awt.event.*; public class CMSLDAPSettingPanel extends CMSBaseTab { private static String PANEL_NAME = "LDAPSETTING"; - private static final String HELPINDEX = + private static final String HELPINDEX = "configuration-database-settings-help"; private JTextField mHostNameText; private JTextField mPortText; @@ -306,7 +306,7 @@ public class CMSLDAPSettingPanel extends CMSBaseTab { nvps.put(Constants.PR_LDAP_MAX_CONNS, maxConns); nvps.put(Constants.PR_LDAP_MIN_CONNS, minConns); /* - nvps.add(Constants.PR_LDAP_VERSION, + nvps.add(Constants.PR_LDAP_VERSION, (String)mVersionBox.getSelectedItem()); */ diff --git a/base/console/src/com/netscape/admin/certsrv/config/CMSNetworkPanel.java b/base/console/src/com/netscape/admin/certsrv/config/CMSNetworkPanel.java index 03458d2b1..0716f2bc8 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/CMSNetworkPanel.java +++ b/base/console/src/com/netscape/admin/certsrv/config/CMSNetworkPanel.java @@ -47,7 +47,7 @@ public class CMSNetworkPanel extends CMSBaseTab { private static final int MAX_PORT = 65535; private static final int MIN_PORT = 1; - private Color mActiveColor; + private Color mActiveColor; // TextField for port private JTextField mAdminSSLPortText; @@ -88,7 +88,7 @@ public class CMSNetworkPanel extends CMSBaseTab { mModel = parent.getResourceModel(); mHelpToken = HELPINDEX; } - + /*========================================================== * public methods *==========================================================*/ @@ -122,7 +122,7 @@ public class CMSNetworkPanel extends CMSBaseTab { JLabel adminBacklog = makeJLabel("ADMINBACKLOG"); mAdminSSLBacklogText = makeJTextField(10); JLabel dummy1 = new JLabel(" "); - CMSAdminUtil.addEntryField(adminPanel, adminSSLport, + CMSAdminUtil.addEntryField(adminPanel, adminSSLport, mAdminSSLPortText, adminBacklog, mAdminSSLBacklogText, dummy1, gbc); mActiveColor = mAdminSSLPortText.getBackground(); @@ -138,7 +138,7 @@ public class CMSNetworkPanel extends CMSBaseTab { gbc.weightx = 1.0; gb.setConstraints(agentPanel, gbc); mCenterPanel.add(agentPanel); - + CMSAdminUtil.resetGBC(gbc); JLabel agentPort = makeJLabel("AGENTSSLPORT"); mAgentSSLPortText = makeJTextField(10); @@ -168,7 +168,7 @@ public class CMSNetworkPanel extends CMSBaseTab { mGatewayBacklogText = makeJTextField(10); mEnableLabel = makeJLabel("ENABLED"); mEnable = makeJCheckBox(); - CMSAdminUtil.addEntryField(gatewayPanel, mPortLabel, mGatewayPortText, + CMSAdminUtil.addEntryField(gatewayPanel, mPortLabel, mGatewayPortText, mBacklogLabel, mGatewayBacklogText, mEnableLabel, mEnable, gbc); CMSAdminUtil.resetGBC(gbc); @@ -177,10 +177,10 @@ public class CMSNetworkPanel extends CMSBaseTab { mSSLBacklogLabel = makeJLabel("SECUREEEBACKLOG"); mGatewaySSLBacklogText = makeJTextField(10); JLabel dummy2 = new JLabel(" "); - CMSAdminUtil.addEntryField(gatewayPanel, mSSLPortLabel, + CMSAdminUtil.addEntryField(gatewayPanel, mSSLPortLabel, mGatewaySSLPortText, mSSLBacklogLabel, mGatewaySSLBacklogText, dummy2, gbc); - + refresh(); } @@ -200,14 +200,14 @@ public class CMSNetworkPanel extends CMSBaseTab { //String docroot = mDocRootText.getText().trim(); //check blank fields - if (adminSSLPortStr.equals("") || + if (adminSSLPortStr.equals("") || (gatewayPortStr.equals("") && mGatewayPortText.isEnabled()) || - (gatewaySSLPortStr.equals("") && mGatewaySSLPortText.isEnabled()) || - agentSSLPortStr.equals("") || - adminSSLBacklogStr.equals("") || + (gatewaySSLPortStr.equals("") && mGatewaySSLPortText.isEnabled()) || + agentSSLPortStr.equals("") || + adminSSLBacklogStr.equals("") || (gatewayBacklogStr.equals("") && mGatewayBacklogText.isEnabled()) || (gatewaySSLBacklogStr.equals("") && mGatewaySSLBacklogText.isEnabled()) || - agentSSLBacklogStr.equals("") ) { + agentSSLBacklogStr.equals("") ) { showMessageDialog("BLANKFIELD"); return false; } @@ -380,11 +380,11 @@ public class CMSNetworkPanel extends CMSBaseTab { mAgentSSLBacklogText.setText(str); } else if (name.equals(Constants.PR_GATEWAY_S_BACKLOG)) { if (str.equals(DISABLED)) { - enableFields(mSSLBacklogLabel, mGatewaySSLBacklogText, + enableFields(mSSLBacklogLabel, mGatewaySSLBacklogText, false, getBackground()); mGatewaySSLBacklogText.setText(""); } else { - enableFields(mSSLBacklogLabel, mGatewaySSLBacklogText, + enableFields(mSSLBacklogLabel, mGatewaySSLBacklogText, true, mActiveColor); mGatewaySSLBacklogText.setText(str); } @@ -427,7 +427,7 @@ public class CMSNetworkPanel extends CMSBaseTab { repaint(1); } - private void enableFields(JLabel label, JTextComponent text, + private void enableFields(JLabel label, JTextComponent text, boolean enabled, Color color) { label.setEnabled(enabled); text.setEnabled(enabled); diff --git a/base/console/src/com/netscape/admin/certsrv/config/CMSOCSPGeneralPanel.java b/base/console/src/com/netscape/admin/certsrv/config/CMSOCSPGeneralPanel.java index 37dfbef44..4b3a9d737 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/CMSOCSPGeneralPanel.java +++ b/base/console/src/com/netscape/admin/certsrv/config/CMSOCSPGeneralPanel.java @@ -79,7 +79,7 @@ public class CMSOCSPGeneralPanel extends CMSBaseTab implements ItemListener { //gbc.weighty = 1.0; // gb.setConstraints(adminPanel, gbc); // mCenterPanel.add(adminPanel); - + CMSAdminUtil.resetGBC(gbc); gbc.anchor = gbc.NORTH; @@ -89,7 +89,7 @@ public class CMSOCSPGeneralPanel extends CMSBaseTab implements ItemListener { gbc.weighty = 1.0; gb.setConstraints(signingPanel, gbc); mCenterPanel.add(signingPanel); - + CMSAdminUtil.resetGBC(gbc); JLabel signingLabel = makeJLabel("ALGORITHM"); diff --git a/base/console/src/com/netscape/admin/certsrv/config/CMSPasswordDialog.java b/base/console/src/com/netscape/admin/certsrv/config/CMSPasswordDialog.java index 47cb6c865..f53aae76c 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/CMSPasswordDialog.java +++ b/base/console/src/com/netscape/admin/certsrv/config/CMSPasswordDialog.java @@ -37,13 +37,13 @@ import com.netscape.admin.certsrv.connection.*; * @date 07/21/98 */ -public class CMSPasswordDialog extends JDialog +public class CMSPasswordDialog extends JDialog implements ActionListener, DocumentListener, MouseListener { - + /*========================================================== * variables - *==========================================================*/ + *==========================================================*/ private static final int WIDTH = 300; private static final int HEIGHT = 216; @@ -59,12 +59,12 @@ public class CMSPasswordDialog extends JDialog private ResourceBundle mResource; private AdminConnection mAdmin; private JButton mOK, mCancel, mHelp; - - + + /*========================================================== * constructors *==========================================================*/ - + /** * @param parent parent frame */ @@ -72,7 +72,7 @@ public class CMSPasswordDialog extends JDialog super(parent, true); mParentFrame = parent; mAdmin = conn; - mResource = + mResource = ResourceBundle.getBundle(CMSAdminResources.class.getName()); setTitle(mResource.getString(PREFIX+"_TITLE")); setLocationRelativeTo(parent); @@ -96,30 +96,30 @@ public class CMSPasswordDialog extends JDialog center.add(contentPanel); CMSAdminUtil.resetGBC(gbc); - JLabel lUsername = + JLabel lUsername = new JLabel(mResource.getString(PREFIX+"_LABEL_USERID_LABEL")); lUsername.setToolTipText( mResource.getString(PREFIX+"_LABEL_USERID_TTIP")); mUsernameField = new JLabel(uid); - + CMSAdminUtil.addEntryField(contentPanel, lUsername, mUsernameField, gbc); CMSAdminUtil.resetGBC(gbc); - JLabel lOldPassword= + JLabel lOldPassword= new JLabel(mResource.getString(PREFIX+"_LABEL_OLDPASSWORD_LABEL")); lOldPassword.setToolTipText( mResource.getString(PREFIX+"_LABEL_OLDPASSWORD_TTIP")); mOldPasswordField = new JPasswordField(); mOldPasswordField.getDocument().addDocumentListener(this); mOldPasswordField.addMouseListener(this); - CMSAdminUtil.addEntryField(contentPanel, lOldPassword, + CMSAdminUtil.addEntryField(contentPanel, lOldPassword, mOldPasswordField, gbc); CMSAdminUtil.resetGBC(gbc); - JLabel lPassword= + JLabel lPassword= new JLabel(mResource.getString(PREFIX+"_LABEL_PASSWORD_LABEL")); lPassword.setToolTipText( mResource.getString(PREFIX+"_LABEL_PASSWORD_TTIP")); @@ -130,13 +130,13 @@ public class CMSPasswordDialog extends JDialog gbc); CMSAdminUtil.resetGBC(gbc); - JLabel lPasswordAgain= + JLabel lPasswordAgain= new JLabel(mResource.getString(PREFIX+"_LABEL_PASSWORD_AGAIN_LABEL")); lPassword.setToolTipText( mResource.getString(PREFIX+"_LABEL_PASSWORD_AGAIN_TTIP")); mPasswordFieldAgain = new JPasswordField(); mPasswordFieldAgain.getDocument().addDocumentListener(this); - mPasswordFieldAgain.addMouseListener(this); + mPasswordFieldAgain.addMouseListener(this); CMSAdminUtil.addEntryField(contentPanel, lPasswordAgain, mPasswordFieldAgain, gbc); @@ -200,19 +200,19 @@ public class CMSPasswordDialog extends JDialog public String getPassword() { return mPassword; } - - + + /*========================================================== * EVNET HANDLER METHODS *==========================================================*/ - + public void actionPerformed(ActionEvent evt) { if (evt.getSource().equals(mOK)) { String userid = mUsernameField.getText().trim(); String oldpassword = mOldPasswordField.getText().trim(); String newpassword = mPasswordField.getText().trim(); String passwordAgain = mPasswordFieldAgain.getText().trim(); - + /* PROACTIVE VERIFICATION if (oldpassword.equals("") || newpassword.equals("") || passwordAgain.equals("")) { @@ -225,9 +225,9 @@ public class CMSPasswordDialog extends JDialog CMSAdminUtil.showMessageDialog(mParentFrame, mResource, PREFIX, "CONFIRMED", CMSAdminUtil.ERROR_MESSAGE); return; - } - - + } + + NameValuePairs nvps = new NameValuePairs(); nvps.put(Constants.PR_OLD_AGENT_PWD, oldpassword); nvps.put(Constants.PR_AGENT_PWD, newpassword); @@ -241,7 +241,7 @@ public class CMSPasswordDialog extends JDialog if (!ex.getMessage().equals("Server Error")) return; } - + mCanceled = false; this.dispose(); return; @@ -253,21 +253,21 @@ public class CMSPasswordDialog extends JDialog return; } } - - + + //== DocumentListener == public void insertUpdate(DocumentEvent e) { setButtons(); } - + public void removeUpdate(DocumentEvent e){ setButtons(); } - + public void changedUpdate(DocumentEvent e){ setButtons(); } - + //==== MOUSELISTENER ====================== public void mouseClicked(MouseEvent e) { setButtons(); @@ -277,34 +277,34 @@ public class CMSPasswordDialog extends JDialog public void mouseReleased(MouseEvent e) {} public void mouseEntered(MouseEvent e) {} public void mouseExited(MouseEvent e) { - setButtons(); - } - - + setButtons(); + } + + /*========================================================== * private methods - *==========================================================*/ - + *==========================================================*/ + private JPanel makeActionPane() { - mOK = CMSAdminUtil.makeJButton(mResource, PREFIX, "OK", null, + mOK = CMSAdminUtil.makeJButton(mResource, PREFIX, "OK", null, this); mOK.setEnabled(false); - mCancel = CMSAdminUtil.makeJButton(mResource, PREFIX, "CANCEL", + mCancel = CMSAdminUtil.makeJButton(mResource, PREFIX, "CANCEL", null, this); JButton[] buttons = { mOK, mCancel}; JButtonFactory.resize( buttons ); return CMSAdminUtil.makeJButtonPanel(buttons); - } - + } + //set buttons private void setButtons() { if ( (mPasswordField.getText().trim().equals("")) || (mPasswordFieldAgain.getText().trim().equals("")) || (mOldPasswordField.getText().trim().equals("")) ) { - mOK.setEnabled(false); + mOK.setEnabled(false); } else { - mOK.setEnabled(true); + mOK.setEnabled(true); } - } - + } + } diff --git a/base/console/src/com/netscape/admin/certsrv/config/CMSPluginInstanceTab.java b/base/console/src/com/netscape/admin/certsrv/config/CMSPluginInstanceTab.java index d4fb62340..4beb2a6b4 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/CMSPluginInstanceTab.java +++ b/base/console/src/com/netscape/admin/certsrv/config/CMSPluginInstanceTab.java @@ -45,8 +45,8 @@ public abstract class CMSPluginInstanceTab extends CMSBaseUGTab { protected static String RULE_STAT = null; protected static String RULE_IMPL = null; protected static String RULE_TYPE = null; - - + + protected AdminConnection mConnection; protected JScrollPane mScrollPane; @@ -138,25 +138,25 @@ public abstract class CMSPluginInstanceTab extends CMSBaseUGTab { } mModel.progressStop(); Debug.println(response.toString()); - + CMSBaseConfigDialog dialog = makeEditConfigDialog( response, mModel.getFrame(), mModel.getServerInfo().getAdmin(), mDestination); - + dialog.setModel(mModel); dialog.setInstanceScope(mScope); dialog.showDialog(response, data.get(RULE_NAME)); - + if(!dialog.isOK()) return; - refresh(); + refresh(); } - + if (e.getSource().equals(mAdd)) { Debug.println("Add"); - PluginSelectionDialog dialog = + PluginSelectionDialog dialog = getPluginSelectionDialog( mModel.getFrame(), mConnection, @@ -168,7 +168,7 @@ public abstract class CMSPluginInstanceTab extends CMSBaseUGTab { dialog.showDialog(); refresh(); } - + if (e.getSource().equals(mDelete)) { Debug.println("Delete"); if(mTable.getSelectedRow()< 0) @@ -191,8 +191,8 @@ public abstract class CMSPluginInstanceTab extends CMSBaseUGTab { } public void mouseReleased(MouseEvent e) { - setButtons(); - } + setButtons(); + } /*========================================================== * protected methods @@ -201,8 +201,8 @@ public abstract class CMSPluginInstanceTab extends CMSBaseUGTab { mDataModel.removeAllRows(); update(); - - setButtons(); + + setButtons(); } /** @@ -251,7 +251,7 @@ public abstract class CMSPluginInstanceTab extends CMSBaseUGTab { mScrollPane.setBackground(Color.white); mTable.addMouseListener(this); setLabelCellRenderer(mTable,0); - + CMSAdminUtil.resetGBC(gbc); gbc.anchor = gbc.NORTH; gbc.fill = gbc.BOTH; @@ -289,7 +289,7 @@ public abstract class CMSPluginInstanceTab extends CMSBaseUGTab { Debug.println("Table.getColumnModel = "+table.getColumnModel()); table.getColumnModel().getColumn(index).setCellRenderer(new LabelCellRenderer(new JLabel())); } - + //Set the first column's cellrender as label cell protected void setLabelCellEditor(JTable table, int index) { table.getColumnModel().getColumn(index).setCellRenderer(new PasswordCellRenderer()); @@ -299,26 +299,26 @@ public abstract class CMSPluginInstanceTab extends CMSBaseUGTab { //set buttons protected void setButtons() { - + //enable and diable buttons accordingly //Debug.println("setButtons() - "+mTable.getSelectedRow()); - + if (mTable.getSelectionModel().isSelectionEmpty()) { mDelete.setEnabled(false); mEdit.setEnabled(false); return; } - + if(mDataModel.getRowCount()<=0) { mDelete.setEnabled(false); mEdit.setEnabled(false); return; } - + mDelete.setEnabled(true); mEdit.setEnabled(true); } - + //============================================= // SEND REQUESTS TO THE SERVER SIDE //============================================= @@ -386,11 +386,11 @@ Debug.println("xxxxxxx plugin " + plugin); } mDataModel.processData(data); } - } + } if (mDataModel.getRowCount() >0) mTable.setRowSelectionInterval(0,0); - + mTable.invalidate(); mTable.validate(); mTable.repaint(1); @@ -398,7 +398,7 @@ Debug.println("xxxxxxx plugin " + plugin); } private void delete() { - + mModel.progressStart(); //get entry name NameValuePairs data = (NameValuePairs) @@ -419,7 +419,7 @@ Debug.println("xxxxxxx plugin " + plugin); mModel.progressStop(); //send comment to server and refetch the content refresh(); - + } //this returns the onfiguration @@ -430,13 +430,13 @@ Debug.println("xxxxxxx plugin " + plugin); if (mId != null && mId.length() > 0) { request.put(mId, ""); } - + NameValuePairs response = mConnection.read(mDestination, mScope, data.get(RULE_NAME), request); return response; } - - + + } diff --git a/base/console/src/com/netscape/admin/certsrv/config/CMSRACLMPanel.java b/base/console/src/com/netscape/admin/certsrv/config/CMSRACLMPanel.java index 734425b41..7b284f1d6 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/CMSRACLMPanel.java +++ b/base/console/src/com/netscape/admin/certsrv/config/CMSRACLMPanel.java @@ -44,7 +44,7 @@ public class CMSRACLMPanel extends CMSBaseTab { private JTextField mIntervalText; private Color mActiveColor; private CMSTabPanel mParent; - private static final String HELPINDEX = + private static final String HELPINDEX = "configuration-ra-clm-help"; public CMSRACLMPanel(CMSTabPanel parent) { @@ -83,13 +83,13 @@ public class CMSRACLMPanel extends CMSBaseTab { gbc.weighty = 1.0; gb.setConstraints(adminPanel, gbc); mCenterPanel.add(adminPanel); - + CMSAdminUtil.resetGBC(gbc); JLabel validLbl = makeJLabel("VALID"); mValidText = makeJTextField(4); mActiveColor = mValidText.getBackground(); JLabel day1Lbl = makeJLabel("DAYS"); - CMSAdminUtil.addEntryField(adminPanel, validLbl, mValidText, + CMSAdminUtil.addEntryField(adminPanel, validLbl, mValidText, day1Lbl, gbc); CMSAdminUtil.resetGBC(gbc); @@ -129,7 +129,7 @@ public class CMSRACLMPanel extends CMSBaseTab { JLabel intervalLbl = makeJLabel("INTERVAL"); mIntervalText = makeJTextField(4); JLabel day2Lbl = makeJLabel("DAYS"); - CMSAdminUtil.addEntryField(subPanel, intervalLbl, mIntervalText, + CMSAdminUtil.addEntryField(subPanel, intervalLbl, mIntervalText, day2Lbl, gbc); refresh(); @@ -172,7 +172,7 @@ public class CMSRACLMPanel extends CMSBaseTab { mNotifyEnable.setSelected(notificationEnabled); } else if (name.equals(Constants.PR_RENEWAL_VALIDITY)) { mValidText.setText(value); - } else if (name.equals(Constants.PR_RENEWAL_EMAIL)) { + } else if (name.equals(Constants.PR_RENEWAL_EMAIL)) { mEmailText.setText(value); } else if (name.equals(Constants.PR_RENEWAL_NUMNOTIFICATION)) { mNotifiedText.setText(value); @@ -217,7 +217,7 @@ public class CMSRACLMPanel extends CMSBaseTab { mValidText.setEnabled(enable); mValidText.setEditable(enable); mValidText.setBackground(color); - mNotifyEnable.setEnabled(enable); + mNotifyEnable.setEnabled(enable); mNotifyEnable.setBackground(color); //enableNotification(enable, color); } @@ -239,9 +239,9 @@ public class CMSRACLMPanel extends CMSBaseTab { public void actionPerformed(ActionEvent e) { super.actionPerformed(e); - if (e.getSource().equals(mRenewEnable) || + if (e.getSource().equals(mRenewEnable) || e.getSource().equals(mNotifyEnable)) { - enableRenewal(mRenewEnable.isSelected(), + enableRenewal(mRenewEnable.isSelected(), mNotifyEnable.isSelected()); } } @@ -262,7 +262,7 @@ public class CMSRACLMPanel extends CMSBaseTab { return false; } nvps.put(Constants.PR_RENEWAL_VALIDITY, validStr); - + if (mNotifyEnable.isSelected()) { nvps.put(Constants.PR_RENEWAL_EXPIREDNOTIFIEDENABLED, Constants.TRUE); diff --git a/base/console/src/com/netscape/admin/certsrv/config/CMSRAConnectorPanel.java b/base/console/src/com/netscape/admin/certsrv/config/CMSRAConnectorPanel.java index 7733a43d7..c257165d4 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/CMSRAConnectorPanel.java +++ b/base/console/src/com/netscape/admin/certsrv/config/CMSRAConnectorPanel.java @@ -177,7 +177,7 @@ public class CMSRAConnectorPanel extends CMSBaseTab NameValuePairs subsystems = mAdmin.search(DestDef.DEST_SERVER_ADMIN, ScopeDef.SC_SUBSYSTEM, new NameValuePairs()); - + boolean colocated = false; if (name.equals("Data Recovery Manager Connector")) { String val = values.get("id"); diff --git a/base/console/src/com/netscape/admin/certsrv/config/CMSRAGeneralPanel.java b/base/console/src/com/netscape/admin/certsrv/config/CMSRAGeneralPanel.java index 6605385b0..0f27dbcf9 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/CMSRAGeneralPanel.java +++ b/base/console/src/com/netscape/admin/certsrv/config/CMSRAGeneralPanel.java @@ -71,7 +71,7 @@ public class CMSRAGeneralPanel extends CMSBaseTab { gbc.weighty = 1.0; gb.setConstraints(adminPanel, gbc); mCenterPanel.add(adminPanel); - + CMSAdminUtil.resetGBC(gbc); mEEEnable = makeJCheckBox("EE"); gbc.anchor = gbc.NORTHWEST; @@ -93,7 +93,7 @@ public class CMSRAGeneralPanel extends CMSBaseTab { gb1.setConstraints(mRAEnable, gbc); adminPanel.add(mRAEnable); */ - + refresh(); } diff --git a/base/console/src/com/netscape/admin/certsrv/config/CMSRuleDataModel.java b/base/console/src/com/netscape/admin/certsrv/config/CMSRuleDataModel.java index 2c12183c7..b618f91be 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/CMSRuleDataModel.java +++ b/base/console/src/com/netscape/admin/certsrv/config/CMSRuleDataModel.java @@ -39,10 +39,10 @@ public abstract class CMSRuleDataModel extends CMSContentTableModel * variables *==========================================================*/ public static final String RULE_NAME = "RULENAME"; - public static final String RULE_STAT = "STATUS"; + public static final String RULE_STAT = "STATUS"; public static final String RULE_IMPL = "IMPL"; public static final String RULE_TYPE = "TYPE"; - + protected static String[] mColumns = null; protected Vector mRules; @@ -61,22 +61,22 @@ public abstract class CMSRuleDataModel extends CMSContentTableModel *==========================================================*/ protected abstract String[] getColumns(); - + /** * clean up the table including the datat objects */ public void removeAllRows() { super.removeAllRows(); mRules.removeAllElements(); - } - - + } + + public Vector getRules() { - return (Vector) mRules.clone(); + return (Vector) mRules.clone(); } - + public boolean isCellEditable(int row, int col) { return false; } - + } diff --git a/base/console/src/com/netscape/admin/certsrv/config/CMSSMTPPanel.java b/base/console/src/com/netscape/admin/certsrv/config/CMSSMTPPanel.java index 0275e3cb0..6636f059b 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/CMSSMTPPanel.java +++ b/base/console/src/com/netscape/admin/certsrv/config/CMSSMTPPanel.java @@ -35,7 +35,7 @@ public class CMSSMTPPanel extends CMSBaseTab { private static String PANEL_NAME = "SMTPSETTING"; private JTextField mServerText; private JTextField mPortText; - private Color mActiveColor; + private Color mActiveColor; private AdminConnection mAdmin; private CMSBaseResourceModel mModel; private CMSTabPanel mParent; @@ -80,7 +80,7 @@ public class CMSSMTPPanel extends CMSBaseTab { JLabel portLabel = makeJLabel("PORT"); mPortText = makeJTextField(30); CMSAdminUtil.addEntryField(smtpInfo, portLabel, mPortText, gbc); - + refresh(); } @@ -92,7 +92,7 @@ public class CMSSMTPPanel extends CMSBaseTab { try { NameValuePairs val = mAdmin.read(DestDef.DEST_SERVER_ADMIN, ScopeDef.SC_SMTP, Constants.RS_ID_CONFIG, nvps); - + populate(val); } catch (EAdminException e) { showErrorDialog(e.toString()); diff --git a/base/console/src/com/netscape/admin/certsrv/config/CMSSNMPPanel.java b/base/console/src/com/netscape/admin/certsrv/config/CMSSNMPPanel.java index b5b589eb0..238397ee0 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/CMSSNMPPanel.java +++ b/base/console/src/com/netscape/admin/certsrv/config/CMSSNMPPanel.java @@ -52,7 +52,7 @@ public class CMSSNMPPanel extends CMSBaseTab { private JLabel mOrgnLabel; private JLabel mLocLabel; private JLabel mContactLabel; - private static final String HELPINDEX = + private static final String HELPINDEX = "configuration-system-snmp-help"; public CMSSNMPPanel(CMSTabPanel parent) { @@ -93,7 +93,7 @@ public class CMSSNMPPanel extends CMSBaseTab { mOffB = makeJButton("OFF"); JButton[] bArray = {mOnB, mOffB}; JPanel buttonPanel = CMSAdminUtil.makeJButtonPanel(bArray); - + GridBagLayout gb1 = new GridBagLayout(); snmpInfo.setLayout(gb1); @@ -140,7 +140,7 @@ public class CMSSNMPPanel extends CMSBaseTab { gbc.gridheight = gbc.REMAINDER; gb1.setConstraints(buttonPanel, gbc); snmpInfo.add(buttonPanel); - + refresh(); } @@ -208,7 +208,7 @@ public class CMSSNMPPanel extends CMSBaseTab { enableTextField(true, mActiveColor); } else { enableTextField(false, getBackground()); - } + } } } diff --git a/base/console/src/com/netscape/admin/certsrv/config/CMSSSL2CipherPreference.java b/base/console/src/com/netscape/admin/certsrv/config/CMSSSL2CipherPreference.java index 4e95d25db..500523473 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/CMSSSL2CipherPreference.java +++ b/base/console/src/com/netscape/admin/certsrv/config/CMSSSL2CipherPreference.java @@ -19,14 +19,14 @@ package com.netscape.admin.certsrv.config; import com.netscape.admin.certsrv.security.*; /** - * Constructs panel containing a SSL2 cipher suites + * Constructs panel containing a SSL2 cipher suites * * @author Christine Ho * @version $Revision$, $Date$ * @see com.netscape.admin.certsrv.config */ -public class CMSSSL2CipherPreference extends CMSCipherPreferencePane +public class CMSSSL2CipherPreference extends CMSCipherPreferencePane implements ICipherConstants { public CMSSSL2CipherPreference(boolean isDomestic) { diff --git a/base/console/src/com/netscape/admin/certsrv/config/CMSSSL2CipherSet.java b/base/console/src/com/netscape/admin/certsrv/config/CMSSSL2CipherSet.java index fa18107cb..eb5065fce 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/CMSSSL2CipherSet.java +++ b/base/console/src/com/netscape/admin/certsrv/config/CMSSSL2CipherSet.java @@ -23,7 +23,7 @@ import java.util.*; /** * Constructs a SSL2 cipher suites. - * + * * @author Christine Ho * @version $Revision$, $Date$ * @see com.netscape.admin.certsrv.config diff --git a/base/console/src/com/netscape/admin/certsrv/config/CMSSSL3CipherPreference.java b/base/console/src/com/netscape/admin/certsrv/config/CMSSSL3CipherPreference.java index 63444fc75..777c9d466 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/CMSSSL3CipherPreference.java +++ b/base/console/src/com/netscape/admin/certsrv/config/CMSSSL3CipherPreference.java @@ -20,14 +20,14 @@ package com.netscape.admin.certsrv.config; import com.netscape.admin.certsrv.security.*; /** - * Constructs panel containing a SSL3 cipher suites + * Constructs panel containing a SSL3 cipher suites * * @author Christine Ho * @version $Revision$, $Date$ * @see com.netscape.admin.certsrv.config */ -public class CMSSSL3CipherPreference extends CMSCipherPreferencePane +public class CMSSSL3CipherPreference extends CMSCipherPreferencePane implements ICipherConstants { public CMSSSL3CipherPreference(boolean isDomestic, boolean hasFortezza) { diff --git a/base/console/src/com/netscape/admin/certsrv/config/CMSSSL3CipherSet.java b/base/console/src/com/netscape/admin/certsrv/config/CMSSSL3CipherSet.java index 0286f3820..df07a4968 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/CMSSSL3CipherSet.java +++ b/base/console/src/com/netscape/admin/certsrv/config/CMSSSL3CipherSet.java @@ -23,7 +23,7 @@ import com.netscape.admin.certsrv.*; /** * Constructs a SSL3 cipher suites. - * + * * @author Christine Ho * @version $Revision$, $Date$ * @see com.netscape.admin.certsrv.config diff --git a/base/console/src/com/netscape/admin/certsrv/config/CMSSelfTestsPanel.java b/base/console/src/com/netscape/admin/certsrv/config/CMSSelfTestsPanel.java index ab957a69c..76f467091 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/CMSSelfTestsPanel.java +++ b/base/console/src/com/netscape/admin/certsrv/config/CMSSelfTestsPanel.java @@ -38,7 +38,7 @@ public class CMSSelfTestsPanel extends CMSBaseTab private static final String PROP_TITLE = "On-Demand Self Tests Results"; private static String PANEL_NAME = "SELFTESTS"; private AdminConnection mAdmin; - private JButton mOnDemand; + private JButton mOnDemand; private CMSBaseResourceModel mModel; private CMSTabPanel mParent; private static final String HELPINDEX = @@ -145,12 +145,12 @@ public class CMSSelfTestsPanel extends CMSBaseTab NameValuePairs nvps = new NameValuePairs(); NameValuePairs nvps1; - + nvps.put(Constants.PR_RUN_SELFTESTS_ON_DEMAND, Constants.TRUE); - + if( evt.getSource().equals( mOnDemand ) ) { Debug.println( "Run self tests on-demand . . ." ); - + mModel.progressStart(); try { nvps1 = mAdmin.process( DestDef.DEST_SERVER_ADMIN, diff --git a/base/console/src/com/netscape/admin/certsrv/config/CMSUserCertSettingPanel.java b/base/console/src/com/netscape/admin/certsrv/config/CMSUserCertSettingPanel.java index ca424c3a0..c454063a1 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/CMSUserCertSettingPanel.java +++ b/base/console/src/com/netscape/admin/certsrv/config/CMSUserCertSettingPanel.java @@ -52,24 +52,24 @@ public class CMSUserCertSettingPanel extends CMSCertSettingPanel { mParent = parent; if (panelName.equals("RAUSERCERTSETTING")) mHelpToken = RAHELPINDEX; - else + else mHelpToken = CAHELPINDEX; } /*========================================================== * public methods *==========================================================*/ - + /** * Actual UI construction */ public void init() { - super.init(); - + super.init(); + //XXX B1 - disable the publisher configuration mPublisher.setEnabled(false); - //XXX B1 - disable the publisher configuration - + //XXX B1 - disable the publisher configuration + refresh(); } @@ -114,14 +114,14 @@ public class CMSUserCertSettingPanel extends CMSCertSettingPanel { /*========================================================== * EVNET HANDLER METHODS - *==========================================================*/ - + *==========================================================*/ + //=== ACTIONLISTENER ===================== public void actionPerformed(ActionEvent e) { if (e.getSource().equals(mMapper)) { Debug.println("Edit Mapper Config"); mDialog = new PanelMapperConfigDialog(_model.getFrame(), _admin); - mDialog.showDialog(_mapper.getText(), + mDialog.showDialog(_mapper.getText(), _servletName, ScopeDef.SC_USERCERT); if (!mDialog.isOK()) return; @@ -150,6 +150,6 @@ public class CMSUserCertSettingPanel extends CMSCertSettingPanel { } } } - + } diff --git a/base/console/src/com/netscape/admin/certsrv/config/CMStoAdminEncryptionPane.java b/base/console/src/com/netscape/admin/certsrv/config/CMStoAdminEncryptionPane.java index ea448b4e0..1977b5428 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/CMStoAdminEncryptionPane.java +++ b/base/console/src/com/netscape/admin/certsrv/config/CMStoAdminEncryptionPane.java @@ -39,12 +39,12 @@ import javax.swing.event.*; */ /* replace "implements ActionListener" with - *"implements IPluginConfigPanel" when the + *"implements IPluginConfigPanel" when the * com.netscape.management.admserv.config.* package is available public class CMStoAdminEncryptionPane extends EncryptionPane implements IPluginConfigPanel{ */ -public class CMStoAdminEncryptionPane extends EncryptionPane +public class CMStoAdminEncryptionPane extends EncryptionPane implements ActionListener { protected boolean mEncryptionPaneDirty = false; diff --git a/base/console/src/com/netscape/admin/certsrv/config/CRLExtensionsConfigDialog.java b/base/console/src/com/netscape/admin/certsrv/config/CRLExtensionsConfigDialog.java index 9a4f5ae17..26346f58e 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/CRLExtensionsConfigDialog.java +++ b/base/console/src/com/netscape/admin/certsrv/config/CRLExtensionsConfigDialog.java @@ -73,4 +73,4 @@ public class CRLExtensionsConfigDialog extends CMSBaseConfigDialog init(nvp,parent,conn,dest,id); } -} +} diff --git a/base/console/src/com/netscape/admin/certsrv/config/CRLExtensionsInstanceTab.java b/base/console/src/com/netscape/admin/certsrv/config/CRLExtensionsInstanceTab.java index 5c687ea90..d48600fa5 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/CRLExtensionsInstanceTab.java +++ b/base/console/src/com/netscape/admin/certsrv/config/CRLExtensionsInstanceTab.java @@ -43,7 +43,7 @@ public class CRLExtensionsInstanceTab extends CMSPluginInstanceTab { * variables *==========================================================*/ private static final String PANEL_NAME = "CRLEXTSRULE"; - + private final static String CAHELPINDEX = "configuration-ca-crlinstances-help"; /*========================================================== @@ -56,7 +56,7 @@ public class CRLExtensionsInstanceTab extends CMSPluginInstanceTab { mDataModel = new RuleRuleDataModel(); mScope = ScopeDef.SC_CRLEXTS_RULES; RULE_NAME = CRLExtensionsRuleDataModel.RULE_NAME; - RULE_STAT = CRLExtensionsRuleDataModel.RULE_STAT; + RULE_STAT = CRLExtensionsRuleDataModel.RULE_STAT; mHelpToken = CAHELPINDEX; } @@ -67,7 +67,7 @@ public class CRLExtensionsInstanceTab extends CMSPluginInstanceTab { mDataModel = new RuleRuleDataModel(); mScope = ScopeDef.SC_CRLEXTS_RULES; RULE_NAME = CRLExtensionsRuleDataModel.RULE_NAME; - RULE_STAT = CRLExtensionsRuleDataModel.RULE_STAT; + RULE_STAT = CRLExtensionsRuleDataModel.RULE_STAT; mHelpToken = CAHELPINDEX; mId = id; } @@ -77,7 +77,7 @@ public class CRLExtensionsInstanceTab extends CMSPluginInstanceTab { NameValuePairs nvp, JFrame parent, AdminConnection conn, - String dest) + String dest) { if (mId != null && mId.length() > 0) return new CRLExtensionsConfigDialog(nvp, parent, conn, dest, mId); @@ -89,7 +89,7 @@ public class CRLExtensionsInstanceTab extends CMSPluginInstanceTab { JFrame parent, AdminConnection conn, String dest, - CMSPluginInstanceTab pluginType) + CMSPluginInstanceTab pluginType) { return new CRLExtensionsPluginSelectionDialog(parent, conn, dest, pluginType); } diff --git a/base/console/src/com/netscape/admin/certsrv/config/CRLExtensionsPluginSelectionDialog.java b/base/console/src/com/netscape/admin/certsrv/config/CRLExtensionsPluginSelectionDialog.java index aa169235d..9f7ed87c2 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/CRLExtensionsPluginSelectionDialog.java +++ b/base/console/src/com/netscape/admin/certsrv/config/CRLExtensionsPluginSelectionDialog.java @@ -40,7 +40,7 @@ public class CRLExtensionsPluginSelectionDialog extends PluginSelectionDialog * variables *==========================================================*/ private static final String PREFIX = "CRLEXTSELECTIONDIALOG"; - private static final String CAHELPINDEX = + private static final String CAHELPINDEX = "configuration-ca-add-crlextensionrule-dbox-help"; /*========================================================== @@ -48,9 +48,9 @@ public class CRLExtensionsPluginSelectionDialog extends PluginSelectionDialog *==========================================================*/ public CRLExtensionsPluginSelectionDialog( JFrame parent, - AdminConnection conn, + AdminConnection conn, String dest, - CMSPluginInstanceTab pluginType) + CMSPluginInstanceTab pluginType) { super(PREFIX, parent,conn, dest, pluginType); // mScope = ScopeDef.SC_RULE_IMPLS; diff --git a/base/console/src/com/netscape/admin/certsrv/config/CRLExtensionsRuleDataModel.java b/base/console/src/com/netscape/admin/certsrv/config/CRLExtensionsRuleDataModel.java index e5ae9352a..1d0553c0e 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/CRLExtensionsRuleDataModel.java +++ b/base/console/src/com/netscape/admin/certsrv/config/CRLExtensionsRuleDataModel.java @@ -55,7 +55,7 @@ public class CRLExtensionsRuleDataModel extends CMSRuleDataModel v.addElement(new JLabel(obj.get(RULE_NAME), CMSAdminUtil.getImage(CMSAdminResources.IMAGE_RULE), JLabel.LEFT)); - v.addElement(mResource.getString("CRLEXTSRULE_LABEL_ENABLED_LABEL")); + v.addElement(mResource.getString("CRLEXTSRULE_LABEL_ENABLED_LABEL")); } else { v.addElement(new JLabel(obj.get(RULE_NAME), CMSAdminUtil.getImage(CMSAdminResources.IMAGE_RULE_DISABLE), diff --git a/base/console/src/com/netscape/admin/certsrv/config/CRLIPEditor.java b/base/console/src/com/netscape/admin/certsrv/config/CRLIPEditor.java index 040b21b83..0cde2d21c 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/CRLIPEditor.java +++ b/base/console/src/com/netscape/admin/certsrv/config/CRLIPEditor.java @@ -36,7 +36,7 @@ import com.netscape.certsrv.common.*; public class CRLIPEditor extends JDialog implements ActionListener { private final static String PREFIX = "CRLIPEDITOR"; - private final static String HELPINDEX = + private final static String HELPINDEX = "configuration-revocation"; private JButton mOK, mCancel, mHelp; private String mName; @@ -319,7 +319,7 @@ public class CRLIPEditor extends JDialog implements ActionListener { } this.dispose(); } catch (EAdminException ex) { - CMSAdminUtil.showMessageDialog(mParentFrame, + CMSAdminUtil.showMessageDialog(mParentFrame, "Error", ex.toString(), CMSAdminUtil.ERROR_MESSAGE); } } else if (e.getSource().equals(mHelp)) { diff --git a/base/console/src/com/netscape/admin/certsrv/config/ConnectorEditor.java b/base/console/src/com/netscape/admin/certsrv/config/ConnectorEditor.java index 6f711eca9..293d13d9f 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/ConnectorEditor.java +++ b/base/console/src/com/netscape/admin/certsrv/config/ConnectorEditor.java @@ -39,7 +39,7 @@ import com.netscape.certsrv.common.*; public class ConnectorEditor extends JDialog implements ActionListener, MouseListener { private final static String PREFIX = "CONNECTOREDITOR"; - private final static String HELPINDEX = + private final static String HELPINDEX = "configuration-ra-connector-editor-help"; private final static String HELPINDEX1 = "configuration-overview"; @@ -226,7 +226,7 @@ public class ConnectorEditor extends JDialog implements ActionListener, MouseLis mHostText.setText(val); } else if (name.equals(Constants.PR_PORT)) { mPortText.setText(val); - // Inserted by beomsuk + // Inserted by beomsuk } else if (name.equals(Constants.PR_TIMEOUT)) { if (val == null || val.equals("")) mTimeoutText.setText("30"); @@ -472,13 +472,13 @@ public class ConnectorEditor extends JDialog implements ActionListener, MouseLis gbc.anchor = gbc.WEST; gbc.weightx = 1.0; gbc.fill = gbc.HORIZONTAL; - gbc.insets = new Insets(2*CMSAdminUtil.COMPONENT_SPACE, + gbc.insets = new Insets(2*CMSAdminUtil.COMPONENT_SPACE, 4*CMSAdminUtil.COMPONENT_SPACE, CMSAdminUtil.COMPONENT_SPACE, CMSAdminUtil.COMPONENT_SPACE); gbc.gridwidth = gbc.REMAINDER; gb.setConstraints(mHeading, gbc); mainPanel.add(mHeading); - + CMSAdminUtil.resetGBC(gbc); mDataModel = new ListCertsModel(); mCertTable = new JTable(mDataModel); @@ -551,15 +551,15 @@ public class ConnectorEditor extends JDialog implements ActionListener, MouseLis } public void actionPerformed(ActionEvent e) { - + if (e.getSource().equals(mEnableBox)) { mEnable = mEnableBox.isSelected(); enableConnector(); - } else if (e.getSource().equals(mCancel)) + } else if (e.getSource().equals(mCancel)) this.dispose(); else if (e.getSource().equals(mOK)) { NameValuePairs nvps = new NameValuePairs(); - + if (mEnable) { nvps.put(Constants.PR_LOCAL, Constants.FALSE); nvps.put(Constants.PR_HOST, mHostText.getText()); @@ -572,7 +572,7 @@ public class ConnectorEditor extends JDialog implements ActionListener, MouseLis return; } } catch (NumberFormatException ex) { - CMSAdminUtil.showMessageDialog(mParentFrame, mResource, PREFIX, + CMSAdminUtil.showMessageDialog(mParentFrame, mResource, PREFIX, "NONINTEGER", CMSAdminUtil.ERROR_MESSAGE); return; } @@ -587,12 +587,12 @@ public class ConnectorEditor extends JDialog implements ActionListener, MouseLis return; } } catch (NumberFormatException ex) { - CMSAdminUtil.showMessageDialog(mParentFrame, mResource, PREFIX, + CMSAdminUtil.showMessageDialog(mParentFrame, mResource, PREFIX, "TIMEOUTNONINTEGER", CMSAdminUtil.ERROR_MESSAGE); return; } nvps.put(Constants.PR_TIMEOUT, timeoutStr); - + if (mName.equals("Data Recovery Manager Connector")) { nvps.put(Constants.PR_URI, "/kra/agent/kra/connector"); } else if (mName.equals("Registration Manager Connector")) { @@ -611,7 +611,7 @@ public class ConnectorEditor extends JDialog implements ActionListener, MouseLis mName, nvps); this.dispose(); } catch (EAdminException ex) { - CMSAdminUtil.showMessageDialog(mParentFrame, + CMSAdminUtil.showMessageDialog(mParentFrame, "Error", ex.toString(), CMSAdminUtil.ERROR_MESSAGE); } } else if (e.getSource().equals(mHelp)) { @@ -621,11 +621,11 @@ public class ConnectorEditor extends JDialog implements ActionListener, MouseLis private NameValuePairs getCertsList(String scope) { try { - NameValuePairs nvps = + NameValuePairs nvps = mAdmin.search(DestDef.DEST_SERVER_ADMIN, scope, new NameValuePairs()); return nvps; } catch (EAdminException ex) { - CMSAdminUtil.showMessageDialog(mParentFrame, + CMSAdminUtil.showMessageDialog(mParentFrame, "Error", ex.toString(), CMSAdminUtil.ERROR_MESSAGE); return null; } diff --git a/base/console/src/com/netscape/admin/certsrv/config/GeneralLogPanel.java b/base/console/src/com/netscape/admin/certsrv/config/GeneralLogPanel.java index 66e9b4397..99b2881d6 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/GeneralLogPanel.java +++ b/base/console/src/com/netscape/admin/certsrv/config/GeneralLogPanel.java @@ -33,7 +33,7 @@ import java.awt.event.*; public class GeneralLogPanel extends CMSBaseTab { private static String PANEL_NAME = "GENERALLOG"; - private static final String HELPINDEX = + private static final String HELPINDEX = "configuration-general-logs-settings-help"; private JCheckBox mEnable; private Color mActiveColor; @@ -157,7 +157,7 @@ public class GeneralLogPanel extends CMSBaseTab { mEnable.setSelected(false); } else if (name.equals(Constants.PR_DEBUG_LOG_LEVEL)) { mLevelText.setText(value); - } + } /* else if (name.equals(Constants.PR_DEBUG_LOG_SHOWCALLER)) { if (value.equals(Constants.TRUE)) diff --git a/base/console/src/com/netscape/admin/certsrv/config/JobsConfigDialog.java b/base/console/src/com/netscape/admin/certsrv/config/JobsConfigDialog.java index 307ddbbc4..5b38a17d2 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/JobsConfigDialog.java +++ b/base/console/src/com/netscape/admin/certsrv/config/JobsConfigDialog.java @@ -46,7 +46,7 @@ public class JobsConfigDialog extends CMSBaseConfigDialog *==========================================================*/ public JobsConfigDialog(NameValuePairs nvp, JFrame parent, - AdminConnection conn, + AdminConnection conn, String dest) { super(parent, dest); @@ -59,4 +59,4 @@ public class JobsConfigDialog extends CMSBaseConfigDialog init(nvp,parent,conn,dest); } -} +} diff --git a/base/console/src/com/netscape/admin/certsrv/config/JobsImplDataModel.java b/base/console/src/com/netscape/admin/certsrv/config/JobsImplDataModel.java index d3a605433..24de6a8e9 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/JobsImplDataModel.java +++ b/base/console/src/com/netscape/admin/certsrv/config/JobsImplDataModel.java @@ -40,7 +40,7 @@ public class JobsImplDataModel extends CMSContentTableModel public static final String IMPL_NAME = "NAME"; public static final String IMPL_CLASS = "CLASS"; public static final String IMPL_DESC = "DESC"; - + private static String[] mColumns = {JOBS_IMPL, CLASSNAME}; /*========================================================== diff --git a/base/console/src/com/netscape/admin/certsrv/config/JobsImplTab.java b/base/console/src/com/netscape/admin/certsrv/config/JobsImplTab.java index 57848c649..c9c3ac173 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/JobsImplTab.java +++ b/base/console/src/com/netscape/admin/certsrv/config/JobsImplTab.java @@ -43,19 +43,19 @@ public class JobsImplTab extends CMSBaseUGTab { private static final String IMPL_NAME = JobsImplDataModel.IMPL_NAME; private static final String IMPL_CLASS = JobsImplDataModel.IMPL_CLASS; private static final String IMPL_DESC = JobsImplDataModel.IMPL_DESC; - + private static final String PANEL_NAME = "JOBSIMPL"; private static final String DIALOG_PREFIX = "JOBSREGISTERDIALOG"; - + private AdminConnection mConnection; private String mDestination; - + protected JScrollPane mScrollPane; protected JTable mTable; //table protected JobsImplDataModel mDataModel; //table model protected JobsRegisterDialog mEditor=null; //keep single copy protected ViewDialog mViewer=null; //keep single copy - + protected JButton mRefresh, mAdd, mDelete, mView, mHelp; private final static String HELPINDEX = "jobsscheduler-certsrv-jobplugin-help"; @@ -106,13 +106,13 @@ public class JobsImplTab extends CMSBaseUGTab { if(mTable.getSelectedRow()< 0) return; NameValuePairs obj = (NameValuePairs) - mDataModel.getObjectValueAt(mTable.getSelectedRow()); + mDataModel.getObjectValueAt(mTable.getSelectedRow()); if (mViewer==null) mViewer = new ViewDialog(mModel.getFrame()); mViewer.showDialog(obj.get(IMPL_NAME), obj.get(IMPL_CLASS), obj.get(IMPL_DESC)); - } + } if (e.getSource().equals(mHelp)) { helpCallback(); } @@ -124,7 +124,7 @@ public class JobsImplTab extends CMSBaseUGTab { } public void mouseReleased(MouseEvent e) { - setButtons(); + setButtons(); } /*========================================================== @@ -133,8 +133,8 @@ public class JobsImplTab extends CMSBaseUGTab { public void refresh() { mDataModel.removeAllRows(); - update(); - + update(); + setButtons(); mTable.invalidate(); mTable.validate(); @@ -218,7 +218,7 @@ public class JobsImplTab extends CMSBaseUGTab { //set buttons private void setButtons() { - + //enable and diable buttons accordingly //Debug.println("setButtons() - "+mTable.getSelectedRow()); //Debug.println("setButtons() - "+mTable.getSelectionModel().isSelectionEmpty()); @@ -227,24 +227,24 @@ public class JobsImplTab extends CMSBaseUGTab { mView.setEnabled(false); return; } - + if(mDataModel.getRowCount()<=0) { mDelete.setEnabled(false); mView.setEnabled(false); return; } - + mDelete.setEnabled(true); - mView.setEnabled(true); - + mView.setEnabled(true); + } - + //============================================= // SEND REQUESTS TO THE SERVER SIDE //============================================= private void update() { //send request and parse data - + mModel.progressStart(); NameValuePairs response; try { @@ -283,18 +283,18 @@ public class JobsImplTab extends CMSBaseUGTab { } data.put(entry,obj); } - + CMSAdminUtil.bubbleSort(vals); - + for (int y=0; y< vals.length ; y++) { mDataModel.processData(data.get(vals[y])); } - + data.clear(); - + if (mDataModel.getRowCount() >0) mTable.setRowSelectionInterval(0,0); - + mModel.progressStop(); } diff --git a/base/console/src/com/netscape/admin/certsrv/config/JobsInstanceTab.java b/base/console/src/com/netscape/admin/certsrv/config/JobsInstanceTab.java index 059a741ce..1c457c720 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/JobsInstanceTab.java +++ b/base/console/src/com/netscape/admin/certsrv/config/JobsInstanceTab.java @@ -42,7 +42,7 @@ public class JobsInstanceTab extends CMSPluginInstanceTab { * variables *==========================================================*/ private static final String PANEL_NAME = "JOBSRULE"; - + private final static String HELPINDEX = "jobsscheduler-certsrv-jobrules-help"; @@ -56,7 +56,7 @@ public class JobsInstanceTab extends CMSPluginInstanceTab { mDataModel = new JobsRuleDataModel(); mScope = ScopeDef.SC_JOBS_INSTANCE; RULE_NAME = JobsRuleDataModel.RULE_NAME; - RULE_STAT = JobsRuleDataModel.RULE_STAT; + RULE_STAT = JobsRuleDataModel.RULE_STAT; mHelpToken = HELPINDEX; } @@ -67,7 +67,7 @@ public class JobsInstanceTab extends CMSPluginInstanceTab { JFrame parent, AdminConnection conn, String dest - ) + ) { return new JobsConfigDialog(nvp, @@ -81,7 +81,7 @@ public class JobsInstanceTab extends CMSPluginInstanceTab { AdminConnection conn, String dest, CMSPluginInstanceTab pluginType - ) + ) { return new JobsPluginSelectionDialog(parent,conn,dest,pluginType); } diff --git a/base/console/src/com/netscape/admin/certsrv/config/JobsPluginSelectionDialog.java b/base/console/src/com/netscape/admin/certsrv/config/JobsPluginSelectionDialog.java index d07e5ed32..ba3403b5c 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/JobsPluginSelectionDialog.java +++ b/base/console/src/com/netscape/admin/certsrv/config/JobsPluginSelectionDialog.java @@ -41,7 +41,7 @@ public class JobsPluginSelectionDialog extends PluginSelectionDialog * variables *==========================================================*/ private static final String PREFIX = "JOBSSELECTIONDIALOG"; - private static final String HELPINDEX = + private static final String HELPINDEX = "jobsscheduler-certsrv-add-jobrule-dbox-help"; /*========================================================== @@ -49,9 +49,9 @@ public class JobsPluginSelectionDialog extends PluginSelectionDialog *==========================================================*/ public JobsPluginSelectionDialog( JFrame parent, - AdminConnection conn, + AdminConnection conn, String dest, - CMSPluginInstanceTab pluginType) + CMSPluginInstanceTab pluginType) { super(PREFIX, parent,conn, dest, pluginType); mScope = ScopeDef.SC_JOBS_IMPLS; diff --git a/base/console/src/com/netscape/admin/certsrv/config/JobsRuleDataModel.java b/base/console/src/com/netscape/admin/certsrv/config/JobsRuleDataModel.java index 76fbd9a38..9bce4799b 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/JobsRuleDataModel.java +++ b/base/console/src/com/netscape/admin/certsrv/config/JobsRuleDataModel.java @@ -56,7 +56,7 @@ public class JobsRuleDataModel extends CMSRuleDataModel v.addElement(new JLabel(obj.get(RULE_NAME), CMSAdminUtil.getImage(CMSAdminResources.IMAGE_RULE), JLabel.LEFT)); - v.addElement(mResource.getString("JOBSRULE_LABEL_ENABLED_LABEL")); + v.addElement(mResource.getString("JOBSRULE_LABEL_ENABLED_LABEL")); } else { v.addElement(new JLabel(obj.get(RULE_NAME), CMSAdminUtil.getImage(CMSAdminResources.IMAGE_RULE_DISABLE), diff --git a/base/console/src/com/netscape/admin/certsrv/config/JobsSettingPanel.java b/base/console/src/com/netscape/admin/certsrv/config/JobsSettingPanel.java index b6a93d191..86b8e90ff 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/JobsSettingPanel.java +++ b/base/console/src/com/netscape/admin/certsrv/config/JobsSettingPanel.java @@ -32,7 +32,7 @@ import java.awt.event.*; * @version $Revision$, $Date$ */ public class JobsSettingPanel extends CMSBaseTab implements ItemListener { - private static final String HELPINDEX = + private static final String HELPINDEX = "jobsscheduler-certsrv-setting-jobrule-help"; private JTextField mFrequencyText; private JCheckBox mEnable; @@ -48,7 +48,7 @@ public class JobsSettingPanel extends CMSBaseTab implements ItemListener { this(panelName, parent, true); mPanelName = panelName; } - + public JobsSettingPanel(String panelName, CMSTabPanel parent, boolean flag) { super(panelName, parent); mServletName = DestDef.DEST_JOBS_ADMIN; @@ -63,7 +63,7 @@ public class JobsSettingPanel extends CMSBaseTab implements ItemListener { GridBagLayout gb = new GridBagLayout(); GridBagConstraints gbc = new GridBagConstraints(); mCenterPanel.setLayout(gb); - + //add the enable checkbox mEnable = makeJCheckBox("ENABLE"); mEnable.setSelected(true); @@ -72,13 +72,13 @@ public class JobsSettingPanel extends CMSBaseTab implements ItemListener { gbc.fill = gbc.NONE; gbc.gridwidth = gbc.REMAINDER; gbc.weightx = 1.0; - gbc.insets = new Insets(DIFFERENT_COMPONENT_SPACE, + gbc.insets = new Insets(DIFFERENT_COMPONENT_SPACE, DIFFERENT_COMPONENT_SPACE, 0, DIFFERENT_COMPONENT_SPACE); gb.setConstraints(mEnable, gbc); mCenterPanel.add(mEnable); - + //add the frequency panel CMSAdminUtil.resetGBC(gbc); gbc.anchor = gbc.NORTH; @@ -92,7 +92,7 @@ public class JobsSettingPanel extends CMSBaseTab implements ItemListener { GridBagLayout gb1 = new GridBagLayout(); serverInfo.setLayout(gb1); serverInfo.setBorder(makeTitledBorder("FREQUENCY")); - + // add frequency label and text field CMSAdminUtil.resetGBC(gbc); mFrequencyLabel = makeJLabel("FREQUENCY"); diff --git a/base/console/src/com/netscape/admin/certsrv/config/KeyCreateDialog.java b/base/console/src/com/netscape/admin/certsrv/config/KeyCreateDialog.java index 5821127d4..3df1832fd 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/KeyCreateDialog.java +++ b/base/console/src/com/netscape/admin/certsrv/config/KeyCreateDialog.java @@ -62,7 +62,7 @@ public class KeyCreateDialog extends JDialog /*========================================================== * constructors *==========================================================*/ - + public KeyCreateDialog(JFrame parent, AdminConnection conn) { super(parent,true); KeyCreateDialog2(PREFIX, parent, conn); @@ -128,7 +128,7 @@ public class KeyCreateDialog extends JDialog } if (evt.getSource().equals(mOK)) { - + /* REPLACED BY PROACTIVE ENFORCEMENT if (mNameField.getText().trim().equals("")) { CMSAdminUtil.showMessageDialog(mParentFrame, mResource, mPrefix, @@ -162,15 +162,15 @@ public class KeyCreateDialog extends JDialog public void insertUpdate(DocumentEvent e) { setButtons(); } - + public void removeUpdate(DocumentEvent e){ setButtons(); } - + public void changedUpdate(DocumentEvent e){ setButtons(); } - + //==== MOUSELISTENER ====================== public void mouseClicked(MouseEvent e) { setButtons(); @@ -180,13 +180,13 @@ public class KeyCreateDialog extends JDialog public void mouseReleased(MouseEvent e) {} public void mouseEntered(MouseEvent e) {} public void mouseExited(MouseEvent e) { - setButtons(); + setButtons(); } - + /*========================================================== * protected methods - *==========================================================*/ - + *==========================================================*/ + protected void setDisplay() { getContentPane().setLayout(new BorderLayout()); JPanel center = new JPanel(); @@ -219,19 +219,19 @@ public class KeyCreateDialog extends JDialog /*========================================================== * private methods - *==========================================================*/ + *==========================================================*/ //set arrow buttons private void setButtons() { - if ( mNameField.getText().trim().equals("")) { + if ( mNameField.getText().trim().equals("")) { //|| //(mClassField.getText().trim().equals("")) ) { - mOK.setEnabled(false); + mOK.setEnabled(false); } else { - mOK.setEnabled(true); + mOK.setEnabled(true); } - } - + } + private JPanel makeActionPane() { mOK = CMSAdminUtil.makeJButton(mResource, mPrefix, "OK", null, this); mOK.setEnabled(false); @@ -259,7 +259,7 @@ public class KeyCreateDialog extends JDialog //JLabel label2 = CMSAdminUtil.makeJLabel(mResource, mPrefix, "CLASS", null); //mClassField = new JTextField(); //mClassField.getDocument().addDocumentListener(this); - //mClassField.addMouseListener(this); + //mClassField.addMouseListener(this); //CMSAdminUtil.addEntryField(content, label2, mClassField, gbc); //if (mType) { @@ -268,10 +268,10 @@ public class KeyCreateDialog extends JDialog // JLabel label3 = CMSAdminUtil.makeJLabel(mResource, mPrefix, "TYPE", null); // mTypeField = new JTextField(); // mTypeField.getDocument().addDocumentListener(this); - // mTypeField.addMouseListener(this); + // mTypeField.addMouseListener(this); // CMSAdminUtil.addEntryField(content, label3, mTypeField, gbc); //} - + return content; } diff --git a/base/console/src/com/netscape/admin/certsrv/config/ListCertsModel.java b/base/console/src/com/netscape/admin/certsrv/config/ListCertsModel.java index b239edfb9..70ab973df 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/ListCertsModel.java +++ b/base/console/src/com/netscape/admin/certsrv/config/ListCertsModel.java @@ -37,9 +37,9 @@ public class ListCertsModel extends CMSTableModel *==========================================================*/ public static final String COL1 = "CERTNICKNAMENAME"; public static final String COL2 = "SERIALNUMBER"; - public static final String COL3 = "ISSUERNAME"; + public static final String COL3 = "ISSUERNAME"; public static final String COL4 = "TOKENNAME"; - + private static String[] mColumns = {COL1, COL2, COL3, COL4}; /*========================================================== diff --git a/base/console/src/com/netscape/admin/certsrv/config/ListKeysModel.java b/base/console/src/com/netscape/admin/certsrv/config/ListKeysModel.java index 78f033be5..bf80db90f 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/ListKeysModel.java +++ b/base/console/src/com/netscape/admin/certsrv/config/ListKeysModel.java @@ -37,9 +37,9 @@ public class ListKeysModel extends CMSTableModel *==========================================================*/ public static final String COL1 = "KEYNAME"; public static final String COL2 = "SERIALNUMBER"; - public static final String COL3 = "ISSUERNAME"; + public static final String COL3 = "ISSUERNAME"; public static final String COL4 = "TOKENNAME"; - + private static String[] mColumns = {COL1}; /*========================================================== diff --git a/base/console/src/com/netscape/admin/certsrv/config/LogConfigDialog.java b/base/console/src/com/netscape/admin/certsrv/config/LogConfigDialog.java index 7f3833034..5333d36a0 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/LogConfigDialog.java +++ b/base/console/src/com/netscape/admin/certsrv/config/LogConfigDialog.java @@ -46,7 +46,7 @@ public class LogConfigDialog extends CMSBaseConfigDialog *==========================================================*/ public LogConfigDialog(NameValuePairs nvp, JFrame parent, - AdminConnection conn, + AdminConnection conn, String dest) { super(parent, dest); diff --git a/base/console/src/com/netscape/admin/certsrv/config/LogImplDataModel.java b/base/console/src/com/netscape/admin/certsrv/config/LogImplDataModel.java index a5af0b1dc..7e65ba0ff 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/LogImplDataModel.java +++ b/base/console/src/com/netscape/admin/certsrv/config/LogImplDataModel.java @@ -40,7 +40,7 @@ public class LogImplDataModel extends CMSContentTableModel public static final String IMPL_NAME = "NAME"; public static final String IMPL_CLASS = "CLASS"; public static final String IMPL_DESC = "DESC"; - + private static String[] mColumns = {LOG_IMPL, CLASSNAME}; /*========================================================== diff --git a/base/console/src/com/netscape/admin/certsrv/config/LogImplTab.java b/base/console/src/com/netscape/admin/certsrv/config/LogImplTab.java index 1b654fead..bb399e183 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/LogImplTab.java +++ b/base/console/src/com/netscape/admin/certsrv/config/LogImplTab.java @@ -43,19 +43,19 @@ public class LogImplTab extends CMSBaseUGTab { private static final String IMPL_NAME = LogImplDataModel.IMPL_NAME; private static final String IMPL_CLASS = LogImplDataModel.IMPL_CLASS; private static final String IMPL_DESC = LogImplDataModel.IMPL_DESC; - + private static final String PANEL_NAME = "LOGIMPL"; private static final String DIALOG_PREFIX = "LOGREGISTERDIALOG"; - + private AdminConnection mConnection; private String mDestination; - + protected JScrollPane mScrollPane; protected JTable mTable; //table protected LogImplDataModel mDataModel; //table model protected LogRegisterDialog mEditor=null; //keep single copy protected ViewDialog mViewer=null; //keep single copy - + protected JButton mRefresh, mAdd, mDelete, mView, mHelp; private final static String HELPINDEX = "configuration-log-plugin-help"; @@ -106,13 +106,13 @@ public class LogImplTab extends CMSBaseUGTab { if(mTable.getSelectedRow()< 0) return; NameValuePairs obj = (NameValuePairs) - mDataModel.getObjectValueAt(mTable.getSelectedRow()); + mDataModel.getObjectValueAt(mTable.getSelectedRow()); if (mViewer==null) mViewer = new ViewDialog(mModel.getFrame()); mViewer.showDialog(obj.get(IMPL_NAME), obj.get(IMPL_CLASS), obj.get(IMPL_DESC)); - } + } if (e.getSource().equals(mHelp)) { helpCallback(); } @@ -124,7 +124,7 @@ public class LogImplTab extends CMSBaseUGTab { } public void mouseReleased(MouseEvent e) { - setButtons(); + setButtons(); } /*========================================================== @@ -133,8 +133,8 @@ public class LogImplTab extends CMSBaseUGTab { public void refresh() { mDataModel.removeAllRows(); - update(); - + update(); + setButtons(); mTable.invalidate(); mTable.validate(); @@ -218,7 +218,7 @@ public class LogImplTab extends CMSBaseUGTab { //set buttons private void setButtons() { - + //enable and diable buttons accordingly //Debug.println("setButtons() - "+mTable.getSelectedRow()); //Debug.println("setButtons() - "+mTable.getSelectionModel().isSelectionEmpty()); @@ -227,24 +227,24 @@ public class LogImplTab extends CMSBaseUGTab { mView.setEnabled(false); return; } - + if(mDataModel.getRowCount()<=0) { mDelete.setEnabled(false); mView.setEnabled(false); return; } - + mDelete.setEnabled(true); - mView.setEnabled(true); - + mView.setEnabled(true); + } - + //============================================= // SEND REQUESTS TO THE SERVER SIDE //============================================= private void update() { //send request and parse data - + mModel.progressStart(); NameValuePairs response; try { @@ -275,18 +275,18 @@ public class LogImplTab extends CMSBaseUGTab { obj.put(IMPL_DESC, value.substring(x + 1)); data.put(entry,obj); } - + CMSAdminUtil.bubbleSort(vals); - + for (int y=0; y< vals.length ; y++) { mDataModel.processData(data.get(vals[y])); } - + data.clear(); - + if (mDataModel.getRowCount() >0) mTable.setRowSelectionInterval(0,0); - + mModel.progressStop(); } diff --git a/base/console/src/com/netscape/admin/certsrv/config/LogInstanceTab.java b/base/console/src/com/netscape/admin/certsrv/config/LogInstanceTab.java index 99b86e5eb..f69557d4a 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/LogInstanceTab.java +++ b/base/console/src/com/netscape/admin/certsrv/config/LogInstanceTab.java @@ -42,7 +42,7 @@ public class LogInstanceTab extends CMSPluginInstanceTab { * variables *==========================================================*/ private static final String PANEL_NAME = "LOGRULE"; - + private final static String HELPINDEX = "configuration-loginstances-help"; @@ -57,7 +57,7 @@ public class LogInstanceTab extends CMSPluginInstanceTab { mScope = ScopeDef.SC_LOG_RULES; RULE_NAME = LogRuleDataModel.RULE_NAME; RULE_IMPL = LogRuleDataModel.RULE_IMPL; - RULE_STAT = LogRuleDataModel.RULE_STAT; + RULE_STAT = LogRuleDataModel.RULE_STAT; mHelpToken = HELPINDEX; } @@ -68,7 +68,7 @@ public class LogInstanceTab extends CMSPluginInstanceTab { JFrame parent, AdminConnection conn, String dest - ) + ) { return new LogConfigDialog(nvp, @@ -82,7 +82,7 @@ public class LogInstanceTab extends CMSPluginInstanceTab { AdminConnection conn, String dest, CMSPluginInstanceTab pluginType - ) + ) { return new LogPluginSelectionDialog(parent,conn,dest,pluginType); } diff --git a/base/console/src/com/netscape/admin/certsrv/config/LogPluginSelectionDialog.java b/base/console/src/com/netscape/admin/certsrv/config/LogPluginSelectionDialog.java index 83c8ab2e8..b1d5662a0 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/LogPluginSelectionDialog.java +++ b/base/console/src/com/netscape/admin/certsrv/config/LogPluginSelectionDialog.java @@ -49,9 +49,9 @@ public class LogPluginSelectionDialog extends PluginSelectionDialog *==========================================================*/ public LogPluginSelectionDialog( JFrame parent, - AdminConnection conn, + AdminConnection conn, String dest, - CMSPluginInstanceTab pluginType) + CMSPluginInstanceTab pluginType) { super(PREFIX, parent,conn, dest, pluginType); mScope = ScopeDef.SC_LOG_IMPLS; diff --git a/base/console/src/com/netscape/admin/certsrv/config/MapperConfigDialog.java b/base/console/src/com/netscape/admin/certsrv/config/MapperConfigDialog.java index 119823d58..80969a793 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/MapperConfigDialog.java +++ b/base/console/src/com/netscape/admin/certsrv/config/MapperConfigDialog.java @@ -46,7 +46,7 @@ public class MapperConfigDialog extends CMSBaseConfigDialog *==========================================================*/ public MapperConfigDialog(NameValuePairs nvp, JFrame parent, - AdminConnection conn, + AdminConnection conn, String dest) { super(parent, dest); @@ -61,4 +61,4 @@ public class MapperConfigDialog extends CMSBaseConfigDialog init(nvp,parent,conn,dest); } -} +} diff --git a/base/console/src/com/netscape/admin/certsrv/config/MapperImplDataModel.java b/base/console/src/com/netscape/admin/certsrv/config/MapperImplDataModel.java index 23d6ee0b4..77da97def 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/MapperImplDataModel.java +++ b/base/console/src/com/netscape/admin/certsrv/config/MapperImplDataModel.java @@ -40,7 +40,7 @@ public class MapperImplDataModel extends CMSContentTableModel public static final String IMPL_NAME = "NAME"; public static final String IMPL_CLASS = "CLASS"; public static final String IMPL_DESC = "DESC"; - + private static String[] mColumns = {MAPPER_IMPL, CLASSNAME}; /*========================================================== diff --git a/base/console/src/com/netscape/admin/certsrv/config/MapperImplTab.java b/base/console/src/com/netscape/admin/certsrv/config/MapperImplTab.java index 2ad54da60..c12d05df6 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/MapperImplTab.java +++ b/base/console/src/com/netscape/admin/certsrv/config/MapperImplTab.java @@ -43,19 +43,19 @@ public class MapperImplTab extends CMSBaseUGTab { private static final String IMPL_NAME = MapperImplDataModel.IMPL_NAME; private static final String IMPL_CLASS = MapperImplDataModel.IMPL_CLASS; private static final String IMPL_DESC = MapperImplDataModel.IMPL_DESC; - + private static final String PANEL_NAME = "MAPPERIMPL"; private static final String DIALOG_PREFIX = "MAPPERREGISTERDIALOG"; - + private AdminConnection mConnection; private String mDestination; - + protected JScrollPane mScrollPane; protected JTable mTable; //table protected MapperImplDataModel mDataModel; //table model protected MapperRegisterDialog mEditor=null; //keep single copy protected ViewDialog mViewer=null; //keep single copy - + protected JButton mRefresh, mAdd, mDelete, mView, mHelp; private final static String RAHELPINDEX = "configuration-ra-mapperplugin-help"; private final static String CAHELPINDEX = "configuration-ca-mapperplugin-help"; @@ -111,13 +111,13 @@ public class MapperImplTab extends CMSBaseUGTab { if(mTable.getSelectedRow()< 0) return; NameValuePairs obj = (NameValuePairs) - mDataModel.getObjectValueAt(mTable.getSelectedRow()); + mDataModel.getObjectValueAt(mTable.getSelectedRow()); if (mViewer==null) mViewer = new ViewDialog(mModel.getFrame()); mViewer.showDialog(obj.get(IMPL_NAME), obj.get(IMPL_CLASS), obj.get(IMPL_DESC)); - } + } if (e.getSource().equals(mHelp)) { helpCallback(); } @@ -129,7 +129,7 @@ public class MapperImplTab extends CMSBaseUGTab { } public void mouseReleased(MouseEvent e) { - setButtons(); + setButtons(); } /*========================================================== @@ -138,8 +138,8 @@ public class MapperImplTab extends CMSBaseUGTab { public void refresh() { mDataModel.removeAllRows(); - update(); - + update(); + setButtons(); mTable.invalidate(); mTable.validate(); @@ -223,7 +223,7 @@ public class MapperImplTab extends CMSBaseUGTab { //set buttons private void setButtons() { - + //enable and diable buttons accordingly //Debug.println("setButtons() - "+mTable.getSelectedRow()); //Debug.println("setButtons() - "+mTable.getSelectionModel().isSelectionEmpty()); @@ -232,24 +232,24 @@ public class MapperImplTab extends CMSBaseUGTab { mView.setEnabled(false); return; } - + if(mDataModel.getRowCount()<=0) { mDelete.setEnabled(false); mView.setEnabled(false); return; } - + mDelete.setEnabled(true); - mView.setEnabled(true); - + mView.setEnabled(true); + } - + //============================================= // SEND REQUESTS TO THE SERVER SIDE //============================================= private void update() { //send request and parse data - + mModel.progressStart(); NameValuePairs response; try { @@ -280,18 +280,18 @@ public class MapperImplTab extends CMSBaseUGTab { obj.put(IMPL_DESC, value.substring(x + 1)); data.put(entry,obj); } - + CMSAdminUtil.bubbleSort(vals); - + for (int y=0; y< vals.length ; y++) { mDataModel.processData(data.get(vals[y])); } - + data.clear(); - + if (mDataModel.getRowCount() >0) mTable.setRowSelectionInterval(0,0); - + mModel.progressStop(); } diff --git a/base/console/src/com/netscape/admin/certsrv/config/MapperInstanceTab.java b/base/console/src/com/netscape/admin/certsrv/config/MapperInstanceTab.java index a531ecf30..9e50c67f3 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/MapperInstanceTab.java +++ b/base/console/src/com/netscape/admin/certsrv/config/MapperInstanceTab.java @@ -42,7 +42,7 @@ public class MapperInstanceTab extends CMSPluginInstanceTab { * variables *==========================================================*/ private static final String PANEL_NAME = "MAPPERRULE"; - + private final static String RAHELPINDEX = "configuration-ra-mapperinstances-help"; private final static String CAHELPINDEX = "configuration-ca-mapperinstances-help"; private final static String KRAHELPINDEX = "configuration-kra-mapperinstances-help"; @@ -58,9 +58,9 @@ public class MapperInstanceTab extends CMSPluginInstanceTab { mDataModel = new MapperRuleDataModel(); mScope = ScopeDef.SC_MAPPER_RULES; RULE_NAME = MapperRuleDataModel.RULE_NAME; - RULE_STAT = MapperRuleDataModel.RULE_STAT; + RULE_STAT = MapperRuleDataModel.RULE_STAT; - if (mDestination.equals(DestDef.DEST_RA_MAPPER_ADMIN)) + if (mDestination.equals(DestDef.DEST_RA_MAPPER_ADMIN)) mHelpToken = RAHELPINDEX; else mHelpToken = CAHELPINDEX; @@ -72,7 +72,7 @@ public class MapperInstanceTab extends CMSPluginInstanceTab { JFrame parent, AdminConnection conn, String dest - ) + ) { return new MapperConfigDialog(nvp, @@ -86,7 +86,7 @@ public class MapperInstanceTab extends CMSPluginInstanceTab { AdminConnection conn, String dest, CMSPluginInstanceTab pluginType - ) + ) { return new MapperPluginSelectionDialog(parent,conn,dest,pluginType); } diff --git a/base/console/src/com/netscape/admin/certsrv/config/MapperPluginSelectionDialog.java b/base/console/src/com/netscape/admin/certsrv/config/MapperPluginSelectionDialog.java index ce0e10e9a..f393ae05d 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/MapperPluginSelectionDialog.java +++ b/base/console/src/com/netscape/admin/certsrv/config/MapperPluginSelectionDialog.java @@ -41,7 +41,7 @@ public class MapperPluginSelectionDialog extends PluginSelectionDialog * variables *==========================================================*/ private static final String PREFIX = "MAPPERSELECTIONDIALOG"; - private static final String CAHELPINDEX = + private static final String CAHELPINDEX = "configuration-ca-add-mapperrule-dbox-help"; private static final String RAHELPINDEX = "configuration-ra-add-mapperrule-dbox-help"; @@ -51,9 +51,9 @@ public class MapperPluginSelectionDialog extends PluginSelectionDialog *==========================================================*/ public MapperPluginSelectionDialog( JFrame parent, - AdminConnection conn, + AdminConnection conn, String dest, - CMSPluginInstanceTab pluginType) + CMSPluginInstanceTab pluginType) { super(PREFIX, parent,conn, dest, pluginType); mScope = ScopeDef.SC_MAPPER_IMPLS; diff --git a/base/console/src/com/netscape/admin/certsrv/config/OCSPStoresConfigDialog.java b/base/console/src/com/netscape/admin/certsrv/config/OCSPStoresConfigDialog.java index 87097ddc0..024196284 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/OCSPStoresConfigDialog.java +++ b/base/console/src/com/netscape/admin/certsrv/config/OCSPStoresConfigDialog.java @@ -57,4 +57,4 @@ public class OCSPStoresConfigDialog extends CMSBaseConfigDialog init(nvp,parent,conn,dest); } -} +} diff --git a/base/console/src/com/netscape/admin/certsrv/config/OCSPStoresInstanceTab.java b/base/console/src/com/netscape/admin/certsrv/config/OCSPStoresInstanceTab.java index ff234c7fd..110ba7806 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/OCSPStoresInstanceTab.java +++ b/base/console/src/com/netscape/admin/certsrv/config/OCSPStoresInstanceTab.java @@ -40,7 +40,7 @@ public class OCSPStoresInstanceTab extends CMSPluginInstanceTab { * variables *==========================================================*/ private static final String PANEL_NAME = "OCSPSTORESRULE"; - + private final static String OCSPHELPINDEX = "configuration-ocsp-storeinstances-help"; @@ -53,9 +53,9 @@ public class OCSPStoresInstanceTab extends CMSPluginInstanceTab { mConnection = model.getServerInfo().getAdmin(); mDataModel = new OCSPStoresRuleDataModel(); mScope = ScopeDef.SC_OCSPSTORES_RULES; - RULE_NAME = OCSPStoresRuleDataModel.RULE_NAME; + RULE_NAME = OCSPStoresRuleDataModel.RULE_NAME; RULE_IMPL = OCSPStoresRuleDataModel.RULE_IMPL; - RULE_STAT = OCSPStoresRuleDataModel.RULE_STAT; + RULE_STAT = OCSPStoresRuleDataModel.RULE_STAT; mHelpToken = OCSPHELPINDEX; } @@ -64,7 +64,7 @@ public class OCSPStoresInstanceTab extends CMSPluginInstanceTab { NameValuePairs nvp, JFrame parent, AdminConnection conn, - String dest) + String dest) { return new OCSPStoresConfigDialog(nvp, parent, conn, dest); } @@ -73,7 +73,7 @@ public class OCSPStoresInstanceTab extends CMSPluginInstanceTab { JFrame parent, AdminConnection conn, String dest, - CMSPluginInstanceTab pluginType) + CMSPluginInstanceTab pluginType) { return new OCSPStoresPluginSelectionDialog(parent, conn, dest, pluginType); } @@ -108,7 +108,7 @@ public class OCSPStoresInstanceTab extends CMSPluginInstanceTab { mModel.progressStart(); //get entry name NameValuePairs data = (NameValuePairs) - mDataModel.getObjectValueAt(mTable.getSelectedRow()); + mDataModel.getObjectValueAt(mTable.getSelectedRow()); NameValuePairs nvps = new NameValuePairs(); //send comment to server for the removal of user diff --git a/base/console/src/com/netscape/admin/certsrv/config/OCSPStoresPluginSelectionDialog.java b/base/console/src/com/netscape/admin/certsrv/config/OCSPStoresPluginSelectionDialog.java index 32365c27c..68c952c7b 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/OCSPStoresPluginSelectionDialog.java +++ b/base/console/src/com/netscape/admin/certsrv/config/OCSPStoresPluginSelectionDialog.java @@ -40,7 +40,7 @@ public class OCSPStoresPluginSelectionDialog extends PluginSelectionDialog * variables *==========================================================*/ private static final String PREFIX = "OCSPSTORESELECTIONDIALOG"; - private static final String OCSPHELPINDEX = + private static final String OCSPHELPINDEX = "configuration-ocsp-add-crlextensionrule-dbox-help"; /*========================================================== @@ -48,9 +48,9 @@ public class OCSPStoresPluginSelectionDialog extends PluginSelectionDialog *==========================================================*/ public OCSPStoresPluginSelectionDialog( JFrame parent, - AdminConnection conn, + AdminConnection conn, String dest, - CMSPluginInstanceTab pluginType) + CMSPluginInstanceTab pluginType) { super(PREFIX, parent,conn, dest, pluginType); // mScope = ScopeDef.SC_RULE_IMPLS; diff --git a/base/console/src/com/netscape/admin/certsrv/config/OCSPStoresRuleDataModel.java b/base/console/src/com/netscape/admin/certsrv/config/OCSPStoresRuleDataModel.java index 5cd67e276..05c9c74ad 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/OCSPStoresRuleDataModel.java +++ b/base/console/src/com/netscape/admin/certsrv/config/OCSPStoresRuleDataModel.java @@ -55,7 +55,7 @@ public class OCSPStoresRuleDataModel extends CMSRuleDataModel v.addElement(new JLabel(obj.get(RULE_NAME), CMSAdminUtil.getImage(CMSAdminResources.IMAGE_RULE), JLabel.LEFT)); - v.addElement(mResource.getString("OCSPSTORESRULE_LABEL_ENABLED_LABEL")); + v.addElement(mResource.getString("OCSPSTORESRULE_LABEL_ENABLED_LABEL")); } else { v.addElement(new JLabel(obj.get(RULE_NAME), CMSAdminUtil.getImage(CMSAdminResources.IMAGE_RULE_DISABLE), diff --git a/base/console/src/com/netscape/admin/certsrv/config/PanelMapperConfigDialog.java b/base/console/src/com/netscape/admin/certsrv/config/PanelMapperConfigDialog.java index 5de06c7f9..d920c1681 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/PanelMapperConfigDialog.java +++ b/base/console/src/com/netscape/admin/certsrv/config/PanelMapperConfigDialog.java @@ -57,7 +57,7 @@ public class PanelMapperConfigDialog extends JDialog private AdminConnection mConn; private JButton mOK, mCancel, mHelp; private JComboBox mSelection; - + private static final String CAHELPINDEX = "configuration-ldappublish-camapper-dbox-help"; private static final String RAHELPINDEX = @@ -97,7 +97,7 @@ public class PanelMapperConfigDialog extends JDialog mScope = scope; Debug.println("MapperConfigDialog: showDialog() - mapper: "+ mRuleName+" dest: "+mDest+" scope: "+mScope); - + if (!refresh(name)) return; @@ -127,7 +127,7 @@ public class PanelMapperConfigDialog extends JDialog mTable.setValueAt(str, row, col); } } - + try { saveConfiguration(); } catch (EAdminException e) { @@ -136,7 +136,7 @@ public class PanelMapperConfigDialog extends JDialog e.toString(), CMSAdminUtil.ERROR_MESSAGE); return; } - + mIsOK = true; this.dispose(); } @@ -164,37 +164,37 @@ public class PanelMapperConfigDialog extends JDialog } } } - + /*========================================================== * private methods *==========================================================*/ - + private void saveEdit() { - + //save any current edit component Component component = mTable.getEditorComponent(); - + } - - //setup and refresh the UI components + + //setup and refresh the UI components private boolean refresh(String mapperName) { - + //get mapper listing if (!getMapperListing(mapperName)) return false; - + //setup UI if (! setupConfigUI(mapperName)) return false; - + return true; } - - //retrieve the mapper class listing and update + + //retrieve the mapper class listing and update //the selection UI private boolean getMapperListing(String mapperName) { NameValuePairs response; - + try { response = getMapperList(); }catch (EAdminException e) { @@ -202,22 +202,22 @@ public class PanelMapperConfigDialog extends JDialog e.toString(), CMSAdminUtil.ERROR_MESSAGE); return false; } - + Debug.println("MapperList: "+response.toString()); mSelection.removeAllItems(); - + for (String name : response.keySet()) { mSelection.addItem(name.trim()); } - + mSelection.setSelectedItem(mapperName); return true; } - + //retrieve the config parameters for the mapper //and update the config UI private boolean setupConfigUI(String mapperName) { - + try { mData = getConfiguration(mapperName); }catch (EAdminException e) { @@ -228,7 +228,7 @@ public class PanelMapperConfigDialog extends JDialog Debug.println("MapperConfigDialog: showDialog() config: "+mData.toString()); mDataModel.removeAllRows(); - + for (String entry : mData.keySet()) { entry = entry.trim(); if (!entry.equals(Constants.PR_MAPPER)) { @@ -243,7 +243,7 @@ public class PanelMapperConfigDialog extends JDialog mTable.repaint(); return true; } - + private void setDisplay() { getContentPane().setLayout(new BorderLayout()); JPanel center = new JPanel(); @@ -311,7 +311,7 @@ public class PanelMapperConfigDialog extends JDialog mScrollPane.setBackground(Color.white); //setLabelCellRenderer(mTable,1); setCellEditor(mTable,1); - + CMSAdminUtil.resetGBC(gbc); gbc.anchor = gbc.NORTH; gbc.gridwidth = gbc.REMAINDER; @@ -330,41 +330,41 @@ public class PanelMapperConfigDialog extends JDialog //Set the index column's cellrender as label cell private void setLabelCellRenderer(JTable table, int index) { table.getColumnModel().getColumn(index).setCellRenderer( - new DefaultTableCellRenderer()); + new DefaultTableCellRenderer()); } - + //set the index column's cell editor private void setCellEditor(JTable table, int index) { table.getColumnModel().getColumn(index).setCellEditor( - new DefaultCellEditor(new JTextField())); + new DefaultCellEditor(new JTextField())); } - + //retrieve the mapper listing from the server side - private NameValuePairs getMapperList() - throws EAdminException + private NameValuePairs getMapperList() + throws EAdminException { - return mConn.search(mDest, getMapperScope(), + return mConn.search(mDest, getMapperScope(), new NameValuePairs()); } - + //retrieve the configuration parameters for specific //mapper class - private NameValuePairs getConfiguration(String mapper) - throws EAdminException + private NameValuePairs getConfiguration(String mapper) + throws EAdminException { - return mConn.read(mDest, getMapperScope(), + return mConn.read(mDest, getMapperScope(), mapper, new NameValuePairs()); } - + //get the mapper scope private String getMapperScope() { - + if (mScope.equals(ScopeDef.SC_CACERT)) return ScopeDef.SC_CAMAPPER; else return ScopeDef.SC_USERMAPPER; } - + //save the configuration settings for the mapper private void saveConfiguration() throws EAdminException { NameValuePairs nvp = getData(); @@ -380,12 +380,12 @@ public class PanelMapperConfigDialog extends JDialog } return response; } - + /** * Add a label and a textfield to a panel, assumed to be using * GridBagLayout. */ - private static void addEntryField(JPanel panel, JComponent label, + private static void addEntryField(JPanel panel, JComponent label, JComponent field, GridBagConstraints gbc) { gbc.fill = gbc.NONE; gbc.weightx = 0.0; @@ -405,5 +405,5 @@ public class PanelMapperConfigDialog extends JDialog CMSAdminUtil.COMPONENT_SPACE, 0,CMSAdminUtil.COMPONENT_SPACE); panel.add( field, gbc ); - } + } } diff --git a/base/console/src/com/netscape/admin/certsrv/config/PluginSelectionDialog.java b/base/console/src/com/netscape/admin/certsrv/config/PluginSelectionDialog.java index 437881186..ed1c21aa9 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/PluginSelectionDialog.java +++ b/base/console/src/com/netscape/admin/certsrv/config/PluginSelectionDialog.java @@ -60,9 +60,9 @@ public class PluginSelectionDialog extends JDialog protected CMSBaseResourceModel mModel=null; public PluginSelectionDialog( - String prefix, - JFrame parent, - AdminConnection conn, + String prefix, + JFrame parent, + AdminConnection conn, String dest) { this( prefix, @@ -76,11 +76,11 @@ public class PluginSelectionDialog extends JDialog * constructors *==========================================================*/ public PluginSelectionDialog( - String prefix, - JFrame parent, - AdminConnection conn, + String prefix, + JFrame parent, + AdminConnection conn, String dest, - CMSPluginInstanceTab pluginType) + CMSPluginInstanceTab pluginType) { super(parent,true); mParentFrame = parent; @@ -341,18 +341,18 @@ public class PluginSelectionDialog extends JDialog vals[i++] = name.trim(); Debug.println("PluginSelectionDialog::update() - adding '" + vals[i - 1] + "'"); } - + CMSAdminUtil.bubbleSort(vals); - + for (int y=0; y< vals.length ; y++) { try { - mDataModel.addElement(new JLabel(vals[y], + mDataModel.addElement(new JLabel(vals[y], CMSAdminUtil.getImage(mImageName), JLabel.LEFT)); } catch (Exception ex) { Debug.println("PluginSelectionDialog could not get image for '"+ mImageName+"'. Adding without image"); - mDataModel.addElement(new JLabel(vals[y], + mDataModel.addElement(new JLabel(vals[y], JLabel.LEFT)); } } @@ -364,12 +364,12 @@ public class PluginSelectionDialog extends JDialog protected NameValuePairs getDefaultConfig() throws EAdminException { String id = ((JLabel)mDataModel.elementAt(mList.getSelectedIndex())).getText(); NameValuePairs response; - response = mConnection.read(mDestination, mScope, id, + response = mConnection.read(mDestination, mScope, id, new NameValuePairs()); Debug.println(response.toString()); return response; } - + } diff --git a/base/console/src/com/netscape/admin/certsrv/config/PolicyConfigDialog.java b/base/console/src/com/netscape/admin/certsrv/config/PolicyConfigDialog.java index 8dec3cabf..c5a09837f 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/PolicyConfigDialog.java +++ b/base/console/src/com/netscape/admin/certsrv/config/PolicyConfigDialog.java @@ -46,7 +46,7 @@ public class PolicyConfigDialog extends CMSBaseConfigDialog *==========================================================*/ public PolicyConfigDialog(NameValuePairs nvp, JFrame parent, - AdminConnection conn, + AdminConnection conn, String dest) { super(parent, dest); @@ -61,4 +61,4 @@ public class PolicyConfigDialog extends CMSBaseConfigDialog init(nvp,parent,conn,dest); } -} +} diff --git a/base/console/src/com/netscape/admin/certsrv/config/PolicyImplDataModel.java b/base/console/src/com/netscape/admin/certsrv/config/PolicyImplDataModel.java index 59ea36ec8..00baf6b8e 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/PolicyImplDataModel.java +++ b/base/console/src/com/netscape/admin/certsrv/config/PolicyImplDataModel.java @@ -40,7 +40,7 @@ public class PolicyImplDataModel extends CMSContentTableModel public static final String IMPL_NAME = "NAME"; public static final String IMPL_CLASS = "CLASS"; public static final String IMPL_DESC = "DESC"; - + private static String[] mColumns = {POLICY_IMPL, CLASSNAME}; /*========================================================== diff --git a/base/console/src/com/netscape/admin/certsrv/config/PolicyImplTab.java b/base/console/src/com/netscape/admin/certsrv/config/PolicyImplTab.java index f4fab7260..dbdfe8228 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/PolicyImplTab.java +++ b/base/console/src/com/netscape/admin/certsrv/config/PolicyImplTab.java @@ -43,19 +43,19 @@ public class PolicyImplTab extends CMSBaseUGTab { private static final String IMPL_NAME = PolicyImplDataModel.IMPL_NAME; private static final String IMPL_CLASS = PolicyImplDataModel.IMPL_CLASS; private static final String IMPL_DESC = PolicyImplDataModel.IMPL_DESC; - + private static final String PANEL_NAME = "POLICYIMPL"; private static final String DIALOG_PREFIX = "POLICYREGISTERDIALOG"; - + private AdminConnection mConnection; private String mDestination; - + protected JScrollPane mScrollPane; protected JTable mTable; //table protected PolicyImplDataModel mDataModel; //table model protected PolicyRegisterDialog mEditor=null; //keep single copy protected ViewDialog mViewer=null; //keep single copy - + protected JButton mRefresh, mAdd, mDelete, mView, mHelp; private final static String RAHELPINDEX = "configuration-ra-policyplugin-help"; private final static String CAHELPINDEX = "configuration-ca-policyplugin-help"; @@ -113,13 +113,13 @@ public class PolicyImplTab extends CMSBaseUGTab { if(mTable.getSelectedRow()< 0) return; NameValuePairs obj = (NameValuePairs) - mDataModel.getObjectValueAt(mTable.getSelectedRow()); + mDataModel.getObjectValueAt(mTable.getSelectedRow()); if (mViewer==null) mViewer = new ViewDialog(mModel.getFrame()); mViewer.showDialog(obj.get(IMPL_NAME), obj.get(IMPL_CLASS), obj.get(IMPL_DESC)); - } + } if (e.getSource().equals(mHelp)) { helpCallback(); } @@ -131,7 +131,7 @@ public class PolicyImplTab extends CMSBaseUGTab { } public void mouseReleased(MouseEvent e) { - setButtons(); + setButtons(); } /*========================================================== @@ -140,8 +140,8 @@ public class PolicyImplTab extends CMSBaseUGTab { public void refresh() { mDataModel.removeAllRows(); - update(); - + update(); + setButtons(); mTable.invalidate(); mTable.validate(); @@ -225,7 +225,7 @@ public class PolicyImplTab extends CMSBaseUGTab { //set buttons private void setButtons() { - + //enable and diable buttons accordingly //Debug.println("setButtons() - "+mTable.getSelectedRow()); //Debug.println("setButtons() - "+mTable.getSelectionModel().isSelectionEmpty()); @@ -234,24 +234,24 @@ public class PolicyImplTab extends CMSBaseUGTab { mView.setEnabled(false); return; } - + if(mDataModel.getRowCount()<=0) { mDelete.setEnabled(false); mView.setEnabled(false); return; } - + mDelete.setEnabled(true); - mView.setEnabled(true); - + mView.setEnabled(true); + } - + //============================================= // SEND REQUESTS TO THE SERVER SIDE //============================================= private void update() { //send request and parse data - + mModel.progressStart(); NameValuePairs response; try { @@ -282,18 +282,18 @@ public class PolicyImplTab extends CMSBaseUGTab { obj.put(IMPL_DESC, value.substring(x + 1)); data.put(entry,obj); } - + CMSAdminUtil.bubbleSort(vals); - + for (int y=0; y< vals.length ; y++) { mDataModel.processData(data.get(vals[y])); } - + data.clear(); - + if (mDataModel.getRowCount() >0) mTable.setRowSelectionInterval(0,0); - + mModel.progressStop(); } diff --git a/base/console/src/com/netscape/admin/certsrv/config/PolicyInstanceTab.java b/base/console/src/com/netscape/admin/certsrv/config/PolicyInstanceTab.java index 9bf8fb54b..5d13c7a49 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/PolicyInstanceTab.java +++ b/base/console/src/com/netscape/admin/certsrv/config/PolicyInstanceTab.java @@ -42,7 +42,7 @@ public class PolicyInstanceTab extends CMSPluginInstanceTab { * variables *==========================================================*/ private static final String PANEL_NAME = "POLICYRULE"; - + protected JButton mOrder; private final static String RAHELPINDEX = "configuration-ra-policyrules-help"; private final static String CAHELPINDEX = "configuration-ca-policyrules-help"; @@ -59,9 +59,9 @@ public class PolicyInstanceTab extends CMSPluginInstanceTab { mDataModel = new PolicyRuleDataModel(); mScope = ScopeDef.SC_POLICY_RULES; RULE_NAME = PolicyRuleDataModel.RULE_NAME; - RULE_STAT = PolicyRuleDataModel.RULE_STAT; + RULE_STAT = PolicyRuleDataModel.RULE_STAT; - if (mDestination.equals(DestDef.DEST_RA_POLICY_ADMIN)) + if (mDestination.equals(DestDef.DEST_RA_POLICY_ADMIN)) mHelpToken = RAHELPINDEX; else if (mDestination.equals(DestDef.DEST_KRA_POLICY_ADMIN)) mHelpToken = KRAHELPINDEX; @@ -75,7 +75,7 @@ public class PolicyInstanceTab extends CMSPluginInstanceTab { JFrame parent, AdminConnection conn, String dest - ) + ) { return new PolicyConfigDialog(nvp, @@ -89,7 +89,7 @@ public class PolicyInstanceTab extends CMSPluginInstanceTab { AdminConnection conn, String dest, CMSPluginInstanceTab pluginType - ) + ) { return new PolicyPluginSelectionDialog(parent,conn,dest,pluginType); } @@ -99,12 +99,12 @@ public class PolicyInstanceTab extends CMSPluginInstanceTab { public void moreActionPerformed(ActionEvent e) { if (e.getSource().equals(mOrder)) { Debug.println("Order"); - PolicyRuleOrderDialog dialog = - new PolicyRuleOrderDialog(mModel.getFrame(), + PolicyRuleOrderDialog dialog = + new PolicyRuleOrderDialog(mModel.getFrame(), mConnection, mDestination); - dialog.showDialog(mDataModel.getRules()); + dialog.showDialog(mDataModel.getRules()); refresh(); - } + } } /** @@ -126,7 +126,7 @@ public class PolicyInstanceTab extends CMSPluginInstanceTab { //set buttons protected void setButtons() { super.setButtons(); - + if (mDataModel.getRowCount()<=0) { mOrder.setEnabled(false); } @@ -134,6 +134,6 @@ public class PolicyInstanceTab extends CMSPluginInstanceTab { mOrder.setEnabled(true); } } - - + + } diff --git a/base/console/src/com/netscape/admin/certsrv/config/PolicyPluginSelectionDialog.java b/base/console/src/com/netscape/admin/certsrv/config/PolicyPluginSelectionDialog.java index 6ef26b767..11120ce69 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/PolicyPluginSelectionDialog.java +++ b/base/console/src/com/netscape/admin/certsrv/config/PolicyPluginSelectionDialog.java @@ -41,7 +41,7 @@ public class PolicyPluginSelectionDialog extends PluginSelectionDialog * variables *==========================================================*/ private static final String PREFIX = "POLICYSELECTIONDIALOG"; - private static final String CAHELPINDEX = + private static final String CAHELPINDEX = "configuration-ca-add-policyrule-dbox-help"; private static final String RAHELPINDEX = "configuration-ra-add-policyrule-dbox-help"; @@ -53,9 +53,9 @@ public class PolicyPluginSelectionDialog extends PluginSelectionDialog *==========================================================*/ public PolicyPluginSelectionDialog( JFrame parent, - AdminConnection conn, + AdminConnection conn, String dest, - CMSPluginInstanceTab pluginType) + CMSPluginInstanceTab pluginType) { super(PREFIX, parent,conn, dest, pluginType); mScope = ScopeDef.SC_POLICY_IMPLS; diff --git a/base/console/src/com/netscape/admin/certsrv/config/PolicyRuleDataModel.java b/base/console/src/com/netscape/admin/certsrv/config/PolicyRuleDataModel.java index 9bbeda334..5adf42cdd 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/PolicyRuleDataModel.java +++ b/base/console/src/com/netscape/admin/certsrv/config/PolicyRuleDataModel.java @@ -56,7 +56,7 @@ public class PolicyRuleDataModel extends CMSRuleDataModel v.addElement(new JLabel(obj.get(RULE_NAME), CMSAdminUtil.getImage(CMSAdminResources.IMAGE_RULE), JLabel.LEFT)); - v.addElement(mResource.getString("POLICYRULE_LABEL_ENABLED_LABEL")); + v.addElement(mResource.getString("POLICYRULE_LABEL_ENABLED_LABEL")); } else { v.addElement(new JLabel(obj.get(RULE_NAME), CMSAdminUtil.getImage(CMSAdminResources.IMAGE_RULE_DISABLE), diff --git a/base/console/src/com/netscape/admin/certsrv/config/PolicyRuleOrderDialog.java b/base/console/src/com/netscape/admin/certsrv/config/PolicyRuleOrderDialog.java index 1c99d999f..e4149df13 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/PolicyRuleOrderDialog.java +++ b/base/console/src/com/netscape/admin/certsrv/config/PolicyRuleOrderDialog.java @@ -99,12 +99,12 @@ public class PolicyRuleOrderDialog extends JDialog mDataModel.clear(); for (int i=0; i<rules.size(); i++) mDataModel.addElement( - new JLabel((String)rules.elementAt(i), + new JLabel((String)rules.elementAt(i), CMSAdminUtil.getImage(CMSAdminResources.IMAGE_RULE), JLabel.LEFT)); if (mDataModel.getSize() >0) mList.setSelectedIndex(0); - + refresh(); setArrowButtons(); this.show(); @@ -147,7 +147,7 @@ public class PolicyRuleOrderDialog extends JDialog mDataModel.insertElementAt(obj,index+1); mList.setSelectedIndex(index+1); setArrowButtons(); - refresh(); + refresh(); } if (evt.getSource().equals(mHelp)) { CMSAdminUtil.help(mHelpToken); @@ -161,7 +161,7 @@ public class PolicyRuleOrderDialog extends JDialog public void mousePressed(MouseEvent e) {} public void mouseReleased(MouseEvent e) { - setArrowButtons(); + setArrowButtons(); } public void mouseEntered(MouseEvent e) {} public void mouseExited(MouseEvent e) { @@ -282,12 +282,12 @@ public class PolicyRuleOrderDialog extends JDialog x++; buf.append(((JLabel)mDataModel.getElementAt(i)).getText()); } - + NameValuePairs nvp = new NameValuePairs(); nvp.put(Constants.PR_POLICY_ORDER, buf.toString()); - + Debug.println("ORDER: "+buf.toString()); - + mConnection.modify(mDestination, ScopeDef.SC_POLICY_RULES, Constants.RS_ID_ORDER, @@ -296,7 +296,7 @@ public class PolicyRuleOrderDialog extends JDialog //set arrow buttons private void setArrowButtons() { - + //enable and diable buttons accordingly Debug.println("setArrowButtons() - "+mList.getSelectedIndex()); if (mList.getSelectedIndex()< 0) { @@ -305,7 +305,7 @@ public class PolicyRuleOrderDialog extends JDialog mOK.setEnabled(false); return; } - + if (mList.getSelectedIndex()==0) mUp.setEnabled(false); else @@ -314,7 +314,7 @@ public class PolicyRuleOrderDialog extends JDialog mDown.setEnabled(true); else mDown.setEnabled(false); - mOK.setEnabled(true); + mOK.setEnabled(true); } //refresh the table content diff --git a/base/console/src/com/netscape/admin/certsrv/config/ProfileComponentCellEditor.java b/base/console/src/com/netscape/admin/certsrv/config/ProfileComponentCellEditor.java index b1e2769db..e64a09254 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/ProfileComponentCellEditor.java +++ b/base/console/src/com/netscape/admin/certsrv/config/ProfileComponentCellEditor.java @@ -31,14 +31,14 @@ import javax.swing.*; public class ProfileComponentCellEditor implements TableCellEditor { protected EventListenerList listenerList = new EventListenerList(); protected ChangeEvent changeEvent = null; - + protected JComponent editorComponent = null; protected JComponent container = null; // Can be tree or table public Component getComponent() { return editorComponent; } - + public Object getCellEditorValue() { return editorComponent; } @@ -46,28 +46,28 @@ public class ProfileComponentCellEditor implements TableCellEditor { public boolean isCellEditable(EventObject anEvent) { return true; } - + public boolean shouldSelectCell(EventObject anEvent) { return true; } - + public boolean stopCellEditing() { fireEditingStopped(); return true; } - + public void cancelCellEditing() { fireEditingCanceled(); } - + public void addCellEditorListener(CellEditorListener l) { listenerList.add(CellEditorListener.class, l); } - + public void removeCellEditorListener(CellEditorListener l) { listenerList.remove(CellEditorListener.class, l); } - + protected void fireEditingStopped() { Object[] listeners = listenerList.getListenerList(); // Process the listeners last to first, notifying @@ -78,10 +78,10 @@ public class ProfileComponentCellEditor implements TableCellEditor { if (changeEvent == null) changeEvent = new ChangeEvent(this); ((CellEditorListener)listeners[i+1]).editingStopped(changeEvent); - } + } } } - + protected void fireEditingCanceled() { // Guaranteed to return a non-null array Object[] listeners = listenerList.getListenerList(); @@ -93,14 +93,14 @@ public class ProfileComponentCellEditor implements TableCellEditor { if (changeEvent == null) changeEvent = new ChangeEvent(this); ((CellEditorListener)listeners[i+1]).editingCanceled(changeEvent); - } + } } } - + // implements javax.swing.table.TableCellEditor public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) { - + editorComponent = (JComponent)value; container = table; return editorComponent; diff --git a/base/console/src/com/netscape/admin/certsrv/config/ProfileConfigDialog.java b/base/console/src/com/netscape/admin/certsrv/config/ProfileConfigDialog.java index a8d312d2a..14b772675 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/ProfileConfigDialog.java +++ b/base/console/src/com/netscape/admin/certsrv/config/ProfileConfigDialog.java @@ -47,7 +47,7 @@ public class ProfileConfigDialog extends CMSBaseConfigDialog *==========================================================*/ public ProfileConfigDialog(NameValuePairs nvp, JFrame parent, - AdminConnection conn, + AdminConnection conn, String dest) { super(parent, dest); @@ -370,7 +370,7 @@ public class ProfileConfigDialog extends CMSBaseConfigDialog nvp.put("auth", mAuthField.getText()); nvp.put("desc", mDescField.getText()); // nvp.add("config", mConfigField.getText()); - // mAdminConnection.add(DestDef.DEST_CA_PROFILE_ADMIN, + // mAdminConnection.add(DestDef.DEST_CA_PROFILE_ADMIN, mAdminConnection.add(mDest, ScopeDef.SC_PROFILE_RULES, instanceName, nvp); @@ -392,5 +392,5 @@ public class ProfileConfigDialog extends CMSBaseConfigDialog CMSAdminUtil.help(mHelpToken); } - } -} + } +} diff --git a/base/console/src/com/netscape/admin/certsrv/config/ProfileEditDialog.java b/base/console/src/com/netscape/admin/certsrv/config/ProfileEditDialog.java index d10e19215..1d87b60fd 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/ProfileEditDialog.java +++ b/base/console/src/com/netscape/admin/certsrv/config/ProfileEditDialog.java @@ -57,7 +57,7 @@ public class ProfileEditDialog extends CMSBaseConfigDialog *==========================================================*/ public ProfileEditDialog(NameValuePairs nvp, JFrame parent, - AdminConnection conn, + AdminConnection conn, String dest) { super(parent, dest); @@ -242,7 +242,7 @@ public class ProfileEditDialog extends CMSBaseConfigDialog policyColNames.addElement("Id"); policyColNames.addElement("Defaults"); policyColNames.addElement("Constraints"); - Vector policyData = new Vector(); + Vector policyData = new Vector(); Vector policyRow = new Vector(); policyRow.addElement("p1"); policyRow.addElement("p1"); @@ -257,11 +257,11 @@ public class ProfileEditDialog extends CMSBaseConfigDialog mPolicyDelete = CMSAdminUtil.makeJButton(mResource, PREFIX, "DELETE", null, this); JPanel buttonPanel = createUserButtonPanel(mPolicyAdd, mPolicyDelete, mPolicyEdit); - JPanel lpanel = createListPanel(mPolicyTable, buttonPanel, + JPanel lpanel = createListPanel(mPolicyTable, buttonPanel, policyColNames, policyData); Vector inputColNames = new Vector(); - inputColNames.addElement("Id"); + inputColNames.addElement("Id"); inputColNames.addElement("Inputs"); Vector inputData = new Vector(); Vector inputRow = new Vector(); @@ -276,7 +276,7 @@ public class ProfileEditDialog extends CMSBaseConfigDialog mInputDelete = CMSAdminUtil.makeJButton(mResource, PREFIX, "DELETE", null, this); JPanel buttonPanel1 = createUserButtonPanel(mInputAdd, mInputDelete, mInputEdit); - JPanel lpanel1 = createListPanel(mInputTable, buttonPanel1, + JPanel lpanel1 = createListPanel(mInputTable, buttonPanel1, inputColNames, inputData); Vector outputColNames = new Vector(); @@ -292,11 +292,11 @@ public class ProfileEditDialog extends CMSBaseConfigDialog mOutputTable = new JTable(model2); mOutputEdit = CMSAdminUtil.makeJButton(mResource, PREFIX, "EDIT", null, this); mOutputAdd = CMSAdminUtil.makeJButton(mResource, PREFIX, "ADD", null, this); - mOutputDelete = CMSAdminUtil.makeJButton(mResource, PREFIX, "DELETE", + mOutputDelete = CMSAdminUtil.makeJButton(mResource, PREFIX, "DELETE", null , this); JPanel buttonPanel2 = createUserButtonPanel(mOutputAdd, mOutputDelete, mOutputEdit); - JPanel lpanel2 = createListPanel(mOutputTable, buttonPanel2, + JPanel lpanel2 = createListPanel(mOutputTable, buttonPanel2, outputColNames, outputData); // JPanel lpanel2 = createOutputPanel(); @@ -377,11 +377,11 @@ public class ProfileEditDialog extends CMSBaseConfigDialog return null; } - public JPanel createListPanel(JTable table, JPanel buttonPanel, + public JPanel createListPanel(JTable table, JPanel buttonPanel, Vector column, Vector datav) { Vector colNames = column; - Vector data = datav; + Vector data = datav; JPanel listPanel = new JPanel(); GridBagLayout gb = new GridBagLayout(); @@ -448,7 +448,7 @@ public class ProfileEditDialog extends CMSBaseConfigDialog if (evt.getSource().equals(mPolicyAdd)) { String profileId = mPluginName.getText(); - Debug.println("Add Policy"); + Debug.println("Add Policy"); ProfilePolicySelectionDialog dialog = new ProfilePolicySelectionDialog(mDefSetId, profileId, "PROFILEPOLICYSELDIALOG", @@ -456,15 +456,15 @@ public class ProfileEditDialog extends CMSBaseConfigDialog mAdminConnection, DestDef.DEST_REGISTRY_ADMIN, mDest); - dialog.setModel(mModel); - dialog.setDisplay(); - dialog.showDialog(); + dialog.setModel(mModel); + dialog.setDisplay(); + dialog.showDialog(); refresh(); } if (evt.getSource().equals(mInputAdd)) { String profileId = mPluginName.getText(); - Debug.println("Add Input"); + Debug.println("Add Input"); ProfileNonPolicySelDialog dialog = new ProfileNonPolicySelDialog(profileId, "PROFILEINPUTSELDIALOG", mModel.getFrame(), @@ -491,11 +491,11 @@ public class ProfileEditDialog extends CMSBaseConfigDialog } if (evt.getSource().equals(mPolicyDelete)) { - JTable table = getTable(); - if (table.getSelectedRowCount() <= 0) { + JTable table = getTable(); + if (table.getSelectedRowCount() <= 0) { String msg = mResource.getString( PREFIX+"_DIALOG_NOPOLICY_MESSAGE"); - CMSAdminUtil.showErrorDialog(mModel.getFrame(), + CMSAdminUtil.showErrorDialog(mModel.getFrame(), mResource, msg, CMSAdminUtil.ERROR_MESSAGE); return; } @@ -507,8 +507,8 @@ public class ProfileEditDialog extends CMSBaseConfigDialog table.getValueAt(table.getSelectedRow(), 1); try { deletePolicy(mPluginName.getText().trim(),policyId); - - ProfileEditDataModel model = + + ProfileEditDataModel model = (ProfileEditDataModel)table.getModel(); model.removeRow(table.getSelectedRow()); table.invalidate(); @@ -587,21 +587,21 @@ public class ProfileEditDialog extends CMSBaseConfigDialog } } - if (evt.getSource().equals(mPolicyEdit)) { + if (evt.getSource().equals(mPolicyEdit)) { JTable table = getTable(); // pick selected entry - if (table.getSelectedRowCount() <= 0) { - CMSAdminUtil.showErrorDialog(mModel.getFrame(), - mResource, - "You must select a policy first", + if (table.getSelectedRowCount() <= 0) { + CMSAdminUtil.showErrorDialog(mModel.getFrame(), + mResource, + "You must select a policy first", CMSAdminUtil.ERROR_MESSAGE); return; } String policyId = (String) - table.getValueAt(table.getSelectedRow(), 0) + ":" + + table.getValueAt(table.getSelectedRow(), 0) + ":" + table.getValueAt(table.getSelectedRow(), 1); - Debug.println("Edit"); + Debug.println("Edit"); NameValuePairs nvp = new NameValuePairs(); ProfilePolicyEditDialog dialog = new ProfilePolicyEditDialog(nvp, @@ -612,8 +612,8 @@ public class ProfileEditDialog extends CMSBaseConfigDialog dialog.setModel(mModel); String name = mPluginName.getText() + ";" + policyId; - Debug.println(" XXXX name=" + name); - dialog.showDialog(null, name); + Debug.println(" XXXX name=" + name); + dialog.showDialog(null, name); } if (evt.getSource().equals(mInputEdit)) { @@ -635,7 +635,7 @@ public class ProfileEditDialog extends CMSBaseConfigDialog new ProfileNonPolicyNewDialog(nvp, mModel.getFrame(), mAdminConnection, - //DestDef.DEST_CA_PROFILE_ADMIN, + //DestDef.DEST_CA_PROFILE_ADMIN, mDest, ScopeDef.SC_PROFILE_INPUT_CONFIG, false); dialog.setModel(mModel); @@ -678,7 +678,7 @@ public class ProfileEditDialog extends CMSBaseConfigDialog NameValuePairs nvp = new NameValuePairs(); try { - if (mModel != null) + if (mModel != null) mModel.progressStart(); String instanceName = mPluginName.getText(); @@ -690,15 +690,15 @@ public class ProfileEditDialog extends CMSBaseConfigDialog // nvp.add("config", mConfigField.getText()); /* - // mAdminConnection.add(DestDef.DEST_CA_PROFILE_ADMIN, + // mAdminConnection.add(DestDef.DEST_CA_PROFILE_ADMIN, ScopeDef.SC_PROFILE_RULES, instanceName, nvp); */ - //DestDef.DEST_CA_PROFILE_ADMIN, + //DestDef.DEST_CA_PROFILE_ADMIN, mAdminConnection.modify(mDest, ScopeDef.SC_PROFILE_RULES, instanceName, nvp); mIsOK = true; - if (mModel != null) + if (mModel != null) mModel.progressStop(); this.dispose(); } catch (EAdminException ex) { @@ -712,9 +712,9 @@ public class ProfileEditDialog extends CMSBaseConfigDialog this.dispose(); } - } + } - private void deletePolicy(String profileId, String policyId) + private void deletePolicy(String profileId, String policyId) throws EAdminException{ NameValuePairs nvps = new NameValuePairs(); nvps.put("POLICYID", policyId); @@ -754,23 +754,23 @@ public class ProfileEditDialog extends CMSBaseConfigDialog mModel.progressStart(); // retrieve profile information - NameValuePairs response = null; - NameValuePairs request = new NameValuePairs(); + NameValuePairs response = null; + NameValuePairs request = new NameValuePairs(); try { //response = mAdminConnection.read(DestDef.DEST_CA_PROFILE_ADMIN, response = mAdminConnection.read(mDest, ScopeDef.SC_PROFILE_RULES, name, request); - } catch (EAdminException e) { -// CMSAdminUtil.showErrorDialog(mParentFrame, mResource, e.toString()); - mModel.progressStop(); - } + } catch (EAdminException e) { +// CMSAdminUtil.showErrorDialog(mParentFrame, mResource, e.toString()); + mModel.progressStop(); + } mModel.progressStop(); String enable = response.get("enable"); if (response != null) { - mPluginName.setEnabled(false); + mPluginName.setEnabled(false); mPluginName.setBackground(getBackground()); mPluginName.setText(name); mNameField.setText(response.get("name")); @@ -801,28 +801,28 @@ public class ProfileEditDialog extends CMSBaseConfigDialog mOutputDelete.setEnabled(false); } } - + private void setProfileOtherInfo(String name) { if (mModel != null) mModel.progressStart(); JTable table = getTable(); NameValuePairs request = new NameValuePairs(); - NameValuePairs response = null; + NameValuePairs response = null; if (table == mPolicyTable) { try { response = mAdminConnection.read( mDest, ScopeDef.SC_PROFILE_POLICIES, name, request); } catch (EAdminException e) { - CMSAdminUtil.showErrorDialog(mParentFrame, mResource, - e.toString(), CMSAdminUtil.ERROR_MESSAGE); + CMSAdminUtil.showErrorDialog(mParentFrame, mResource, + e.toString(), CMSAdminUtil.ERROR_MESSAGE); if (mModel != null) - mModel.progressStop(); + mModel.progressStop(); return; } if (mModel != null) - mModel.progressStop(); + mModel.progressStop(); if (response != null) { populatePolicies(response, table); } @@ -832,15 +832,15 @@ public class ProfileEditDialog extends CMSBaseConfigDialog mDest, ScopeDef.SC_PROFILE_INPUT, name, request); } catch (EAdminException e) { - CMSAdminUtil.showErrorDialog(mParentFrame, mResource, - e.toString(), CMSAdminUtil.ERROR_MESSAGE); + CMSAdminUtil.showErrorDialog(mParentFrame, mResource, + e.toString(), CMSAdminUtil.ERROR_MESSAGE); if (mModel != null) - mModel.progressStop(); + mModel.progressStop(); return; } if (mModel != null) - mModel.progressStop(); + mModel.progressStop(); if (response != null) { populateNonPolicy(response, table); } @@ -850,15 +850,15 @@ public class ProfileEditDialog extends CMSBaseConfigDialog mDest, ScopeDef.SC_PROFILE_OUTPUT, name, request); } catch (EAdminException e) { - CMSAdminUtil.showErrorDialog(mParentFrame, mResource, - e.toString(), CMSAdminUtil.ERROR_MESSAGE); + CMSAdminUtil.showErrorDialog(mParentFrame, mResource, + e.toString(), CMSAdminUtil.ERROR_MESSAGE); if (mModel != null) - mModel.progressStop(); + mModel.progressStop(); return; } if (mModel != null) - mModel.progressStop(); + mModel.progressStop(); if (response != null) { populateNonPolicy(response, table); } @@ -885,11 +885,11 @@ public class ProfileEditDialog extends CMSBaseConfigDialog String def = st.nextToken(); String con = st.nextToken(); Vector<String> row = new Vector<String>(); - + StringTokenizer st1 = new StringTokenizer(entry, ":"); String setId = st1.nextToken(); String id = st1.nextToken(); - + if (mDefSetId == null) { mDefSetId = setId; } @@ -928,4 +928,4 @@ public class ProfileEditDialog extends CMSBaseConfigDialog model.setInfo(d, colNames); table.setModel(model); } -} +} diff --git a/base/console/src/com/netscape/admin/certsrv/config/ProfileImplDataModel.java b/base/console/src/com/netscape/admin/certsrv/config/ProfileImplDataModel.java index eee2531cf..cdaf6d978 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/ProfileImplDataModel.java +++ b/base/console/src/com/netscape/admin/certsrv/config/ProfileImplDataModel.java @@ -41,7 +41,7 @@ public class ProfileImplDataModel extends CMSContentTableModel public static final String IMPL_CLASS = "CLASS"; public static final String IMPL_TYPE = "TYPE"; public static final String IMPL_DESC = "DESC"; - + private static String[] mColumns = {POLICY_IMPL, IMPL_TYPE, CLASSNAME}; /*========================================================== diff --git a/base/console/src/com/netscape/admin/certsrv/config/ProfileImplTab.java b/base/console/src/com/netscape/admin/certsrv/config/ProfileImplTab.java index c7d28dd07..2e1f5e27f 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/ProfileImplTab.java +++ b/base/console/src/com/netscape/admin/certsrv/config/ProfileImplTab.java @@ -44,19 +44,19 @@ public class ProfileImplTab extends CMSBaseUGTab { private static final String IMPL_TYPE = ProfileImplDataModel.IMPL_TYPE; private static final String IMPL_CLASS = ProfileImplDataModel.IMPL_CLASS; private static final String IMPL_DESC = ProfileImplDataModel.IMPL_DESC; - + private static final String PANEL_NAME = "PROFILEIMPL"; private static final String DIALOG_PREFIX = "PROFILEREGISTERDIALOG"; - + private AdminConnection mConnection; private String mDestination; - + protected JScrollPane mScrollPane; protected JTable mTable; //table protected ProfileImplDataModel mDataModel; //table model protected ProfileRegisterDialog mEditor=null; //keep single copy protected ViewDialog mViewer=null; //keep single copy - + protected JButton mRefresh, mAdd, mDelete, mView, mHelp; private final static String HELPINDEX = "configuration-certificateprofiles"; @@ -107,13 +107,13 @@ public class ProfileImplTab extends CMSBaseUGTab { if(mTable.getSelectedRow()< 0) return; NameValuePairs obj = (NameValuePairs) - mDataModel.getObjectValueAt(mTable.getSelectedRow()); + mDataModel.getObjectValueAt(mTable.getSelectedRow()); if (mViewer==null) mViewer = new ViewDialog(mModel.getFrame()); mViewer.showDialog(obj.get(IMPL_NAME), obj.get(IMPL_CLASS), obj.get(IMPL_DESC)); - } + } if (e.getSource().equals(mHelp)) { helpCallback(); } @@ -125,7 +125,7 @@ public class ProfileImplTab extends CMSBaseUGTab { } public void mouseReleased(MouseEvent e) { - setButtons(); + setButtons(); } /*========================================================== @@ -134,8 +134,8 @@ public class ProfileImplTab extends CMSBaseUGTab { public void refresh() { mDataModel.removeAllRows(); - update(); - + update(); + setButtons(); mTable.invalidate(); mTable.validate(); @@ -219,7 +219,7 @@ public class ProfileImplTab extends CMSBaseUGTab { //set buttons private void setButtons() { - + //enable and diable buttons accordingly //Debug.println("setButtons() - "+mTable.getSelectedRow()); //Debug.println("setButtons() - "+mTable.getSelectionModel().isSelectionEmpty()); @@ -228,24 +228,24 @@ public class ProfileImplTab extends CMSBaseUGTab { mView.setEnabled(false); return; } - + if(mDataModel.getRowCount()<=0) { mDelete.setEnabled(false); mView.setEnabled(false); return; } - + mDelete.setEnabled(true); - mView.setEnabled(true); - + mView.setEnabled(true); + } - + //============================================= // SEND REQUESTS TO THE SERVER SIDE //============================================= private void update() { //send request and parse data - + mModel.progressStart(); NameValuePairs response = new NameValuePairs(); NameValuePairs response1; @@ -342,18 +342,18 @@ public class ProfileImplTab extends CMSBaseUGTab { obj.put(IMPL_DESC, value.substring(x + 1, x_end)); data.put(entry,obj); } - + CMSAdminUtil.bubbleSort(vals); - + for (int y=0; y< vals.length ; y++) { mDataModel.processData(data.get(vals[y])); } - + data.clear(); - + if (mDataModel.getRowCount() >0) mTable.setRowSelectionInterval(0,0); - + mModel.progressStop(); } diff --git a/base/console/src/com/netscape/admin/certsrv/config/ProfileInstanceTab.java b/base/console/src/com/netscape/admin/certsrv/config/ProfileInstanceTab.java index 6dbc1dceb..f06cea67b 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/ProfileInstanceTab.java +++ b/base/console/src/com/netscape/admin/certsrv/config/ProfileInstanceTab.java @@ -42,7 +42,7 @@ public class ProfileInstanceTab extends CMSPluginInstanceTab { * variables *==========================================================*/ private static final String PANEL_NAME = "PROFILERULE"; - + protected JButton mOrder; private final static String HELPINDEX = "configuration-certificateprofiles"; private ResourceBundle mResource; @@ -59,7 +59,7 @@ public class ProfileInstanceTab extends CMSPluginInstanceTab { mScope = ScopeDef.SC_POLICY_RULES; mDest = dest; RULE_NAME = PolicyRuleDataModel.RULE_NAME; - RULE_STAT = PolicyRuleDataModel.RULE_STAT; + RULE_STAT = PolicyRuleDataModel.RULE_STAT; mResource = ResourceBundle.getBundle( CMSAdminResources.class.getName()); @@ -71,7 +71,7 @@ public class ProfileInstanceTab extends CMSPluginInstanceTab { JFrame parent, AdminConnection conn, String dest - ) + ) { return new ProfileEditDialog(nvp, parent, @@ -84,7 +84,7 @@ public class ProfileInstanceTab extends CMSPluginInstanceTab { JFrame parent, AdminConnection conn, String dest - ) + ) { return new ProfileConfigDialog(nvp, @@ -98,7 +98,7 @@ public class ProfileInstanceTab extends CMSPluginInstanceTab { AdminConnection conn, String dest, CMSPluginInstanceTab pluginType - ) + ) { return new ProfilePluginSelectionDialog(parent,conn,DestDef.DEST_REGISTRY_ADMIN, dest, pluginType); } @@ -107,9 +107,9 @@ public class ProfileInstanceTab extends CMSPluginInstanceTab { //=== ACTIONLISTENER ===================== public void actionPerformed(ActionEvent e) { if (e.getSource().equals(mEdit) || e.getSource().equals(mDelete)) { - if(mTable.getSelectedRow()< 0) - return; - NameValuePairs data = (NameValuePairs) + if(mTable.getSelectedRow()< 0) + return; + NameValuePairs data = (NameValuePairs) mDataModel.getObjectValueAt(mTable.getSelectedRow()); // dont check enable and disable here. We want to // view profile even though it is enabled @@ -121,12 +121,12 @@ public class ProfileInstanceTab extends CMSPluginInstanceTab { public void moreActionPerformed(ActionEvent e) { if (e.getSource().equals(mOrder)) { Debug.println("Order"); - PolicyRuleOrderDialog dialog = - new PolicyRuleOrderDialog(mModel.getFrame(), + PolicyRuleOrderDialog dialog = + new PolicyRuleOrderDialog(mModel.getFrame(), mConnection, mDestination); - dialog.showDialog(mDataModel.getRules()); + dialog.showDialog(mDataModel.getRules()); refresh(); - } + } } /** @@ -148,7 +148,7 @@ public class ProfileInstanceTab extends CMSPluginInstanceTab { //set buttons protected void setButtons() { super.setButtons(); - + if (mDataModel.getRowCount()<=0) { mOrder.setEnabled(false); } @@ -156,6 +156,6 @@ public class ProfileInstanceTab extends CMSPluginInstanceTab { mOrder.setEnabled(true); } } - - + + } diff --git a/base/console/src/com/netscape/admin/certsrv/config/ProfileListDataModel.java b/base/console/src/com/netscape/admin/certsrv/config/ProfileListDataModel.java index 2e4633046..bb5d05591 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/ProfileListDataModel.java +++ b/base/console/src/com/netscape/admin/certsrv/config/ProfileListDataModel.java @@ -37,7 +37,7 @@ import com.netscape.certsrv.common.*; public class ProfileListDataModel extends DefaultListModel { private Vector mObjectContainer = new Vector(); - + public Object getObjectValueAt(int row) { return mObjectContainer.elementAt(row); } @@ -51,7 +51,7 @@ public class ProfileListDataModel extends DefaultListModel { super.addElement(displayData); mObjectContainer.addElement(extraData); } - + public void clear() { super.clear(); mObjectContainer.clear(); diff --git a/base/console/src/com/netscape/admin/certsrv/config/ProfileNonPolicyNewDialog.java b/base/console/src/com/netscape/admin/certsrv/config/ProfileNonPolicyNewDialog.java index e597b242b..38b8d5664 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/ProfileNonPolicyNewDialog.java +++ b/base/console/src/com/netscape/admin/certsrv/config/ProfileNonPolicyNewDialog.java @@ -50,7 +50,7 @@ public class ProfileNonPolicyNewDialog extends CMSBaseConfigDialog *==========================================================*/ public ProfileNonPolicyNewDialog(NameValuePairs nvp, JFrame parent, - AdminConnection conn, + AdminConnection conn, String dest, String scope, boolean new1) { super(parent, dest); @@ -59,7 +59,7 @@ public class ProfileNonPolicyNewDialog extends CMSBaseConfigDialog mHelpToken = "configuration-certificateprofiles"; mImplName_token = Constants.PR_POLICY_IMPL_NAME; mImplType = Constants.PR_EXT_PLUGIN_IMPLTYPE_POLICY; - mIsNew = new1; + mIsNew = new1; mScope = scope; init(nvp,parent,conn,dest); @@ -289,8 +289,8 @@ setLabelCellEditor(mTable, 1); if (evt.getSource().equals(mOK)) { try { - if (mModel != null) { - mModel.progressStart(); + if (mModel != null) { + mModel.progressStart(); } NameValuePairs nvp = new NameValuePairs(); @@ -312,21 +312,21 @@ setLabelCellEditor(mTable, 1); if (mIsNew) { String name = instanceName + ";" + id + ";" + mParamId; - // mAdminConnection.add(DestDef.DEST_CA_PROFILE_ADMIN, + // mAdminConnection.add(DestDef.DEST_CA_PROFILE_ADMIN, mAdminConnection.add(mDest, mScope, name, nvp); //ScopeDef.SC_PROFILE_INPUT, name, nvp); } else { String name = instanceName + ";" + id; - //mAdminConnection.modify(DestDef.DEST_CA_PROFILE_ADMIN, + //mAdminConnection.modify(DestDef.DEST_CA_PROFILE_ADMIN, mAdminConnection.modify(mDest, mScope, name, nvp); //ScopeDef.SC_PROFILE_INPUT_CONFIG, name, nvp); } - + mIsOK = true; - if (mModel != null) { - mModel.progressStop(); + if (mModel != null) { + mModel.progressStop(); } this.dispose(); @@ -342,7 +342,7 @@ setLabelCellEditor(mTable, 1); this.dispose(); } - } + } public void showDialog(NameValuePairs data, String profileId, String paramId) { @@ -358,28 +358,28 @@ setLabelCellEditor(mTable, 1); mModel.progressStart(); // retrieve profile information - NameValuePairs response = null; - NameValuePairs request = new NameValuePairs(); + NameValuePairs response = null; + NameValuePairs request = new NameValuePairs(); try { - if (mIsNew) + if (mIsNew) response = mAdminConnection.read(DestDef.DEST_REGISTRY_ADMIN, //ScopeDef.SC_PROFILE_INPUT, mScope, paramId, request); else // response = mAdminConnection.read(DestDef.DEST_CA_PROFILE_ADMIN, response = mAdminConnection.read(mDest, - //ScopeDef.SC_PROFILE_INPUT_CONFIG, + //ScopeDef.SC_PROFILE_INPUT_CONFIG, mScope, profileId+";"+mInputId, request); - } catch (EAdminException e) { -// CMSAdminUtil.showErrorDialog(mParentFrame, mResource, e.toString()); - mModel.progressStop(); - } + } catch (EAdminException e) { +// CMSAdminUtil.showErrorDialog(mParentFrame, mResource, e.toString()); + mModel.progressStop(); + } mModel.progressStop(); - Vector defcolNames = new Vector(); - defcolNames.addElement("Parameter"); - defcolNames.addElement("Value"); - Vector defdata = new Vector(); + Vector defcolNames = new Vector(); + defcolNames.addElement("Parameter"); + defcolNames.addElement("Value"); + Vector defdata = new Vector(); for (String entry : response.keySet()) { entry = entry.trim(); @@ -397,7 +397,7 @@ setLabelCellEditor(mTable, 1); syntaxVal = value.substring(start_pos+1, end_pos); val = value.substring(end_pos+1); - Vector row = new Vector(); + Vector row = new Vector(); row.addElement(entry); row.addElement(val); defdata.addElement(row); @@ -426,4 +426,4 @@ setLabelCellEditor(mTable, 1); table.getColumnModel().getColumn(index).setCellEditor( new DefaultCellEditor(new JTextField())); } -} +} diff --git a/base/console/src/com/netscape/admin/certsrv/config/ProfileNonPolicySelDialog.java b/base/console/src/com/netscape/admin/certsrv/config/ProfileNonPolicySelDialog.java index 8d97ffd13..99ec1abc1 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/ProfileNonPolicySelDialog.java +++ b/base/console/src/com/netscape/admin/certsrv/config/ProfileNonPolicySelDialog.java @@ -74,9 +74,9 @@ public class ProfileNonPolicySelDialog extends JDialog public ProfileNonPolicySelDialog ( String profileId, - String prefix, - JFrame parent, - AdminConnection conn, + String prefix, + JFrame parent, + AdminConnection conn, String dest, String extraDest, String scope) { this( profileId, prefix, @@ -102,11 +102,11 @@ public class ProfileNonPolicySelDialog extends JDialog *==========================================================*/ public ProfileNonPolicySelDialog( String profileId, - String prefix, - JFrame parent, - AdminConnection conn, + String prefix, + JFrame parent, + AdminConnection conn, String dest, String extraDest, String scope, - CMSPluginInstanceTab pluginType) + CMSPluginInstanceTab pluginType) { super(parent,true); mProfileId = profileId; @@ -172,7 +172,7 @@ public class ProfileNonPolicySelDialog extends JDialog scope = ScopeDef.SC_PROFILE_OUTPUT; } - ProfileNonPolicyNewDialog dialog = + ProfileNonPolicyNewDialog dialog = new ProfileNonPolicyNewDialog( response, mParentFrame, @@ -182,7 +182,7 @@ public class ProfileNonPolicySelDialog extends JDialog dialog.setModel(mModel); String name = ((JLabel)mListModel.elementAt(mList.getSelectedIndex())).getText(); - + dialog.showDialog(response, mProfileId, getID(name)); if(!dialog.isOK()) { @@ -272,7 +272,7 @@ public class ProfileNonPolicySelDialog extends JDialog mListPanel.setLayout(gb); //content.setBorder(CMSAdminUtil.makeEtchedBorder()); - JLabel label = CMSAdminUtil.makeJLabel(mResource, mPrefix, + JLabel label = CMSAdminUtil.makeJLabel(mResource, mPrefix, "SELECT", null); CMSAdminUtil.resetGBC(gbc); gbc.anchor = gbc.NORTH; @@ -359,9 +359,9 @@ public class ProfileNonPolicySelDialog extends JDialog // vals[i++] = ((String)e.nextElement()).trim(); Debug.println("PluginSelectionDialog::update() - adding '"+vals[i-1]+"'"); } - + CMSAdminUtil.bubbleSort(vals); - + for (int y=0; y< vals.length ; y++) { try { mListModel.addElement(new JLabel(vals[y], JLabel.LEFT)); diff --git a/base/console/src/com/netscape/admin/certsrv/config/ProfilePluginSelectionDialog.java b/base/console/src/com/netscape/admin/certsrv/config/ProfilePluginSelectionDialog.java index ec3bb4c7c..2ed1f8bbd 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/ProfilePluginSelectionDialog.java +++ b/base/console/src/com/netscape/admin/certsrv/config/ProfilePluginSelectionDialog.java @@ -45,9 +45,9 @@ public class ProfilePluginSelectionDialog extends PluginSelectionDialog *==========================================================*/ public ProfilePluginSelectionDialog( JFrame parent, - AdminConnection conn, + AdminConnection conn, String dest, - CMSPluginInstanceTab pluginType) + CMSPluginInstanceTab pluginType) { super(PREFIX, parent,conn, dest, pluginType); mScope = ScopeDef.SC_PROFILE_IMPLS; diff --git a/base/console/src/com/netscape/admin/certsrv/config/ProfilePolicyEditDialog.java b/base/console/src/com/netscape/admin/certsrv/config/ProfilePolicyEditDialog.java index 34b95c0f1..c37a8e55a 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/ProfilePolicyEditDialog.java +++ b/base/console/src/com/netscape/admin/certsrv/config/ProfilePolicyEditDialog.java @@ -50,7 +50,7 @@ public class ProfilePolicyEditDialog extends CMSBaseConfigDialog *==========================================================*/ public ProfilePolicyEditDialog(NameValuePairs nvp, JFrame parent, - AdminConnection conn, + AdminConnection conn, String dest) { super(parent, dest); @@ -300,7 +300,7 @@ public class ProfilePolicyEditDialog extends CMSBaseConfigDialog // setLabelCellRenderer(mDefaultTable,1); //setLabelCellEditor(mDefaultTable, 1); mDefaultTable.setDefaultRenderer(JComponent.class, new JComponentCellRenderer()); - mDefaultTable.setDefaultEditor(JComponent.class, + mDefaultTable.setDefaultEditor(JComponent.class, new ProfileComponentCellEditor()); CMSAdminUtil.resetGBC(gbc); @@ -363,7 +363,7 @@ public class ProfilePolicyEditDialog extends CMSBaseConfigDialog mConstraintTable.addMouseListener(this); // setLabelCellRenderer(mConstraintTable,0); mConstraintTable.setDefaultRenderer(JComponent.class, new JComponentCellRenderer()); - mConstraintTable.setDefaultEditor(JComponent.class, + mConstraintTable.setDefaultEditor(JComponent.class, new ProfileComponentCellEditor()); CMSAdminUtil.resetGBC(gbc); @@ -443,7 +443,7 @@ public class ProfilePolicyEditDialog extends CMSBaseConfigDialog String policyId = mDescField.getText() + ":" + mIdField.getText(); String name = instanceName + ";" + policyId; - + /* nvp.add("impl", mImplName.getText()); nvp.add("name", mNameField.getText()); @@ -464,7 +464,7 @@ public class ProfilePolicyEditDialog extends CMSBaseConfigDialog } - //mAdminConnection.modify(DestDef.DEST_CA_PROFILE_ADMIN, + //mAdminConnection.modify(DestDef.DEST_CA_PROFILE_ADMIN, mAdminConnection.modify(mDest, ScopeDef.SC_PROFILE_DEFAULT_POLICY, name, nvp); @@ -486,7 +486,7 @@ public class ProfilePolicyEditDialog extends CMSBaseConfigDialog nvp.put(name1, val); } instanceName = mPluginName.getText(); -//DestDef.DEST_CA_PROFILE_ADMIN, +//DestDef.DEST_CA_PROFILE_ADMIN, mAdminConnection.modify(mDest, ScopeDef.SC_PROFILE_CONSTRAINT_POLICY, name, nvp); @@ -503,7 +503,7 @@ public class ProfilePolicyEditDialog extends CMSBaseConfigDialog this.dispose(); } - } + } private String getHelpDescription(String value) { int start_pos = value.indexOf(';'); @@ -562,32 +562,32 @@ public class ProfilePolicyEditDialog extends CMSBaseConfigDialog String pid = st1.nextToken(); // retrieve profile information - NameValuePairs response = null; - NameValuePairs request = new NameValuePairs(); + NameValuePairs response = null; + NameValuePairs request = new NameValuePairs(); try { //response = mAdminConnection.read(DestDef.DEST_CA_PROFILE_ADMIN, response = mAdminConnection.read(mDest, ScopeDef.SC_PROFILE_DEFAULT_POLICY, name, request); - } catch (EAdminException e) { -// CMSAdminUtil.showErrorDialog(mParentFrame, mResource, e.toString()); - mModel.progressStop(); - } + } catch (EAdminException e) { +// CMSAdminUtil.showErrorDialog(mParentFrame, mResource, e.toString()); + mModel.progressStop(); + } mModel.progressStop(); - Vector defcolNames = new Vector(); - defcolNames.addElement("Parameter"); - defcolNames.addElement("Value"); - Vector defdata = new Vector(); + Vector defcolNames = new Vector(); + defcolNames.addElement("Parameter"); + defcolNames.addElement("Value"); + Vector defdata = new Vector(); for (String entry : response.keySet()) { entry = entry.trim(); String value = response.get(entry); Debug.println("ProfilePolicyEditDialog entry= "+entry); - Debug.println("ProfilePolicyEditDialog value= "+value); + Debug.println("ProfilePolicyEditDialog value= "+value); Object obj = getComponent(value); - Vector row = new Vector(); + Vector row = new Vector(); JLabel label = new JLabel(entry); ((Component)obj).addFocusListener(this); mHelpDesc.put(obj, getHelpDescription(value)); @@ -620,22 +620,22 @@ public class ProfilePolicyEditDialog extends CMSBaseConfigDialog ScopeDef.SC_PROFILE_CONSTRAINT_POLICY, name, request); - } catch (EAdminException e) { -// CMSAdminUtil.showErrorDialog(mParentFrame, mResource, e.toString()); - mModel.progressStop(); - } - mModel.progressStop(); + } catch (EAdminException e) { +// CMSAdminUtil.showErrorDialog(mParentFrame, mResource, e.toString()); + mModel.progressStop(); + } + mModel.progressStop(); - Vector colNames = new Vector(); - colNames.addElement("Parameter"); - colNames.addElement("Value"); - Vector d = new Vector(); + Vector colNames = new Vector(); + colNames.addElement("Parameter"); + colNames.addElement("Value"); + Vector d = new Vector(); for (String entry : response.keySet()) { entry = entry.trim(); String value = response.get(entry); Debug.println("entry= "+entry); - Debug.println("value= "+value); + Debug.println("value= "+value); Object obj = getComponent(value); Vector row = new Vector(); @@ -649,7 +649,7 @@ public class ProfilePolicyEditDialog extends CMSBaseConfigDialog ProfilePolicyEditDataModel model = new ProfilePolicyEditDataModel(); model.setInfo(d, colNames); mConstraintTable.setModel(model); - + this.show(); } @@ -668,8 +668,8 @@ public class ProfilePolicyEditDialog extends CMSBaseConfigDialog } class JComponentCellRenderer implements TableCellRenderer { - public Component getTableCellRendererComponent(JTable table, - Object value, boolean isSelected, boolean hasFocus, int row, + public Component getTableCellRendererComponent(JTable table, + Object value, boolean isSelected, boolean hasFocus, int row, int column) { return (JComponent)value; } @@ -695,4 +695,4 @@ public class ProfilePolicyEditDialog extends CMSBaseConfigDialog Debug.println("focusLost"); } -} +} diff --git a/base/console/src/com/netscape/admin/certsrv/config/ProfilePolicyNewDialog.java b/base/console/src/com/netscape/admin/certsrv/config/ProfilePolicyNewDialog.java index 941917808..98706dfcb 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/ProfilePolicyNewDialog.java +++ b/base/console/src/com/netscape/admin/certsrv/config/ProfilePolicyNewDialog.java @@ -53,7 +53,7 @@ public class ProfilePolicyNewDialog extends CMSBaseConfigDialog *==========================================================*/ public ProfilePolicyNewDialog(String defSetId, NameValuePairs nvp, JFrame parent, - AdminConnection conn, + AdminConnection conn, String dest) { super(parent, dest); @@ -461,10 +461,10 @@ public class ProfilePolicyNewDialog extends CMSBaseConfigDialog // create policy String policyId = policySetStr + ":" + policyIDStr; String name = instanceName + ";" + policyId + ";" + mDefaultId + ";" + mConstraintId; - //mAdminConnection.add(DestDef.DEST_CA_PROFILE_ADMIN, + //mAdminConnection.add(DestDef.DEST_CA_PROFILE_ADMIN, mAdminConnection.add(mDest, ScopeDef.SC_PROFILE_POLICIES, name, nvp); - + /* nvp.add("impl", mImplName.getText()); nvp.add("name", mNameField.getText()); @@ -485,7 +485,7 @@ public class ProfilePolicyNewDialog extends CMSBaseConfigDialog } - //mAdminConnection.add(DestDef.DEST_CA_PROFILE_ADMIN, + //mAdminConnection.add(DestDef.DEST_CA_PROFILE_ADMIN, mAdminConnection.add(mDest, ScopeDef.SC_PROFILE_DEFAULT_POLICY, name, nvp); @@ -506,7 +506,7 @@ public class ProfilePolicyNewDialog extends CMSBaseConfigDialog nvp.put(name1, val); } instanceName = mPluginName.getText(); - //mAdminConnection.add(DestDef.DEST_CA_PROFILE_ADMIN, + //mAdminConnection.add(DestDef.DEST_CA_PROFILE_ADMIN, mAdminConnection.add(mDest, ScopeDef.SC_PROFILE_CONSTRAINT_POLICY, name, nvp); @@ -523,7 +523,7 @@ public class ProfilePolicyNewDialog extends CMSBaseConfigDialog this.dispose(); } - } + } public void showDialog(NameValuePairs data, String name) { @@ -539,29 +539,29 @@ public class ProfilePolicyNewDialog extends CMSBaseConfigDialog mConstraintId = conId; // retrieve profile information - NameValuePairs response = null; - NameValuePairs request = new NameValuePairs(); + NameValuePairs response = null; + NameValuePairs request = new NameValuePairs(); try { name = profileId + ";" + defId; response = mAdminConnection.read(DestDef.DEST_REGISTRY_ADMIN, ScopeDef.SC_PROFILE_DEFAULT_POLICY, defId, request); - } catch (EAdminException e) { -// CMSAdminUtil.showErrorDialog(mParentFrame, mResource, e.toString()); - mModel.progressStop(); - } + } catch (EAdminException e) { +// CMSAdminUtil.showErrorDialog(mParentFrame, mResource, e.toString()); + mModel.progressStop(); + } mModel.progressStop(); - Vector defcolNames = new Vector(); - defcolNames.addElement("Parameter"); - defcolNames.addElement("Value"); - Vector defdata = new Vector(); + Vector defcolNames = new Vector(); + defcolNames.addElement("Parameter"); + defcolNames.addElement("Value"); + Vector defdata = new Vector(); for (String entry : response.keySet()) { entry = entry.trim(); String value = response.get(entry); Debug.println("entry= "+entry); - Debug.println("value= "+value); + Debug.println("value= "+value); Object obj = getComponent(value); Vector row = new Vector(); @@ -591,22 +591,22 @@ public class ProfilePolicyNewDialog extends CMSBaseConfigDialog ScopeDef.SC_PROFILE_CONSTRAINT_POLICY, conId, request); - } catch (EAdminException e) { -// CMSAdminUtil.showErrorDialog(mParentFrame, mResource, e.toString()); - mModel.progressStop(); - } - mModel.progressStop(); + } catch (EAdminException e) { +// CMSAdminUtil.showErrorDialog(mParentFrame, mResource, e.toString()); + mModel.progressStop(); + } + mModel.progressStop(); - Vector colNames = new Vector(); - colNames.addElement("Parameter"); - colNames.addElement("Value"); - Vector d = new Vector(); + Vector colNames = new Vector(); + colNames.addElement("Parameter"); + colNames.addElement("Value"); + Vector d = new Vector(); for (String entry : response.keySet()) { entry = entry.trim(); String value = response.get(entry); Debug.println("entry= "+entry); - Debug.println("value= "+value); + Debug.println("value= "+value); Object obj = getComponent(value); Vector row = new Vector(); @@ -619,7 +619,7 @@ public class ProfilePolicyNewDialog extends CMSBaseConfigDialog ProfilePolicyEditDataModel model = new ProfilePolicyEditDataModel(); model.setInfo(d, colNames); mConstraintTable.setModel(model); - + String desc = mDescField.getText(); if (desc == null || desc.equals("")) { if (mDefSetId != null) { @@ -648,11 +648,11 @@ public class ProfilePolicyNewDialog extends CMSBaseConfigDialog } private Object getComponent(String value) { - int start_pos = value.indexOf(';'); - int end_pos = value.lastIndexOf(';'); + int start_pos = value.indexOf(';'); + int end_pos = value.lastIndexOf(';'); int end1_pos = value.lastIndexOf(';',end_pos-1); - String syntax = null; - String syntaxVal = null; + String syntax = null; + String syntaxVal = null; String v = null; syntax = value.substring(0,start_pos); @@ -711,4 +711,4 @@ public class ProfilePolicyNewDialog extends CMSBaseConfigDialog public void focusLost(FocusEvent f) { Debug.println("focusLost"); } -} +} diff --git a/base/console/src/com/netscape/admin/certsrv/config/ProfilePolicySelectionDialog.java b/base/console/src/com/netscape/admin/certsrv/config/ProfilePolicySelectionDialog.java index 44fe9886b..e601fbb9f 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/ProfilePolicySelectionDialog.java +++ b/base/console/src/com/netscape/admin/certsrv/config/ProfilePolicySelectionDialog.java @@ -69,8 +69,8 @@ public class ProfilePolicySelectionDialog extends JDialog String profileId, String prefix, JFrame parent, - AdminConnection conn, - String dest) + AdminConnection conn, + String dest) { this(defSetId, profileId, prefix, parent, conn, dest, null, null); } @@ -78,9 +78,9 @@ public class ProfilePolicySelectionDialog extends JDialog public ProfilePolicySelectionDialog( String defSetId, String profileId, - String prefix, - JFrame parent, - AdminConnection conn, + String prefix, + JFrame parent, + AdminConnection conn, String dest, String extraDest) { this(defSetId, profileId, prefix, @@ -100,18 +100,18 @@ public class ProfilePolicySelectionDialog extends JDialog CMSPluginInstanceTab pluginType) { this(defSetId, profileId, prefix, parent, conn, dest, null, pluginType); } - + /*========================================================== * constructors *==========================================================*/ public ProfilePolicySelectionDialog( String defSetId, String profileId, - String prefix, - JFrame parent, - AdminConnection conn, + String prefix, + JFrame parent, + AdminConnection conn, String dest, String extraDest, - CMSPluginInstanceTab pluginType) + CMSPluginInstanceTab pluginType) { super(parent,true); mDefSetId = defSetId; @@ -198,7 +198,7 @@ public class ProfilePolicySelectionDialog extends JDialog String id = ((JLabel)mDefaultModel.elementAt(mDefaultList.getSelectedIndex())).getText(); response.add(Constants.PR_POLICY_IMPL_NAME,id); */ - ProfilePolicyNewDialog dialog = + ProfilePolicyNewDialog dialog = new ProfilePolicyNewDialog( mDefSetId, response, @@ -213,8 +213,8 @@ public class ProfilePolicySelectionDialog extends JDialog String defaultName = ((JLabel)mDefaultModel.elementAt(mDefaultList.getSelectedIndex())).getText(); String conName = ((JLabel)mConstraintModel.elementAt(mConstraintList.getSelectedIndex())).getText(); - - String namex = mProfileId + ";" + getID(defaultName, mDefaultData) + + + String namex = mProfileId + ";" + getID(defaultName, mDefaultData) + ";" + getID(conName, mConstraintData); dialog.showDialog(response,namex); @@ -263,8 +263,8 @@ public class ProfilePolicySelectionDialog extends JDialog GridBagConstraints gbc = new GridBagConstraints(); center.setLayout(gb); - // default content panel - mDefaultLabel = CMSAdminUtil.makeJLabel(mResource, mPrefix, + // default content panel + mDefaultLabel = CMSAdminUtil.makeJLabel(mResource, mPrefix, "DEFAULTNAME", null); center.add(mDefaultLabel); @@ -279,7 +279,7 @@ public class ProfilePolicySelectionDialog extends JDialog center.add(content); // constraint content panel - mConstraintLabel = CMSAdminUtil.makeJLabel(mResource, mPrefix, + mConstraintLabel = CMSAdminUtil.makeJLabel(mResource, mPrefix, "CONSTRAINTNAME", null); center.add(mConstraintLabel); @@ -408,10 +408,10 @@ public class ProfilePolicySelectionDialog extends JDialog return; String name = ((JLabel)mDefaultModel.elementAt(mDefaultList.getSelectedIndex())).getText(); NameValuePairs response=null; - + try { - response = mConnection.read(mDestination, - ScopeDef.SC_SUPPORTED_CONSTRAINTPOLICIES, + response = mConnection.read(mDestination, + ScopeDef.SC_SUPPORTED_CONSTRAINTPOLICIES, getID(name, mDefaultData), new NameValuePairs()); Debug.println(response.toString()); } catch (Exception ex) { @@ -424,7 +424,7 @@ public class ProfilePolicySelectionDialog extends JDialog mConstraintList.invalidate(); mConstraintList.validate(); repaint(); - } + } } //================================================= @@ -432,7 +432,7 @@ public class ProfilePolicySelectionDialog extends JDialog //================================================= //save order information to the server - protected boolean update(String scope, DefaultListModel model, + protected boolean update(String scope, DefaultListModel model, Hashtable data) { NameValuePairs response; @@ -471,18 +471,18 @@ public class ProfilePolicySelectionDialog extends JDialog data.put(name, friendlyName); Debug.println("PluginSelectionDialog::update() - adding '"+vals[i-1]+"'"); } - + CMSAdminUtil.bubbleSort(vals); - + for (int y=0; y< vals.length ; y++) { try { - model.addElement(new JLabel(vals[y], + model.addElement(new JLabel(vals[y], CMSAdminUtil.getImage(mImageName), JLabel.LEFT)); } catch (Exception ex) { Debug.println("PluginSelectionDialog could not get image for '"+ mImageName+"'. Adding without image"); - model.addElement(new JLabel(vals[y], + model.addElement(new JLabel(vals[y], JLabel.LEFT)); } } @@ -492,15 +492,15 @@ public class ProfilePolicySelectionDialog extends JDialog protected NameValuePairs getDefaultConfig() throws EAdminException { String name = ((JLabel)mDefaultModel.elementAt(mDefaultList.getSelectedIndex())).getText(); NameValuePairs response; - response = mConnection.read(mDestination, - ScopeDef.SC_SUPPORTED_CONSTRAINTPOLICIES, getID(name.trim(), mDefaultData), + response = mConnection.read(mDestination, + ScopeDef.SC_SUPPORTED_CONSTRAINTPOLICIES, getID(name.trim(), mDefaultData), new NameValuePairs()); Debug.println(response.toString()); return response; } - + private String getID(String name, Hashtable t) { Enumeration keys = t.keys(); while (keys.hasMoreElements()) { diff --git a/base/console/src/com/netscape/admin/certsrv/config/ProfileRegisterDialog.java b/base/console/src/com/netscape/admin/certsrv/config/ProfileRegisterDialog.java index c576adbe6..912ea1944 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/ProfileRegisterDialog.java +++ b/base/console/src/com/netscape/admin/certsrv/config/ProfileRegisterDialog.java @@ -124,7 +124,7 @@ public class ProfileRegisterDialog extends JDialog } if (evt.getSource().equals(mOK)) { - + /* REPLACED BY PROACTIVE ENFORCEMENT if (mNameField.getText().trim().equals("")) { CMSAdminUtil.showMessageDialog(mParentFrame, mResource, mPrefix, @@ -158,15 +158,15 @@ public class ProfileRegisterDialog extends JDialog public void insertUpdate(DocumentEvent e) { setButtons(); } - + public void removeUpdate(DocumentEvent e){ setButtons(); } - + public void changedUpdate(DocumentEvent e){ setButtons(); } - + //==== MOUSELISTENER ====================== public void mouseClicked(MouseEvent e) { setButtons(); @@ -176,13 +176,13 @@ public class ProfileRegisterDialog extends JDialog public void mouseReleased(MouseEvent e) {} public void mouseEntered(MouseEvent e) {} public void mouseExited(MouseEvent e) { - setButtons(); + setButtons(); } - + /*========================================================== * protected methods - *==========================================================*/ - + *==========================================================*/ + protected void setDisplay() { getContentPane().setLayout(new BorderLayout()); JPanel center = new JPanel(); @@ -215,18 +215,18 @@ public class ProfileRegisterDialog extends JDialog /*========================================================== * private methods - *==========================================================*/ + *==========================================================*/ //set arrow buttons private void setButtons() { if ( (mNameField.getText().trim().equals("")) || (mClassField.getText().trim().equals("")) ) { - mOK.setEnabled(false); + mOK.setEnabled(false); } else { - mOK.setEnabled(true); + mOK.setEnabled(true); } - } - + } + private JPanel makeActionPane() { mOK = CMSAdminUtil.makeJButton(mResource, mPrefix, "OK", null, this); mOK.setEnabled(false); @@ -254,7 +254,7 @@ public class ProfileRegisterDialog extends JDialog JLabel label2 = CMSAdminUtil.makeJLabel(mResource, mPrefix, "CLASS", null); mClassField = new JTextField(); mClassField.getDocument().addDocumentListener(this); - mClassField.addMouseListener(this); + mClassField.addMouseListener(this); CMSAdminUtil.addEntryField(content, label2, mClassField, gbc); CMSAdminUtil.resetGBC(gbc); @@ -262,7 +262,7 @@ public class ProfileRegisterDialog extends JDialog JLabel label3 = CMSAdminUtil.makeJLabel(mResource, mPrefix, "TYPE", null); mTypeField = new JTextField(); mTypeField.getDocument().addDocumentListener(this); - mTypeField.addMouseListener(this); + mTypeField.addMouseListener(this); CMSAdminUtil.addEntryField(content, label3, mTypeField, gbc); CMSAdminUtil.resetGBC(gbc); @@ -270,9 +270,9 @@ public class ProfileRegisterDialog extends JDialog JLabel label4 = CMSAdminUtil.makeJLabel(mResource, mPrefix, "DESC", null); mDescField = new JTextField(); mDescField.getDocument().addDocumentListener(this); - mDescField.addMouseListener(this); + mDescField.addMouseListener(this); CMSAdminUtil.addEntryField(content, label4, mDescField, gbc); - + return content; } diff --git a/base/console/src/com/netscape/admin/certsrv/config/ProfileRuleDataModel.java b/base/console/src/com/netscape/admin/certsrv/config/ProfileRuleDataModel.java index 7a3ba2827..ac4814fc3 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/ProfileRuleDataModel.java +++ b/base/console/src/com/netscape/admin/certsrv/config/ProfileRuleDataModel.java @@ -54,7 +54,7 @@ public class ProfileRuleDataModel extends CMSRuleDataModel v.addElement(new JLabel(obj.get(RULE_NAME), CMSAdminUtil.getImage(CMSAdminResources.IMAGE_RULE), JLabel.LEFT)); - v.addElement(mResource.getString("POLICYRULE_LABEL_ENABLED_LABEL")); + v.addElement(mResource.getString("POLICYRULE_LABEL_ENABLED_LABEL")); } else { v.addElement(new JLabel(obj.get(RULE_NAME), CMSAdminUtil.getImage(CMSAdminResources.IMAGE_RULE_DISABLE), diff --git a/base/console/src/com/netscape/admin/certsrv/config/PublisherConfigDialog.java b/base/console/src/com/netscape/admin/certsrv/config/PublisherConfigDialog.java index 90d67ba9e..4c2497c67 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/PublisherConfigDialog.java +++ b/base/console/src/com/netscape/admin/certsrv/config/PublisherConfigDialog.java @@ -46,7 +46,7 @@ public class PublisherConfigDialog extends CMSBaseConfigDialog *==========================================================*/ public PublisherConfigDialog(NameValuePairs nvp, JFrame parent, - AdminConnection conn, + AdminConnection conn, String dest) { super(parent, dest); @@ -61,4 +61,4 @@ public class PublisherConfigDialog extends CMSBaseConfigDialog init(nvp,parent,conn,dest); } -} +} diff --git a/base/console/src/com/netscape/admin/certsrv/config/PublisherImplDataModel.java b/base/console/src/com/netscape/admin/certsrv/config/PublisherImplDataModel.java index aefa4b1cc..575f731d6 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/PublisherImplDataModel.java +++ b/base/console/src/com/netscape/admin/certsrv/config/PublisherImplDataModel.java @@ -40,7 +40,7 @@ public class PublisherImplDataModel extends CMSContentTableModel public static final String IMPL_NAME = "NAME"; public static final String IMPL_CLASS = "CLASS"; public static final String IMPL_DESC = "DESC"; - + private static String[] mColumns = {PUBLISHER_IMPL, CLASSNAME}; /*========================================================== diff --git a/base/console/src/com/netscape/admin/certsrv/config/PublisherImplTab.java b/base/console/src/com/netscape/admin/certsrv/config/PublisherImplTab.java index 79fedfe5e..dd38c6a36 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/PublisherImplTab.java +++ b/base/console/src/com/netscape/admin/certsrv/config/PublisherImplTab.java @@ -43,19 +43,19 @@ public class PublisherImplTab extends CMSBaseUGTab { private static final String IMPL_NAME = PublisherImplDataModel.IMPL_NAME; private static final String IMPL_CLASS = PublisherImplDataModel.IMPL_CLASS; private static final String IMPL_DESC = PublisherImplDataModel.IMPL_DESC; - + private static final String PANEL_NAME = "PUBLISHERIMPL"; private static final String DIALOG_PREFIX = "PUBLISHERREGISTERDIALOG"; - + private AdminConnection mConnection; private String mDestination; - + protected JScrollPane mScrollPane; protected JTable mTable; //table protected PublisherImplDataModel mDataModel; //table model protected PublisherRegisterDialog mEditor=null; //keep single copy protected ViewDialog mViewer=null; //keep single copy - + protected JButton mRefresh, mAdd, mDelete, mView, mHelp; private final static String RAHELPINDEX = "configuration-ra-publisherplugin-help"; private final static String CAHELPINDEX = "configuration-ca-publisherplugin-help"; @@ -111,13 +111,13 @@ public class PublisherImplTab extends CMSBaseUGTab { if(mTable.getSelectedRow()< 0) return; NameValuePairs obj = (NameValuePairs) - mDataModel.getObjectValueAt(mTable.getSelectedRow()); + mDataModel.getObjectValueAt(mTable.getSelectedRow()); if (mViewer==null) mViewer = new ViewDialog(mModel.getFrame()); mViewer.showDialog(obj.get(IMPL_NAME), obj.get(IMPL_CLASS), obj.get(IMPL_DESC)); - } + } if (e.getSource().equals(mHelp)) { helpCallback(); } @@ -129,7 +129,7 @@ public class PublisherImplTab extends CMSBaseUGTab { } public void mouseReleased(MouseEvent e) { - setButtons(); + setButtons(); } /*========================================================== @@ -138,8 +138,8 @@ public class PublisherImplTab extends CMSBaseUGTab { public void refresh() { mDataModel.removeAllRows(); - update(); - + update(); + setButtons(); mTable.invalidate(); mTable.validate(); @@ -223,7 +223,7 @@ public class PublisherImplTab extends CMSBaseUGTab { //set buttons private void setButtons() { - + //enable and diable buttons accordingly //Debug.println("setButtons() - "+mTable.getSelectedRow()); //Debug.println("setButtons() - "+mTable.getSelectionModel().isSelectionEmpty()); @@ -232,24 +232,24 @@ public class PublisherImplTab extends CMSBaseUGTab { mView.setEnabled(false); return; } - + if(mDataModel.getRowCount()<=0) { mDelete.setEnabled(false); mView.setEnabled(false); return; } - + mDelete.setEnabled(true); - mView.setEnabled(true); - + mView.setEnabled(true); + } - + //============================================= // SEND REQUESTS TO THE SERVER SIDE //============================================= private void update() { //send request and parse data - + mModel.progressStart(); NameValuePairs response; try { @@ -281,18 +281,18 @@ public class PublisherImplTab extends CMSBaseUGTab { obj.put(IMPL_DESC, value.substring(x + 1)); data.put(entry,obj); } - + CMSAdminUtil.bubbleSort(vals); - + for (int y=0; y< vals.length ; y++) { mDataModel.processData(data.get(vals[y])); } - + data.clear(); - + if (mDataModel.getRowCount() >0) mTable.setRowSelectionInterval(0,0); - + mModel.progressStop(); } diff --git a/base/console/src/com/netscape/admin/certsrv/config/PublisherInstanceTab.java b/base/console/src/com/netscape/admin/certsrv/config/PublisherInstanceTab.java index e9d3bdbb0..d6b7908cd 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/PublisherInstanceTab.java +++ b/base/console/src/com/netscape/admin/certsrv/config/PublisherInstanceTab.java @@ -42,7 +42,7 @@ public class PublisherInstanceTab extends CMSPluginInstanceTab { * variables *==========================================================*/ private static final String PANEL_NAME = "PUBLISHERRULE"; - + private final static String RAHELPINDEX = "configuration-ra-publisherinstances-help"; private final static String CAHELPINDEX = "configuration-ca-publisherinstances-help"; private final static String KRAHELPINDEX = "configuration-kra-publisherinstances-help"; @@ -58,9 +58,9 @@ public class PublisherInstanceTab extends CMSPluginInstanceTab { mDataModel = new PublisherRuleDataModel(); mScope = ScopeDef.SC_PUBLISHER_RULES; RULE_NAME = PublisherRuleDataModel.RULE_NAME; - RULE_STAT = PublisherRuleDataModel.RULE_STAT; + RULE_STAT = PublisherRuleDataModel.RULE_STAT; - if (mDestination.equals(DestDef.DEST_RA_PUBLISHER_ADMIN)) + if (mDestination.equals(DestDef.DEST_RA_PUBLISHER_ADMIN)) mHelpToken = RAHELPINDEX; else mHelpToken = CAHELPINDEX; @@ -72,7 +72,7 @@ public class PublisherInstanceTab extends CMSPluginInstanceTab { JFrame parent, AdminConnection conn, String dest - ) + ) { return new PublisherConfigDialog(nvp, @@ -86,7 +86,7 @@ public class PublisherInstanceTab extends CMSPluginInstanceTab { AdminConnection conn, String dest, CMSPluginInstanceTab pluginType - ) + ) { return new PublisherPluginSelectionDialog(parent,conn,dest,pluginType); } diff --git a/base/console/src/com/netscape/admin/certsrv/config/PublisherPluginSelectionDialog.java b/base/console/src/com/netscape/admin/certsrv/config/PublisherPluginSelectionDialog.java index 536d9096f..4837295ca 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/PublisherPluginSelectionDialog.java +++ b/base/console/src/com/netscape/admin/certsrv/config/PublisherPluginSelectionDialog.java @@ -41,7 +41,7 @@ public class PublisherPluginSelectionDialog extends PluginSelectionDialog * variables *==========================================================*/ private static final String PREFIX = "PUBLISHERSELECTIONDIALOG"; - private static final String CAHELPINDEX = + private static final String CAHELPINDEX = "configuration-ca-add-publisherrule-dbox-help"; private static final String RAHELPINDEX = "configuration-ra-add-publisherrule-dbox-help"; @@ -51,9 +51,9 @@ public class PublisherPluginSelectionDialog extends PluginSelectionDialog *==========================================================*/ public PublisherPluginSelectionDialog( JFrame parent, - AdminConnection conn, + AdminConnection conn, String dest, - CMSPluginInstanceTab pluginType) + CMSPluginInstanceTab pluginType) { super(PREFIX, parent,conn, dest, pluginType); mScope = ScopeDef.SC_PUBLISHER_IMPLS; diff --git a/base/console/src/com/netscape/admin/certsrv/config/RegisterDialog.java b/base/console/src/com/netscape/admin/certsrv/config/RegisterDialog.java index fe48419c7..51a1dece5 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/RegisterDialog.java +++ b/base/console/src/com/netscape/admin/certsrv/config/RegisterDialog.java @@ -114,7 +114,7 @@ public class RegisterDialog extends JDialog } if (evt.getSource().equals(mOK)) { - + /* REPLACED BY PROACTIVE ENFORCEMENT if (mNameField.getText().trim().equals("")) { CMSAdminUtil.showMessageDialog(mParentFrame, mResource, mPrefix, @@ -148,15 +148,15 @@ public class RegisterDialog extends JDialog public void insertUpdate(DocumentEvent e) { setButtons(); } - + public void removeUpdate(DocumentEvent e){ setButtons(); } - + public void changedUpdate(DocumentEvent e){ setButtons(); } - + //==== MOUSELISTENER ====================== public void mouseClicked(MouseEvent e) { setButtons(); @@ -166,13 +166,13 @@ public class RegisterDialog extends JDialog public void mouseReleased(MouseEvent e) {} public void mouseEntered(MouseEvent e) {} public void mouseExited(MouseEvent e) { - setButtons(); + setButtons(); } - + /*========================================================== * protected methods - *==========================================================*/ - + *==========================================================*/ + protected void setDisplay() { getContentPane().setLayout(new BorderLayout()); JPanel center = new JPanel(); @@ -205,18 +205,18 @@ public class RegisterDialog extends JDialog /*========================================================== * private methods - *==========================================================*/ + *==========================================================*/ //set arrow buttons private void setButtons() { if ( (mNameField.getText().trim().equals("")) || (mClassField.getText().trim().equals("")) ) { - mOK.setEnabled(false); + mOK.setEnabled(false); } else { - mOK.setEnabled(true); + mOK.setEnabled(true); } - } - + } + private JPanel makeActionPane() { mOK = CMSAdminUtil.makeJButton(mResource, mPrefix, "OK", null, this); mOK.setEnabled(false); @@ -244,7 +244,7 @@ public class RegisterDialog extends JDialog JLabel label2 = CMSAdminUtil.makeJLabel(mResource, mPrefix, "CLASS", null); mClassField = new JTextField(); mClassField.getDocument().addDocumentListener(this); - mClassField.addMouseListener(this); + mClassField.addMouseListener(this); CMSAdminUtil.addEntryField(content, label2, mClassField, gbc); if (mType) { @@ -253,10 +253,10 @@ public class RegisterDialog extends JDialog JLabel label3 = CMSAdminUtil.makeJLabel(mResource, mPrefix, "TYPE", null); mTypeField = new JTextField(); mTypeField.getDocument().addDocumentListener(this); - mTypeField.addMouseListener(this); + mTypeField.addMouseListener(this); CMSAdminUtil.addEntryField(content, label3, mTypeField, gbc); } - + return content; } diff --git a/base/console/src/com/netscape/admin/certsrv/config/RuleConfigDialog.java b/base/console/src/com/netscape/admin/certsrv/config/RuleConfigDialog.java index 7f7cff092..0ce8c2ea4 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/RuleConfigDialog.java +++ b/base/console/src/com/netscape/admin/certsrv/config/RuleConfigDialog.java @@ -61,4 +61,4 @@ public class RuleConfigDialog extends CMSBaseConfigDialog init(nvp,parent,conn,dest); } -} +} diff --git a/base/console/src/com/netscape/admin/certsrv/config/RuleImplDataModel.java b/base/console/src/com/netscape/admin/certsrv/config/RuleImplDataModel.java index 86a4fa6d4..2337a698c 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/RuleImplDataModel.java +++ b/base/console/src/com/netscape/admin/certsrv/config/RuleImplDataModel.java @@ -40,7 +40,7 @@ public class RuleImplDataModel extends CMSContentTableModel public static final String IMPL_NAME = "NAME"; public static final String IMPL_CLASS = "CLASS"; public static final String IMPL_DESC = "DESC"; - + private static String[] mColumns = {RULE_IMPL, CLASSNAME}; /*========================================================== diff --git a/base/console/src/com/netscape/admin/certsrv/config/RuleImplTab.java b/base/console/src/com/netscape/admin/certsrv/config/RuleImplTab.java index 098cbcbd1..c69cefd86 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/RuleImplTab.java +++ b/base/console/src/com/netscape/admin/certsrv/config/RuleImplTab.java @@ -43,19 +43,19 @@ public class RuleImplTab extends CMSBaseUGTab { private static final String IMPL_NAME = RuleImplDataModel.IMPL_NAME; private static final String IMPL_CLASS = RuleImplDataModel.IMPL_CLASS; private static final String IMPL_DESC = RuleImplDataModel.IMPL_DESC; - + private static final String PANEL_NAME = "RULEIMPL"; private static final String DIALOG_PREFIX = "RULEREGISTERDIALOG"; - + private AdminConnection mConnection; private String mDestination; - + protected JScrollPane mScrollPane; protected JTable mTable; //table protected RuleImplDataModel mDataModel; //table model protected RuleRegisterDialog mEditor=null; //keep single copy protected ViewDialog mViewer=null; //keep single copy - + protected JButton mRefresh, mAdd, mDelete, mView, mHelp; private final static String RAHELPINDEX = "configuration-ra-ruleplugin-help"; private final static String CAHELPINDEX = "configuration-ca-ruleplugin-help"; @@ -111,13 +111,13 @@ public class RuleImplTab extends CMSBaseUGTab { if(mTable.getSelectedRow()< 0) return; NameValuePairs obj = (NameValuePairs) - mDataModel.getObjectValueAt(mTable.getSelectedRow()); + mDataModel.getObjectValueAt(mTable.getSelectedRow()); if (mViewer==null) mViewer = new ViewDialog(mModel.getFrame()); mViewer.showDialog(obj.get(IMPL_NAME), obj.get(IMPL_CLASS), obj.get(IMPL_DESC)); - } + } if (e.getSource().equals(mHelp)) { helpCallback(); } @@ -129,7 +129,7 @@ public class RuleImplTab extends CMSBaseUGTab { } public void mouseReleased(MouseEvent e) { - setButtons(); + setButtons(); } /*========================================================== @@ -138,8 +138,8 @@ public class RuleImplTab extends CMSBaseUGTab { public void refresh() { mDataModel.removeAllRows(); - update(); - + update(); + setButtons(); mTable.invalidate(); mTable.validate(); @@ -223,7 +223,7 @@ public class RuleImplTab extends CMSBaseUGTab { //set buttons private void setButtons() { - + //enable and diable buttons accordingly //Debug.println("setButtons() - "+mTable.getSelectedRow()); //Debug.println("setButtons() - "+mTable.getSelectionModel().isSelectionEmpty()); @@ -232,24 +232,24 @@ public class RuleImplTab extends CMSBaseUGTab { mView.setEnabled(false); return; } - + if(mDataModel.getRowCount()<=0) { mDelete.setEnabled(false); mView.setEnabled(false); return; } - + mDelete.setEnabled(true); - mView.setEnabled(true); - + mView.setEnabled(true); + } - + //============================================= // SEND REQUESTS TO THE SERVER SIDE //============================================= private void update() { //send request and parse data - + mModel.progressStart(); NameValuePairs response; try { @@ -280,18 +280,18 @@ public class RuleImplTab extends CMSBaseUGTab { obj.put(IMPL_DESC, value.substring(x + 1)); data.put(entry,obj); } - + CMSAdminUtil.bubbleSort(vals); - + for (int y=0; y< vals.length ; y++) { mDataModel.processData(data.get(vals[y])); } - + data.clear(); - + if (mDataModel.getRowCount() >0) mTable.setRowSelectionInterval(0,0); - + mModel.progressStop(); } diff --git a/base/console/src/com/netscape/admin/certsrv/config/RuleInstanceTab.java b/base/console/src/com/netscape/admin/certsrv/config/RuleInstanceTab.java index 04a649ed0..dfc5f8159 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/RuleInstanceTab.java +++ b/base/console/src/com/netscape/admin/certsrv/config/RuleInstanceTab.java @@ -45,7 +45,7 @@ public class RuleInstanceTab extends CMSPluginInstanceTab { * variables *==========================================================*/ private static final String PANEL_NAME = "RULERULE"; - + private final static String RAHELPINDEX = "configuration-ra-ruleinstances-help"; private final static String CAHELPINDEX = "configuration-ca-ruleinstances-help"; @@ -60,9 +60,9 @@ public class RuleInstanceTab extends CMSPluginInstanceTab { mDataModel = new RuleRuleDataModel(); mScope = ScopeDef.SC_RULE_RULES; RULE_NAME = RuleRuleDataModel.RULE_NAME; - RULE_STAT = RuleRuleDataModel.RULE_STAT; + RULE_STAT = RuleRuleDataModel.RULE_STAT; - if (mDestination.equals(DestDef.DEST_RA_RULE_ADMIN)) + if (mDestination.equals(DestDef.DEST_RA_RULE_ADMIN)) mHelpToken = RAHELPINDEX; else mHelpToken = CAHELPINDEX; @@ -74,7 +74,7 @@ public class RuleInstanceTab extends CMSPluginInstanceTab { JFrame parent, AdminConnection conn, String dest - ) + ) { return new RuleConfigDialog(nvp, @@ -88,7 +88,7 @@ public class RuleInstanceTab extends CMSPluginInstanceTab { AdminConnection conn, String dest, CMSPluginInstanceTab pluginType - ) + ) { return new RulePluginSelectionDialog(parent,conn,dest,pluginType); } diff --git a/base/console/src/com/netscape/admin/certsrv/config/RulePluginSelectionDialog.java b/base/console/src/com/netscape/admin/certsrv/config/RulePluginSelectionDialog.java index f1021bc6c..cc7fb1076 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/RulePluginSelectionDialog.java +++ b/base/console/src/com/netscape/admin/certsrv/config/RulePluginSelectionDialog.java @@ -41,7 +41,7 @@ public class RulePluginSelectionDialog extends PluginSelectionDialog * variables *==========================================================*/ private static final String PREFIX = "RULESELECTIONDIALOG"; - private static final String CAHELPINDEX = + private static final String CAHELPINDEX = "configuration-ca-add-rulerule-dbox-help"; private static final String RAHELPINDEX = "configuration-ra-add-rulerule-dbox-help"; @@ -51,9 +51,9 @@ public class RulePluginSelectionDialog extends PluginSelectionDialog *==========================================================*/ public RulePluginSelectionDialog( JFrame parent, - AdminConnection conn, + AdminConnection conn, String dest, - CMSPluginInstanceTab pluginType) + CMSPluginInstanceTab pluginType) { super(PREFIX, parent,conn, dest, pluginType); mScope = ScopeDef.SC_RULE_IMPLS; diff --git a/base/console/src/com/netscape/admin/certsrv/config/RuleRuleDataModel.java b/base/console/src/com/netscape/admin/certsrv/config/RuleRuleDataModel.java index cee7727a1..776224c82 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/RuleRuleDataModel.java +++ b/base/console/src/com/netscape/admin/certsrv/config/RuleRuleDataModel.java @@ -55,7 +55,7 @@ public class RuleRuleDataModel extends CMSRuleDataModel v.addElement(new JLabel(obj.get(RULE_NAME), CMSAdminUtil.getImage(CMSAdminResources.IMAGE_RULE), JLabel.LEFT)); - v.addElement(mResource.getString("RULERULE_LABEL_ENABLED_LABEL")); + v.addElement(mResource.getString("RULERULE_LABEL_ENABLED_LABEL")); } else { v.addElement(new JLabel(obj.get(RULE_NAME), CMSAdminUtil.getImage(CMSAdminResources.IMAGE_RULE_DISABLE), diff --git a/base/console/src/com/netscape/admin/certsrv/config/TKSKeysTab.java b/base/console/src/com/netscape/admin/certsrv/config/TKSKeysTab.java index ac8b5e610..9a8bc2308 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/TKSKeysTab.java +++ b/base/console/src/com/netscape/admin/certsrv/config/TKSKeysTab.java @@ -43,17 +43,17 @@ public class TKSKeysTab extends CMSBaseUGTab { *==========================================================*/ private static final String PANEL_NAME = "TKSKEYS"; private CryptoManager mCryptoManager = null; - + private AdminConnection mConnection; private String mDestination; private CMSBaseResourceModel mModel; private ConsoleInfo mConsoleInfo; - private JComboBox mToken; + private JComboBox mToken; protected JScrollPane mScrollPane; protected JTable mTable; //table protected ListKeysModel mDataModel; //table model protected KeyCreateDialog mEditor=null; //keep single copy - + protected JButton mRefresh, mAdd, mHelp; private final static String HELPINDEX = "configuration-log-plugin-help"; @@ -68,7 +68,7 @@ public class TKSKeysTab extends CMSBaseUGTab { mDataModel = new ListKeysModel(); mDestination = destination; mHelpToken = HELPINDEX; - + } /*========================================================== @@ -109,8 +109,8 @@ public class TKSKeysTab extends CMSBaseUGTab { if(row < 0) return; - - + + } //==== MOUSELISTENER ====================== @@ -119,7 +119,7 @@ public class TKSKeysTab extends CMSBaseUGTab { } public void mouseReleased(MouseEvent e) { - setButtons(); + setButtons(); } /*========================================================== @@ -128,8 +128,8 @@ public class TKSKeysTab extends CMSBaseUGTab { public void refresh() { mDataModel.removeAllRows(); - update(); - + update(); + setButtons(); mTable.invalidate(); mTable.validate(); @@ -142,8 +142,8 @@ public class TKSKeysTab extends CMSBaseUGTab { protected JPanel createButtonPanel() { //edit, add, delete, help buttons required //actionlister to this object - - + + mAdd = makeJButton("ADD"); JButton[] buttons = {mAdd}; @@ -181,9 +181,9 @@ public class TKSKeysTab extends CMSBaseUGTab { CMSAdminUtil.COMPONENT_SPACE, CMSAdminUtil.COMPONENT_SPACE, CMSAdminUtil.COMPONENT_SPACE*30); - gb.setConstraints(mToken, gbc); + gb.setConstraints(mToken, gbc); mListPanel.add(mToken); - + //center table mTable = new JTable(mDataModel); @@ -220,11 +220,11 @@ public class TKSKeysTab extends CMSBaseUGTab { gbc.insets = EMPTY_INSETS; gb.setConstraints(buttonPanel, gbc); mListPanel.add(buttonPanel); - + NameValuePairs response=null; try { response = mConnection.search(mDestination, - ScopeDef.SC_TOKEN, new NameValuePairs()); + ScopeDef.SC_TOKEN, new NameValuePairs()); } catch (EAdminException e) { //display error dialog showErrorDialog(e.getMessage()); @@ -237,7 +237,7 @@ public class TKSKeysTab extends CMSBaseUGTab { for (String entry : response.keySet()) { vals[i++] = entry.trim(); } - + int sindex = 0; CMSAdminUtil.quickSort(vals, 0, response.size()-1); for (i=0; i<vals.length; i++) { @@ -245,7 +245,7 @@ public class TKSKeysTab extends CMSBaseUGTab { String entry = vals[i]; String value = response.get(entry); // look for the comma separator - + StringTokenizer st = new StringTokenizer(value, ","); while (st.hasMoreTokens()) { String currentToken= st.nextToken(); @@ -268,29 +268,29 @@ public class TKSKeysTab extends CMSBaseUGTab { //set buttons private void setButtons() { - + //enable and diable buttons accordingly //Debug.println("setButtons() - "+mTable.getSelectedRow()); //Debug.println("setButtons() - "+mTable.getSelectionModel().isSelectionEmpty()); - + } - + //============================================= // SEND REQUESTS TO THE SERVER SIDE //============================================= private void update() { //send request and parse data - + mModel.progressStart(); - + NameValuePairs response; NameValuePairs request; request = new NameValuePairs(); request.put(Constants.PR_TOKEN_LIST, (String) mToken.getSelectedItem()); try { response = mConnection.search(mDestination, - ScopeDef.SC_TKSKEYSLIST, request); + ScopeDef.SC_TKSKEYSLIST, request); } catch (EAdminException e) { //display error dialog showErrorDialog(e.getMessage()); @@ -308,7 +308,7 @@ public class TKSKeysTab extends CMSBaseUGTab { for (String entry : response.keySet()) { vals[i++] = entry.trim(); } - + int sindex = 0; CMSAdminUtil.quickSort(vals, 0, response.size()-1); for (i=0; i<vals.length; i++) { @@ -348,7 +348,7 @@ public class TKSKeysTab extends CMSBaseUGTab { (String)(mDataModel.getValueAt(row, 0)); String id = nickname+":SERIAL#<"+mDataModel.getValueAt(row, 1)+">" +mDataModel.getValueAt(row, 2); - + //send comment to server for the removal of user try { mConnection.delete(mDestination, ScopeDef.SC_USERCERTSLIST, id); diff --git a/base/console/src/com/netscape/admin/certsrv/config/UserCertsTab.java b/base/console/src/com/netscape/admin/certsrv/config/UserCertsTab.java index de0a075a1..ff8f06a4e 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/UserCertsTab.java +++ b/base/console/src/com/netscape/admin/certsrv/config/UserCertsTab.java @@ -43,17 +43,17 @@ public class UserCertsTab extends CMSBaseUGTab { * variables *==========================================================*/ private static final String PANEL_NAME = "USERCERTS"; - + private AdminConnection mConnection; private String mDestination; private CMSBaseResourceModel mModel; private ConsoleInfo mConsoleInfo; - + protected JScrollPane mScrollPane; protected JTable mTable; //table protected ListCertsModel mDataModel; //table model protected CertViewDialog mEditor=null; //keep single copy - + protected JButton mRefresh, mAdd, mDelete, mView, mHelp; private final static String HELPINDEX = "configuration-log-plugin-help"; @@ -119,7 +119,7 @@ public class UserCertsTab extends CMSBaseUGTab { (String)(mTable.getValueAt(row, 0)); String serialno = (String)(mTable.getValueAt(row, 1)); String issuername = (String)(mTable.getValueAt(row, 2)); - + try { NameValuePairs nvps = new NameValuePairs(); nvps.put(Constants.PR_NICK_NAME, nickname); @@ -138,7 +138,7 @@ public class UserCertsTab extends CMSBaseUGTab { CMSAdminUtil.showErrorDialog(mModel.getFrame(), mResource, ex.toString(), CMSAdminUtil.ERROR_MESSAGE); } - } + } } //==== MOUSELISTENER ====================== @@ -147,7 +147,7 @@ public class UserCertsTab extends CMSBaseUGTab { } public void mouseReleased(MouseEvent e) { - setButtons(); + setButtons(); } /*========================================================== @@ -156,8 +156,8 @@ public class UserCertsTab extends CMSBaseUGTab { public void refresh() { mDataModel.removeAllRows(); - update(); - + update(); + setButtons(); mTable.invalidate(); mTable.validate(); @@ -241,7 +241,7 @@ public class UserCertsTab extends CMSBaseUGTab { //set buttons private void setButtons() { - + //enable and diable buttons accordingly //Debug.println("setButtons() - "+mTable.getSelectedRow()); //Debug.println("setButtons() - "+mTable.getSelectionModel().isSelectionEmpty()); @@ -250,29 +250,29 @@ public class UserCertsTab extends CMSBaseUGTab { mView.setEnabled(false); return; } - + if(mDataModel.getRowCount()<=0) { mDelete.setEnabled(false); mView.setEnabled(false); return; } - + mDelete.setEnabled(true); - mView.setEnabled(true); - + mView.setEnabled(true); + } - + //============================================= // SEND REQUESTS TO THE SERVER SIDE //============================================= private void update() { //send request and parse data - + mModel.progressStart(); NameValuePairs response; try { response = mConnection.search(mDestination, - ScopeDef.SC_USERCERTSLIST, new NameValuePairs()); + ScopeDef.SC_USERCERTSLIST, new NameValuePairs()); } catch (EAdminException e) { //display error dialog showErrorDialog(e.getMessage()); @@ -290,7 +290,7 @@ public class UserCertsTab extends CMSBaseUGTab { for (String entry : response.keySet()) { vals[i++] = entry.trim(); } - + int sindex = 0; String snickname = ""; CMSAdminUtil.quickSort(vals, 0, response.size()-1); @@ -313,7 +313,7 @@ public class UserCertsTab extends CMSBaseUGTab { } mTable.setRowSelectionInterval(0,0); } - + mModel.progressStop(); } @@ -324,7 +324,7 @@ public class UserCertsTab extends CMSBaseUGTab { (String)(mDataModel.getValueAt(row, 0)); String id = nickname+":SERIAL#<"+mDataModel.getValueAt(row, 1)+">" +mDataModel.getValueAt(row, 2); - + //send comment to server for the removal of user try { mConnection.delete(mDestination, ScopeDef.SC_USERCERTSLIST, id); diff --git a/base/console/src/com/netscape/admin/certsrv/config/ViewDialog.java b/base/console/src/com/netscape/admin/certsrv/config/ViewDialog.java index 277b3d2be..e3c40a276 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/ViewDialog.java +++ b/base/console/src/com/netscape/admin/certsrv/config/ViewDialog.java @@ -30,7 +30,7 @@ import javax.swing.table.*; import com.netscape.certsrv.common.*; /** - * Policy Implementation Information viewer + * Policy Implementation Information viewer * * @author Jack Pan-Chen * @version $Revision$, $Date$ @@ -148,7 +148,7 @@ public class ViewDialog extends JDialog JLabel label1 = CMSAdminUtil.makeJLabel(mResource, PREFIX, "NAME", null); mNameField = new JLabel(); CMSAdminUtil.addEntryField(content, label1, mNameField, gbc); - + CMSAdminUtil.resetGBC(gbc); JLabel label2 = CMSAdminUtil.makeJLabel(mResource, PREFIX, "CLASS", null); mClassField = new JLabel(); @@ -162,7 +162,7 @@ public class ViewDialog extends JDialog CMSAdminUtil.COMPONENT_SPACE,0,0); gb3.setConstraints(label3, gbc); content.add(label3); - + CMSAdminUtil.resetGBC(gbc); mTextArea = new JTextArea("",30,10); mTextArea.setFont(mClassField.getFont()); @@ -183,7 +183,7 @@ public class ViewDialog extends JDialog gbc.weighty=1.0; gb3.setConstraints(scrollPanel, gbc); content.add(scrollPanel); - + return content; } } diff --git a/base/console/src/com/netscape/admin/certsrv/config/ViewSelfTestsDialog.java b/base/console/src/com/netscape/admin/certsrv/config/ViewSelfTestsDialog.java index 09d7892ef..fdd18b2f8 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/ViewSelfTestsDialog.java +++ b/base/console/src/com/netscape/admin/certsrv/config/ViewSelfTestsDialog.java @@ -31,7 +31,7 @@ import javax.swing.event.*; import javax.swing.table.*; /** - * Self Tests Implementation Information viewer + * Self Tests Implementation Information viewer * * @author Matthew Harmsen * @author Thomas Kwan @@ -166,7 +166,7 @@ public class ViewSelfTestsDialog extends JDialog gbc.weighty = 1.0; gb3.setConstraints( scrollPanel, gbc ); content.add( scrollPanel ); - + return content; } } diff --git a/base/console/src/com/netscape/admin/certsrv/config/WBaseCertExtensionPage.java b/base/console/src/com/netscape/admin/certsrv/config/WBaseCertExtensionPage.java index 6c92ed61e..c5ff4ce2b 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/WBaseCertExtensionPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/WBaseCertExtensionPage.java @@ -48,7 +48,7 @@ public class WBaseCertExtensionPage extends WizardBasePanel { protected static final String DEFAULT_CERT_LEN = "100"; protected String mPanelName; protected boolean mModified=false; - + public WBaseCertExtensionPage(String panelName) { super(panelName); } @@ -73,7 +73,7 @@ public class WBaseCertExtensionPage extends WizardBasePanel { setErrorMessage("INVALID"); return false; } - + } if (mMIMECheckBox.isSelected()) { @@ -100,7 +100,7 @@ public class WBaseCertExtensionPage extends WizardBasePanel { enableExtendedKey(extendedKey); - if (derExt) + if (derExt) enableMIMEExt(derExt, mActiveColor); else enableMIMEExt(derExt, getBackground()); @@ -111,15 +111,15 @@ public class WBaseCertExtensionPage extends WizardBasePanel { // If signed by self, no request will be generated // check if a signing cert installed, make cmc note invisible String type = wizardInfo.getCertType(); - if ((type.equals(Constants.PR_KRA_TRANSPORT_CERT) && + if ((type.equals(Constants.PR_KRA_TRANSPORT_CERT) && wizardInfo.isKRACertLocalCA()) || - (type.equals(Constants.PR_SERVER_CERT) && + (type.equals(Constants.PR_SERVER_CERT) && wizardInfo.isSSLCertLocalCA()) || type.equals(Constants.PR_OCSP_SIGNING_CERT) || (type.equals(Constants.PR_CA_SIGNING_CERT) && wizardInfo.isCACertLocalCA()) || (type.equals(Constants.PR_SERVER_CERT) || - type.equals(Constants.PR_KRA_TRANSPORT_CERT)) && ( + type.equals(Constants.PR_KRA_TRANSPORT_CERT)) && ( (wizardInfo.isCAInstalled() && wizardInfo.isCACertInstalledDone()) || (wizardInfo.isRAInstalled() && @@ -220,7 +220,7 @@ public class WBaseCertExtensionPage extends WizardBasePanel { JPanel panel = new JPanel(); GridBagLayout gb1 = new GridBagLayout(); panel.setLayout(gb1); - + mCertPathBox = makeJCheckBox("CERTPATHLENGTH"); CMSAdminUtil.resetGBC(gbc); gbc.insets = new Insets(0, 0, 0, COMPONENT_SPACE); @@ -289,7 +289,7 @@ public class WBaseCertExtensionPage extends WizardBasePanel { gbc.fill = gbc.NONE; gbc.weightx = 1.0; add(mSSLMail, gbc); - + mObjectSigning = makeJCheckBox("OBJECTSIGNING"); CMSAdminUtil.resetGBC(gbc); gbc.anchor = gbc.NORTHWEST; @@ -315,7 +315,7 @@ public class WBaseCertExtensionPage extends WizardBasePanel { gbc.fill = gbc.NONE; gbc.weightx = 1.0; add(mOCSPSigning, gbc); - + mAIACheckBox = makeJCheckBox("AIA"); CMSAdminUtil.resetGBC(gbc); gbc.anchor = gbc.NORTHWEST; @@ -380,7 +380,7 @@ public class WBaseCertExtensionPage extends WizardBasePanel { COMPONENT_SPACE); gbc.fill = gbc.NONE; add(mMIMECheckBox, gbc); - + mMIMEText = new JTextArea("", 40, 70); JScrollPane scrollPane = new JScrollPane(mMIMEText, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, @@ -400,7 +400,7 @@ public class WBaseCertExtensionPage extends WizardBasePanel { COMPONENT_SPACE); add(scrollPane, gbc); mActiveColor = mMIMEText.getBackground(); - + mPaste = makeJButton("PASTE"); CMSAdminUtil.resetGBC(gbc); gbc.anchor = gbc.NORTHEAST; @@ -421,17 +421,17 @@ public class WBaseCertExtensionPage extends WizardBasePanel { if (source.equals(mPaste)) { mMIMEText.paste(); } else if (source.equals(mBasicCheckBox)) { - if (mBasicCheckBox.isSelected()) + if (mBasicCheckBox.isSelected()) enableBasicConstraints(true, mActiveColor); else enableBasicConstraints(false, getBackground()); } else if (source.equals(mExtendedKeyCheckBox)) { - if (mExtendedKeyCheckBox.isSelected()) + if (mExtendedKeyCheckBox.isSelected()) enableExtendedKey(true); else enableExtendedKey(false); } else if (source.equals(mMIMECheckBox)) { - if (mMIMECheckBox.isSelected()) + if (mMIMECheckBox.isSelected()) enableMIMEExt(true, mActiveColor); else enableMIMEExt(false, getBackground()); diff --git a/base/console/src/com/netscape/admin/certsrv/config/WBaseCertRequestPage.java b/base/console/src/com/netscape/admin/certsrv/config/WBaseCertRequestPage.java index 6b9a1667b..9eb63ca97 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/WBaseCertRequestPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/WBaseCertRequestPage.java @@ -43,7 +43,7 @@ public class WBaseCertRequestPage extends WizardBasePanel { protected JTextField mEmailText, mContactEmailTxt, mNameTxt, mContactPhoneTxt; protected JLabel mContactPhoneLbl, mContactEmailLbl, mNameLbl; protected JTextArea mContactText; - + public WBaseCertRequestPage(String panelName) { super(panelName); } @@ -135,10 +135,10 @@ public class WBaseCertRequestPage extends WizardBasePanel { mEmailText = new JTextField(30); CMSAdminUtil.resetGBC(gbc); gbc.anchor = gbc.WEST; - gbc.insets = new Insets(COMPONENT_SPACE, 0, 0, COMPONENT_SPACE); + gbc.insets = new Insets(COMPONENT_SPACE, 0, 0, COMPONENT_SPACE); gbc.gridwidth = gbc.REMAINDER; add(mEmailText, gbc); - + mURLBtn = makeJRadioButton("URL", false); CMSAdminUtil.resetGBC(gbc); gbc.anchor = gbc.WEST; @@ -154,7 +154,7 @@ public class WBaseCertRequestPage extends WizardBasePanel { COMPONENT_SPACE,COMPONENT_SPACE); gbc.gridwidth = gbc.REMAINDER; add(mURLText, gbc); - + ButtonGroup methodGroup = new ButtonGroup(); methodGroup.add(mEmailBtn); methodGroup.add(mURLBtn); @@ -169,7 +169,7 @@ public class WBaseCertRequestPage extends WizardBasePanel { CMSAdminUtil.resetGBC(gbc); gbc.weightx = 1.0; gbc.anchor = gbc.NORTHWEST; - gbc.gridwidth = gbc.REMAINDER; + gbc.gridwidth = gbc.REMAINDER; gbc.insets = new Insets(COMPONENT_SPACE, 4*COMPONENT_SPACE, COMPONENT_SPACE,COMPONENT_SPACE); add(mContactText, gbc); @@ -187,7 +187,7 @@ public class WBaseCertRequestPage extends WizardBasePanel { gbc.anchor = gbc.NORTHWEST; gbc.insets = new Insets(COMPONENT_SPACE, 0, 0, 0); add(panel, gbc); - + mNameLbl = makeJLabel("NAME"); CMSAdminUtil.resetGBC(gbc); gbc.anchor = gbc.EAST; @@ -221,7 +221,7 @@ public class WBaseCertRequestPage extends WizardBasePanel { gbc.gridwidth = gbc.REMAINDER; gbc.weightx = 1.0; panel.add(mContactEmailTxt, gbc); - + mContactPhoneLbl = makeJLabel("PHONE"); CMSAdminUtil.resetGBC(gbc); gbc.anchor = gbc.WEST; diff --git a/base/console/src/com/netscape/admin/certsrv/config/WBaseDNPage.java b/base/console/src/com/netscape/admin/certsrv/config/WBaseDNPage.java index 97774727b..44ad29fed 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/WBaseDNPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/WBaseDNPage.java @@ -98,7 +98,7 @@ public class WBaseDNPage extends WizardBasePanel implements IWizardPanel { } if (str.equals("") && !displayWarning) { - String errorMsg = + String errorMsg = mResource.getString(mPanelName+"_DIALOG_MISSINGO_MESSAGE"); JOptionPane.showMessageDialog(new JFrame(), errorMsg, "Warning", JOptionPane.WARNING_MESSAGE, @@ -184,7 +184,7 @@ public class WBaseDNPage extends WizardBasePanel implements IWizardPanel { gbc.gridwidth = gbc.REMAINDER; add(dnDesc, gbc); */ - + /* JTextArea desc = createTextArea( CMSAdminUtil.wrapText(mResource.getString( @@ -210,7 +210,7 @@ public class WBaseDNPage extends WizardBasePanel implements IWizardPanel { COMPONENT_SPACE,COMPONENT_SPACE); gbc.gridwidth = gbc.REMAINDER; add(mDNComponents, gbc); - + cnLabel = makeJLabel("CN"); CMSAdminUtil.resetGBC(gbc); gbc.anchor = gbc.EAST; @@ -219,7 +219,7 @@ public class WBaseDNPage extends WizardBasePanel implements IWizardPanel { COMPONENT_SPACE); add(cnLabel, gbc); - mCNText = new JTextField(30); + mCNText = new JTextField(30); CMSAdminUtil.resetGBC(gbc); gbc.anchor = gbc.WEST; gbc.insets = new Insets(COMPONENT_SPACE,COMPONENT_SPACE, 0, @@ -365,7 +365,7 @@ public class WBaseDNPage extends WizardBasePanel implements IWizardPanel { mSubjectStringText = new JTextField(256); /* - mSubjectStringText = new JTextArea(null, null, 0, 0); + mSubjectStringText = new JTextArea(null, null, 0, 0); mSubjectStringText.setBorder(BorderFactory.createLineBorder(Color.black)); JScrollPane scrollPane = new JScrollPane(mSubjectStringText, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, @@ -391,7 +391,7 @@ public class WBaseDNPage extends WizardBasePanel implements IWizardPanel { gbc.gridheight = gbc.REMAINDER; gbc.gridwidth = gbc.REMAINDER; add(d1, gbc); - + mCNText.getDocument().addDocumentListener((DocumentListener)mSubjectDNText); mOUText.getDocument().addDocumentListener((DocumentListener)mSubjectDNText); @@ -425,10 +425,10 @@ public class WBaseDNPage extends WizardBasePanel implements IWizardPanel { CMSAdminUtil.repaintComp(cLabel); CMSAdminUtil.repaintComp(subjectDNLabel); if (enable) - CMSAdminUtil.enableJTextField(mSubjectStringText, !enable, + CMSAdminUtil.enableJTextField(mSubjectStringText, !enable, getBackground()); else - CMSAdminUtil.enableJTextField(mSubjectStringText, !enable, + CMSAdminUtil.enableJTextField(mSubjectStringText, !enable, mActiveColor); } @@ -437,10 +437,10 @@ public class WBaseDNPage extends WizardBasePanel implements IWizardPanel { enableFields(true, mActiveColor); } else { enableFields(false, getBackground()); - } + } } - public class SubjectDNTextArea extends JTextArea implements + public class SubjectDNTextArea extends JTextArea implements DocumentListener { public SubjectDNTextArea(int rows, int columns) { @@ -454,7 +454,7 @@ public class WBaseDNPage extends WizardBasePanel implements IWizardPanel { public void removeUpdate(DocumentEvent e) { super.setText(updateStr()); } - + public void changedUpdate(DocumentEvent e) { super.setText(updateStr()); } diff --git a/base/console/src/com/netscape/admin/certsrv/config/WBaseDNValidityPage.java b/base/console/src/com/netscape/admin/certsrv/config/WBaseDNValidityPage.java index 3a5837624..202b42dae 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/WBaseDNValidityPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/WBaseDNValidityPage.java @@ -66,9 +66,9 @@ public class WBaseDNValidityPage extends WizardBasePanel { COMPONENT_SPACE,COMPONENT_SPACE); gbc.gridwidth = gbc.REMAINDER; add(desc, gbc); - + JLabel cnLabel = makeJLabel("CN"); - mCNText = new JTextField(30); + mCNText = new JTextField(30); /* JTextArea dummy = createTextArea(" ", 1, 1); CMSAdminUtil.addComponents(this, cnLabel, mCNText, dummy, gbc); @@ -136,7 +136,7 @@ public class WBaseDNValidityPage extends WizardBasePanel { COMPONENT_SPACE,COMPONENT_SPACE); gbc.gridwidth = gbc.REMAINDER; add(desc1, gbc); - + validityLbl = makeJLabel("VALIDITY"); mValidityText = new JTextField(5); mUnitBox = makeJComboBox("VALIDITY"); @@ -154,7 +154,7 @@ public class WBaseDNValidityPage extends WizardBasePanel { super.init(); } - public class SubjectDNTextArea extends JTextArea implements + public class SubjectDNTextArea extends JTextArea implements DocumentListener { public SubjectDNTextArea(int rows, int columns) { @@ -168,7 +168,7 @@ public class WBaseDNValidityPage extends WizardBasePanel { public void removeUpdate(DocumentEvent e) { super.setText(updateStr()); } - + public void changedUpdate(DocumentEvent e) { super.setText(updateStr()); } diff --git a/base/console/src/com/netscape/admin/certsrv/config/WBaseKeyPage.java b/base/console/src/com/netscape/admin/certsrv/config/WBaseKeyPage.java index 1266099b1..cd5ebfc25 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/WBaseKeyPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/WBaseKeyPage.java @@ -32,13 +32,13 @@ import com.netscape.certsrv.common.*; * @version $Revision$, $Date$ * @see com.netscape.admin.certsrv.config.install */ -public class WBaseKeyPage extends WizardBasePanel { +public class WBaseKeyPage extends WizardBasePanel { protected JComboBox mKeyTypeBox; protected JComboBox mKeyLengthBox; //protected JComboBox mTokenBox; //protected JPasswordField mPasswordText; protected JTextField mKeyLengthText; - + public WBaseKeyPage(String panelName) { super(panelName); } @@ -59,7 +59,7 @@ public class WBaseKeyPage extends WizardBasePanel { COMPONENT_SPACE,COMPONENT_SPACE); gbc.gridwidth = gbc.REMAINDER; add(desc, gbc); - + /* JTextArea desc1 = createTextArea( CMSAdminUtil.wrapText(mResource.getString( @@ -93,7 +93,7 @@ public class WBaseKeyPage extends WizardBasePanel { CMSAdminUtil.resetGBC(gbc); gbc.anchor = gbc.NORTHWEST; gbc.weightx = 1.0; - gbc.insets = new Insets(COMPONENT_SPACE,0, + gbc.insets = new Insets(COMPONENT_SPACE,0, COMPONENT_SPACE,COMPONENT_SPACE); gbc.gridwidth = gbc.REMAINDER; add(dummy, gbc); @@ -133,7 +133,7 @@ public class WBaseKeyPage extends WizardBasePanel { /* JLabel keyTypeLbl = makeJLabel("KEYTYPE"); - mKeyTypeBox = makeJComboBox("KEYTYPE"); + mKeyTypeBox = makeJComboBox("KEYTYPE"); //JTextArea dummy2 = createTextArea(" ", 1, 10); //CMSAdminUtil.addComponents(this, keyTypeLbl, mKeyTypeBox, dummy2, gbc); CMSAdminUtil.addComponents(this, keyTypeLbl, mKeyTypeBox, gbc); @@ -147,15 +147,15 @@ public class WBaseKeyPage extends WizardBasePanel { CMSAdminUtil.resetGBC(gbc); gbc.anchor = gbc.NORTHEAST; gbc.fill = gbc.NONE; - gbc.insets = new Insets(0, COMPONENT_SPACE, COMPONENT_SPACE, + gbc.insets = new Insets(0, COMPONENT_SPACE, COMPONENT_SPACE, COMPONENT_SPACE); panel.add(keyTypeLbl, gbc); - + mKeyTypeBox = makeJComboBox("KEYTYPE"); CMSAdminUtil.resetGBC(gbc); gbc.anchor = gbc.NORTHWEST; gbc.gridwidth = gbc.REMAINDER; - gbc.insets = new Insets(0, COMPONENT_SPACE, COMPONENT_SPACE, + gbc.insets = new Insets(0, COMPONENT_SPACE, COMPONENT_SPACE, COMPONENT_SPACE); gbc.fill = gbc.NONE; panel.add(mKeyTypeBox, gbc); @@ -190,7 +190,7 @@ public class WBaseKeyPage extends WizardBasePanel { JPanel panel1 = new JPanel(); GridBagLayout gb2 = new GridBagLayout(); panel1.setLayout(gb2); - + JLabel keyLengthCustomLbl = makeJLabel("KEYLENGTH"); CMSAdminUtil.resetGBC(gbc); gbc.anchor = gbc.NORTHEAST; diff --git a/base/console/src/com/netscape/admin/certsrv/config/WBaseManualCertRequestPage.java b/base/console/src/com/netscape/admin/certsrv/config/WBaseManualCertRequestPage.java index 195979f9c..7c36571d8 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/WBaseManualCertRequestPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/WBaseManualCertRequestPage.java @@ -59,14 +59,14 @@ public class WBaseManualCertRequestPage extends WizardBasePanel { protected String mPanelName, mDir; protected JTextArea mFileName; protected JTextArea mDesc; - + protected JTextField mHostText, mPortText; protected JLabel mHostLbl, mPortLbl; protected JLabel mSSLText; protected JCheckBox mSSL; // ssl or not protected String mHost, mPort; protected JLabel mSendNowText; - protected JCheckBox mSendNowBox; + protected JCheckBox mSendNowBox; protected Color mActiveColor; public static final int MAX_PORT = 65535; public static final int MIN_PORT = 1; @@ -105,7 +105,7 @@ public class WBaseManualCertRequestPage extends WizardBasePanel { mReq = wizardInfo.getCertRequest(); } if (mReqFormat.equals(ConfigConstants.PR_REQUEST_PKCS10)){ - + // Break the long single line:header,64 byte lines,trailer // Assuming this is the only format we generate. String CERT_NEW_REQUEST_HEADER = "-----BEGIN NEW CERTIFICATE REQUEST-----"; @@ -136,7 +136,7 @@ public class WBaseManualCertRequestPage extends WizardBasePanel { mReq = str; } - if (mReq == null) + if (mReq == null) return false; mText.setText(mReq); @@ -158,7 +158,7 @@ public class WBaseManualCertRequestPage extends WizardBasePanel { String port = wizardInfo.getCMEEPort(); if (port != null && !port.equals("")) mPortText.setText(port); - + String portType = wizardInfo.getCMEEType(); if (portType != null && portType.equals("http")) mSSL.setSelected(false); @@ -177,7 +177,7 @@ public class WBaseManualCertRequestPage extends WizardBasePanel { } mDesc.setText(desc); - return true; + return true; } public boolean validatePanel() { @@ -220,7 +220,7 @@ public class WBaseManualCertRequestPage extends WizardBasePanel { if (mHost != null && !mHost.equals("")) wizardInfo.setCMHost(mHost); if (mPort != null && !mPort.equals("")) - wizardInfo.setCMEEPort(mPort); + wizardInfo.setCMEEPort(mPort); if (mSSL.isSelected()) wizardInfo.setCMEEType("https"); else @@ -280,10 +280,10 @@ public class WBaseManualCertRequestPage extends WizardBasePanel { wizardInfo.setX509RequestError(reqError); // rejected request should not be saved as requestSuccStage!! - if ( (reqID != null) && !reqID.equals("") && + if ( (reqID != null) && !reqID.equals("") && (wizardInfo.getRequestError() == null) && - (reqStatus.equals(Constants.PR_REQUEST_SUCCESS) - || reqStatus.equals(Constants.PR_REQUEST_PENDING) + (reqStatus.equals(Constants.PR_REQUEST_SUCCESS) + || reqStatus.equals(Constants.PR_REQUEST_PENDING) || reqStatus.equals(Constants.PR_REQUEST_SVC_PENDING)) ) { data = new Hashtable(); diff --git a/base/console/src/com/netscape/admin/certsrv/config/WBaseValidityPage.java b/base/console/src/com/netscape/admin/certsrv/config/WBaseValidityPage.java index 61d9506e6..2af0c5a89 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/WBaseValidityPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/WBaseValidityPage.java @@ -152,7 +152,7 @@ January 2038. JLabel dayLbl = makeJLabel("DAY"); add(dayLbl, gbc); - + JLabel hourLbl = makeJLabel("HOUR"); add(hourLbl, gbc); @@ -187,7 +187,7 @@ January 2038. gbc.insets = new Insets(COMPONENT_SPACE, COMPONENT_SPACE, 0, COMPONENT_SPACE); add(mBYear, gbc); - + mBMonth = new JTextField(""+(nowDate.get(Calendar.MONTH)+1)); mBMonth.setColumns(3); add(mBMonth, gbc); diff --git a/base/console/src/com/netscape/admin/certsrv/config/WMNNewAgent.java b/base/console/src/com/netscape/admin/certsrv/config/WMNNewAgent.java index 425eddaaa..4480e4de0 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/WMNNewAgent.java +++ b/base/console/src/com/netscape/admin/certsrv/config/WMNNewAgent.java @@ -48,7 +48,7 @@ class WMNNewAgent extends WizardBasePanel private NewAgentModel mDataModel; private JTable mTable; protected JScrollPane mScrollPane; - private static final String HELPINDEX = + private static final String HELPINDEX = "configuration-kra-wizard-newagentpwd-keyscheme-help"; /*========================================================== diff --git a/base/console/src/com/netscape/admin/certsrv/config/WMNOldAgent.java b/base/console/src/com/netscape/admin/certsrv/config/WMNOldAgent.java index 07973f6c9..4c5a6182b 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/WMNOldAgent.java +++ b/base/console/src/com/netscape/admin/certsrv/config/WMNOldAgent.java @@ -48,7 +48,7 @@ class WMNOldAgent extends WizardBasePanel private AutoRecoveryModel mDataModel; private JTable mTable; protected JScrollPane mScrollPane; - private static final String HELPINDEX = + private static final String HELPINDEX = "configuration-kra-wizard-agentpwd-keyscheme-help"; /*========================================================== @@ -65,7 +65,7 @@ class WMNOldAgent extends WizardBasePanel /*========================================================== * public methods - *==========================================================*/ + *==========================================================*/ public boolean initializePanel(WizardInfo info) { //let's set the values diff --git a/base/console/src/com/netscape/admin/certsrv/config/WMNResultPage.java b/base/console/src/com/netscape/admin/certsrv/config/WMNResultPage.java index 55b1d1ccf..db1d7eadc 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/WMNResultPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/WMNResultPage.java @@ -43,7 +43,7 @@ class WMNResultPage extends WizardBasePanel *==========================================================*/ private static final String PANELNAME = "WMNRESULTPAGE"; - private static final String HELPINDEX = + private static final String HELPINDEX = "configuration-kra-wizard-newagentpwd-keyscheme-help"; /*========================================================== diff --git a/base/console/src/com/netscape/admin/certsrv/config/WMNSelection.java b/base/console/src/com/netscape/admin/certsrv/config/WMNSelection.java index db7753b1d..f3e7fd53e 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/WMNSelection.java +++ b/base/console/src/com/netscape/admin/certsrv/config/WMNSelection.java @@ -78,7 +78,7 @@ class WMNSelection extends WizardBasePanel if ((mMField.getText().trim().equals("")) || (mNField.getText().trim().equals("")) ) { setErrorMessage("CANNOTBEBLANK"); - return false; + return false; } String str = mMField.getText().trim(); diff --git a/base/console/src/com/netscape/admin/certsrv/config/WMessageDigestPage.java b/base/console/src/com/netscape/admin/certsrv/config/WMessageDigestPage.java index ce0ced102..568566a88 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/WMessageDigestPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/WMessageDigestPage.java @@ -47,7 +47,7 @@ public class WMessageDigestPage extends WizardBasePanel implements IWizardPanel protected String mCAKeyType; protected JTextArea mSignedByTypeLbl; private static final String HELPINDEX = "install-cert-mda-wizard-help"; - + public WMessageDigestPage(String panelName) { super(panelName); mPanelName = panelName; @@ -62,23 +62,23 @@ public class WMessageDigestPage extends WizardBasePanel implements IWizardPanel setBorder(makeTitledBorder(mPanelName)); if (mCAKeyType.equals("RSA")) { - mECCHashTypeBox.setVisible(false); + mECCHashTypeBox.setVisible(false); mDSAHashTypeBox.setVisible(false); mRSAHashTypeBox.setVisible(true); String sha1 = mResource.getString(mPanelName+"_COMBOBOX_RSAHASHTYPE_VALUE_2"); mRSAHashTypeBox.setSelectedItem(sha1); } else if (mCAKeyType.equals("ECC")) { - mECCHashTypeBox.setVisible(true); + mECCHashTypeBox.setVisible(true); mDSAHashTypeBox.setVisible(false); mRSAHashTypeBox.setVisible(false); } else { - mECCHashTypeBox.setVisible(false); + mECCHashTypeBox.setVisible(false); mDSAHashTypeBox.setVisible(true); mRSAHashTypeBox.setVisible(false); } mHelpIndex = HELPINDEX; - return true; + return true; } public boolean validatePanel() { @@ -93,7 +93,7 @@ public class WMessageDigestPage extends WizardBasePanel implements IWizardPanel mSignedByTypeLbl.setVisible(false); return; } - + if (mCAKeyType.equals("RSA")) { mRSASignedByTypeBox.setVisible(true); mDSASignedByTypeBox.setVisible(false); @@ -107,7 +107,7 @@ public class WMessageDigestPage extends WizardBasePanel implements IWizardPanel mDSASignedByTypeBox.setVisible(true); mRSASignedByTypeBox.setVisible(false); } - + mSignedByTypeLbl.setVisible(true); } diff --git a/base/console/src/com/netscape/admin/certsrv/config/WarningDialog.java b/base/console/src/com/netscape/admin/certsrv/config/WarningDialog.java index bedf0b67f..4cb157411 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/WarningDialog.java +++ b/base/console/src/com/netscape/admin/certsrv/config/WarningDialog.java @@ -62,12 +62,12 @@ public class WarningDialog extends JDialog getRootPane().setDoubleBuffered(true); setDisplay(); } - + public void actionPerformed(ActionEvent evt) { if (evt.getSource().equals(mClose)) { this.hide(); this.dispose(); - } + } } private void setDisplay() { @@ -110,9 +110,9 @@ public class WarningDialog extends JDialog } private JPanel makeActionPane() { - mClose = CMSAdminUtil.makeJButton(mResource, PREFIX, "CLOSE", + mClose = CMSAdminUtil.makeJButton(mResource, PREFIX, "CLOSE", null, this); - + Dimension d = mClose.getMinimumSize(); if (d.width < CMSAdminUtil.DEFAULT_BUTTON_SIZE) { d.width = CMSAdminUtil.DEFAULT_BUTTON_SIZE; @@ -150,7 +150,7 @@ public class WarningDialog extends JDialog desc.setBackground(getBackground()); desc.setEditable(false); desc.setCaretColor(getBackground()); - JScrollPane scrollPane = new JScrollPane(desc, + JScrollPane scrollPane = new JScrollPane(desc, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER); CMSAdminUtil.resetGBC(gbc); @@ -164,7 +164,7 @@ public class WarningDialog extends JDialog gbc.gridwidth = gbc.REMAINDER; gbc.gridheight = gbc.REMAINDER; content.add(scrollPane, gbc); - + return content; } } diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/InstallWizard.java b/base/console/src/com/netscape/admin/certsrv/config/install/InstallWizard.java index 557dc2739..e59da68f5 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/InstallWizard.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/InstallWizard.java @@ -33,7 +33,7 @@ import com.netscape.admin.certsrv.wizard.*; public class InstallWizard extends WizardWidget implements Runnable { - public InstallWizard(JFrame parent, InstallWizardInfo info, + public InstallWizard(JFrame parent, InstallWizardInfo info, IWizardDone wizDone) { super(parent, wizDone); setWizardInfo(info); diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/InstallWizardInfo.java b/base/console/src/com/netscape/admin/certsrv/config/install/InstallWizardInfo.java index a88101cc4..aa639ecb3 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/InstallWizardInfo.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/InstallWizardInfo.java @@ -72,7 +72,7 @@ public class InstallWizardInfo extends WizardInfo { public InstallWizardInfo(ConsoleInfo consoleInfo) { super(); - mConsoleInfo = consoleInfo; + mConsoleInfo = consoleInfo; } public JFrame getAdminFrame() { @@ -85,7 +85,7 @@ public class InstallWizardInfo extends WizardInfo { return true; else return false; - + } public void setAdminFrame(JFrame frame) { @@ -102,7 +102,7 @@ public class InstallWizardInfo extends WizardInfo { public String getCloneCertsList() { String s = (String)get(ConfigConstants.PR_CLONE_CERTIFICATES); - if (s == null || s.equals("")) + if (s == null || s.equals("")) return " "; return s; } @@ -120,7 +120,7 @@ public class InstallWizardInfo extends WizardInfo { public boolean isCACloningDone() { String str = (String)get(ConfigConstants.STAGE_CACLONING); - + if (str != null && str.equals(ConfigConstants.TRUE)) return true; else @@ -133,9 +133,9 @@ public class InstallWizardInfo extends WizardInfo { public boolean isOCSPCloningDone() { String str = (String)get(ConfigConstants.STAGE_OCSPCLONING); - if (str != null && str.equals(ConfigConstants.TRUE)) + if (str != null && str.equals(ConfigConstants.TRUE)) return true; - + return false; } @@ -145,27 +145,27 @@ public class InstallWizardInfo extends WizardInfo { public boolean isRACloningDone() { String str = (String)get(ConfigConstants.STAGE_RACLONING); - if (str != null && str.equals(ConfigConstants.TRUE)) + if (str != null && str.equals(ConfigConstants.TRUE)) return true; - + return false; } - + public void setRACloningDone(String str) { put(ConfigConstants.STAGE_RACLONING, str); } public boolean isKRACloningDone() { String str = (String)get(ConfigConstants.STAGE_KRACLONING); - if (str != null && str.equals(ConfigConstants.TRUE)) + if (str != null && str.equals(ConfigConstants.TRUE)) return true; - + return false; } public boolean isTKSCloningDone() { String str = (String)get(ConfigConstants.STAGE_TKSCLONING); - if (str != null && str.equals(ConfigConstants.TRUE)) + if (str != null && str.equals(ConfigConstants.TRUE)) return true; return false; @@ -248,9 +248,9 @@ public class InstallWizardInfo extends WizardInfo { public boolean isAdministratorDone() { String str = (String)get(ConfigConstants.STAGE_SETUP_ADMINISTRATOR); - if (str == null || str.equals("") || str.equals(ConfigConstants.FALSE)) + if (str == null || str.equals("") || str.equals(ConfigConstants.FALSE)) return false; - + return true; } @@ -281,7 +281,7 @@ public class InstallWizardInfo extends WizardInfo { return true; return false; } - + public boolean isRACertRequestBack() { String str = (String)get(ConfigConstants.RA_CERT_REQUEST_BACK); if (str != null && str.equals(ConfigConstants.TRUE)) @@ -295,35 +295,35 @@ public class InstallWizardInfo extends WizardInfo { return true; return false; } - + public boolean isKRACertRequestBack() { String str = (String)get(ConfigConstants.KRA_CERT_REQUEST_BACK); if (str != null && str.equals(ConfigConstants.TRUE)) return true; return false; } - + public boolean isSSLCertRequestBack() { String str = (String)get(ConfigConstants.SSL_CERT_REQUEST_BACK); if (str != null && str.equals(ConfigConstants.TRUE)) return true; return false; } - + public boolean isSelfSignedCACertDone() { String str = (String)get(ConfigConstants.STAGE_CA_SELFSIGNED_CERT); if (str != null && str.equals(ConfigConstants.TRUE)) return true; return false; } - + public boolean isCACertRequestDone() { String str = (String)get(ConfigConstants.STAGE_CA_CERT_REQUEST); if (str != null && str.equals(ConfigConstants.TRUE)) return true; return false; } - + public boolean isCACertInstalledDone() { String str = (String)get(ConfigConstants.STAGE_CA_CERT_INSTALL); if (str != null && str.equals(ConfigConstants.TRUE)) @@ -375,7 +375,7 @@ public class InstallWizardInfo extends WizardInfo { return true; return false; } - + public boolean isOCSPLocalCertDone() { String str = (String)get(ConfigConstants.STAGE_OCSP_LOCAL_CERT); if (str != null && str.equals(ConfigConstants.TRUE)) @@ -389,7 +389,7 @@ public class InstallWizardInfo extends WizardInfo { return true; return false; } - + public boolean isOCSPCertInstalledDone() { String str = (String)get(ConfigConstants.STAGE_OCSP_CERT_INSTALL); if (str != null && str.equals(ConfigConstants.TRUE)) @@ -531,7 +531,7 @@ public class InstallWizardInfo extends WizardInfo { if (str != null && str.equals(ConfigConstants.TRUE)) return true; return false; - } + } public String getSingleSignOnPassword() { return mPassword; @@ -629,7 +629,7 @@ public class InstallWizardInfo extends WizardInfo { val = "8001"; return val; } - + public void setEESecurePort(String port) { put(ConfigConstants.PR_EE_SECURE_PORT, port); } @@ -651,7 +651,7 @@ public class InstallWizardInfo extends WizardInfo { return true; return false; } - + public void setEEEnable(String enable) { put(ConfigConstants.PR_EE_PORT_ENABLE, enable); } @@ -835,7 +835,7 @@ public class InstallWizardInfo extends WizardInfo { public String getKeyCurveName() { String val = (String)get(ConfigConstants.PR_KEY_CURVENAME); - if (val ==null) + if (val ==null) val = "nistp521"; return val; } @@ -847,7 +847,7 @@ public class InstallWizardInfo extends WizardInfo { public String getKeyType() { String type = (String)get(ConfigConstants.PR_KEY_TYPE); // work around the historical mistake, - // not touching files around the places. + // not touching files around the places. if ( type == null || type.equals("")) { String certType = getCertType(); if (certType.equals(Constants.PR_CA_SIGNING_CERT)) { @@ -1214,7 +1214,7 @@ public class InstallWizardInfo extends WizardInfo { public void setInstalledKRA(String val) { put(ConfigConstants.PR_KRA, val); } - + public void setInstalledTKS(String val) { put(ConfigConstants.PR_TKS, val); } @@ -1403,7 +1403,7 @@ public class InstallWizardInfo extends WizardInfo { public void setTotalAgents(String val) { put(ConfigConstants.PR_AGENT_N, val); } - + public String getTotalAgents() { return (String)get(ConfigConstants.PR_AGENT_N); } @@ -1603,7 +1603,7 @@ public class InstallWizardInfo extends WizardInfo { public String getEndRequestNumber() { return (String)get(ConfigConstants.PR_ENDREQUEST_NUMBER); } - + public boolean isCloning() { String str = (String)get("cloning"); if (str != null && str.equals(ConfigConstants.TRUE)) @@ -1692,21 +1692,21 @@ public class InstallWizardInfo extends WizardInfo { return false; return true; } - + public boolean isRACertRequestSucc() { String str = (String)get(ConfigConstants.STAGE_RA_REQ_SUCCESS); if (str == null || str.equals("") || str.equals(ConfigConstants.FALSE)) return false; return true; } - + public boolean isKRACertRequestSucc() { String str = (String)get(ConfigConstants.STAGE_KRA_REQ_SUCCESS); if (str == null || str.equals("") || str.equals(ConfigConstants.FALSE)) return false; return true; } - + public boolean isSSLCertRequestSucc() { String str = (String)get(ConfigConstants.STAGE_SSL_REQ_SUCCESS); if (str == null || str.equals("") || str.equals(ConfigConstants.FALSE)) diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIAdminPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIAdminPage.java index 467632102..4d1681477 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIAdminPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIAdminPage.java @@ -36,12 +36,12 @@ import com.netscape.management.client.console.*; */ class WIAdminPage extends WizardBasePanel implements IWizardPanel { private JCheckBox mEnable; - private JTextField mIDText, mFullNameText, mPasswordText, + private JTextField mIDText, mFullNameText, mPasswordText, mPasswordAgainText; private static final String PANELNAME = "ADMININSTALLWIZARD"; private static final String HELPINDEX = "install-administrator-configuration-wizard-help"; - + WIAdminPage(JDialog parent) { super(PANELNAME); mParent = parent; @@ -68,12 +68,12 @@ class WIAdminPage extends WizardBasePanel implements IWizardPanel { return false; if (wizardInfo.isAdministratorDone()) return false; - mIDText.setText(wizardInfo.getCertAdminUid()); + mIDText.setText(wizardInfo.getCertAdminUid()); mFullNameText.setText(wizardInfo.getCertAdminName()); setBorder(makeTitledBorder(PANELNAME)); - - return true; + + return true; } public boolean validatePanel() { @@ -83,22 +83,22 @@ class WIAdminPage extends WizardBasePanel implements IWizardPanel { setErrorMessage("BLANKPASSWD"); return false; } - + if (!password.equals(passwordAgain)) { setErrorMessage("NOTSAMEPASSWD"); return false; } - + if (mIDText.getText().trim().equals("")) { setErrorMessage("BLANKADMINID"); return false; } - - if (mFullNameText.getText().trim().equals("")) { + + if (mFullNameText.getText().trim().equals("")) { setErrorMessage("BLANKADMINNAME"); return false; } - + return true; } @@ -111,9 +111,9 @@ class WIAdminPage extends WizardBasePanel implements IWizardPanel { rawData = rawData+"&"+ConfigConstants.PR_CERT_ADMINNAME+"="+mFullNameText.getText(); rawData = rawData+"&"+ConfigConstants.PR_CERT_ADMINPASSWD+"="+mPasswordAgainText.getText(); if (mEnable.isSelected()) { - rawData = rawData+"&"+ConfigConstants.PR_ENABLE+"=true"; + rawData = rawData+"&"+ConfigConstants.PR_ENABLE+"=true"; } else { - rawData = rawData+"&"+ConfigConstants.PR_ENABLE+"=false"; + rawData = rawData+"&"+ConfigConstants.PR_ENABLE+"=false"; } if (wizardInfo.getInternalDBPasswd() != null) rawData = rawData+"&"+ConfigConstants.PR_DB_PWD+"="+wizardInfo.getInternalDBPasswd(); @@ -155,7 +155,7 @@ class WIAdminPage extends WizardBasePanel implements IWizardPanel { COMPONENT_SPACE,COMPONENT_SPACE); gbc.gridwidth = gbc.REMAINDER; add(desc, gbc); - + CMSAdminUtil.resetGBC(gbc); JLabel idLbl = makeJLabel("ADMINID"); gbc.anchor = gbc.NORTHEAST; @@ -163,7 +163,7 @@ class WIAdminPage extends WizardBasePanel implements IWizardPanel { COMPONENT_SPACE,COMPONENT_SPACE); gbc.fill = gbc.NONE; add(idLbl, gbc); - + CMSAdminUtil.resetGBC(gbc); mIDText = makeJTextField(30); gbc.anchor = gbc.NORTHWEST; diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIAllCertsInstalledPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIAllCertsInstalledPage.java index b84460814..a9994a159 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIAllCertsInstalledPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIAllCertsInstalledPage.java @@ -40,7 +40,7 @@ class WIAllCertsInstalledPage extends WizardBasePanel implements IWizardPanel { private static final String PANELNAME = "ALLCERTSINSTALLEDWIZARD"; private static final String HELPINDEX = "install-allcerts-getinstalled-wizard-help"; - + WIAllCertsInstalledPage(JDialog parent) { super(PANELNAME); mParent = parent; @@ -77,7 +77,7 @@ class WIAllCertsInstalledPage extends WizardBasePanel implements IWizardPanel { } } } - } + } else if (wizardInfo.isRAInstalled() && wizardInfo.isKRAInstalled()) { if (raCertInstalled(wizardInfo) && kraCertInstalled(wizardInfo)) @@ -148,8 +148,8 @@ class WIAllCertsInstalledPage extends WizardBasePanel implements IWizardPanel { } setBorder(makeTitledBorder(PANELNAME)); mLabel.setVisible(false); - - return true; + + return true; } private boolean caCertInstalled(InstallWizardInfo wizardInfo) { @@ -202,8 +202,8 @@ class WIAllCertsInstalledPage extends WizardBasePanel implements IWizardPanel { rawData = rawData+"&"+ConfigConstants.OPTYPE+"="+OpDef.OP_READ; // #344791 - help server to make up the hostname /* - data.put(ConfigConstants.PR_HOST, - consoleInfo.get(ConfigConstants.PR_HOST)); + data.put(ConfigConstants.PR_HOST, + consoleInfo.get(ConfigConstants.PR_HOST)); */ startProgressStatus(); boolean ready = send(rawData, wizardInfo); diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WICACert1CustomPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WICACert1CustomPage.java index 6f8c26032..65264ab7f 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WICACert1CustomPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WICACert1CustomPage.java @@ -37,7 +37,7 @@ class WICACert1CustomPage extends WBaseKeyPage implements IWizardPanel { private static final String PANELNAME = "CACERT1CUSTOMWIZARD"; private static final String HELPINDEX = "configuration-kra-wizard-change-keyscheme-help"; - + WICACert1CustomPage() { super(PANELNAME); init(); @@ -48,7 +48,7 @@ class WICACert1CustomPage extends WBaseKeyPage implements IWizardPanel { } public boolean initializePanel(WizardInfo info) { - return true; + return true; } public boolean validatePanel() { diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WICACert1Page.java b/base/console/src/com/netscape/admin/certsrv/config/install/WICACert1Page.java index c3ca75420..8b511ced5 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WICACert1Page.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WICACert1Page.java @@ -37,18 +37,18 @@ class WICACert1Page extends WizardBasePanel implements IWizardPanel { private JComboBox mKeyLengthBox; //private JComboBox mTokenBox; //private JPasswordField mPasswordText; - + private static final String PANELNAME = "CACERT1WIZARD"; private static final String HELPINDEX = "configuration-kra-wizard-change-keyscheme-help"; - + WICACert1Page() { super(PANELNAME); init(); } public boolean initializePanel(WizardInfo info) { - return true; + return true; } public boolean isLastPage() { @@ -83,7 +83,7 @@ class WICACert1Page extends WizardBasePanel implements IWizardPanel { COMPONENT_SPACE,COMPONENT_SPACE); gbc.gridwidth = gbc.REMAINDER; add(desc, gbc); - + /* JTextArea desc1 = createTextArea( CMSAdminUtil.wrapText(mResource.getString( @@ -117,7 +117,7 @@ class WICACert1Page extends WizardBasePanel implements IWizardPanel { CMSAdminUtil.resetGBC(gbc); gbc.anchor = gbc.NORTHWEST; gbc.weightx = 1.0; - gbc.insets = new Insets(COMPONENT_SPACE,0, + gbc.insets = new Insets(COMPONENT_SPACE,0, COMPONENT_SPACE,COMPONENT_SPACE); gbc.gridwidth = gbc.REMAINDER; add(dummy, gbc); @@ -161,15 +161,15 @@ class WICACert1Page extends WizardBasePanel implements IWizardPanel { CMSAdminUtil.resetGBC(gbc); gbc.anchor = gbc.NORTHEAST; gbc.fill = gbc.NONE; - gbc.insets = new Insets(0, COMPONENT_SPACE, COMPONENT_SPACE, + gbc.insets = new Insets(0, COMPONENT_SPACE, COMPONENT_SPACE, COMPONENT_SPACE); panel.add(keyTypeLbl, gbc); - + mKeyTypeBox = makeJComboBox("KEYTYPE"); CMSAdminUtil.resetGBC(gbc); gbc.anchor = gbc.NORTHWEST; gbc.gridwidth = gbc.REMAINDER; - gbc.insets = new Insets(0, COMPONENT_SPACE, COMPONENT_SPACE, + gbc.insets = new Insets(0, COMPONENT_SPACE, COMPONENT_SPACE, COMPONENT_SPACE); gbc.fill = gbc.NONE; panel.add(mKeyTypeBox, gbc); diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WICACert2Page.java b/base/console/src/com/netscape/admin/certsrv/config/install/WICACert2Page.java index 79fc00b02..dce6afad5 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WICACert2Page.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WICACert2Page.java @@ -37,7 +37,7 @@ class WICACert2Page extends WBaseDNPage implements IWizardPanel { private static final String PANELNAME = "CACERT2WIZARD"; private static final String HELPINDEX = "configuration-kra-wizard-change-keyscheme-help"; - + WICACert2Page() { super(PANELNAME); init(); @@ -48,7 +48,7 @@ class WICACert2Page extends WBaseDNPage implements IWizardPanel { } public boolean initializePanel(WizardInfo info) { - return true; + return true; } public boolean validatePanel() { diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WICACertDNPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WICACertDNPage.java index 531de6be5..f224cb59e 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WICACertDNPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WICACertDNPage.java @@ -21,7 +21,7 @@ import com.netscape.admin.certsrv.wizard.*; import javax.swing.*; /** - * Subject DN page for CA signing certificate + * Subject DN page for CA signing certificate * * @author Christine Ho * @version $Revision$, $Date$ diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WICACertExtensionPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WICACertExtensionPage.java index 1a1a1a8b9..b1faf554a 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WICACertExtensionPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WICACertExtensionPage.java @@ -69,7 +69,7 @@ class WICACertExtensionPage extends WICertExtensionPage { mExtendedKeyCheckBox.setSelected(false); mKeyUsageBox.setSelected(true); } - + if (wizardInfo.isCAInstalled() && wizardInfo.isKRAInstalled()) mHelpIndex = CAKRAHELPINDEX; else diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WICACertPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WICACertPage.java index b962c6ca1..e92122bbf 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WICACertPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WICACertPage.java @@ -39,7 +39,7 @@ class WICACertPage extends WizardBasePanel implements IWizardPanel { private static final String PANELNAME = "CACERTWIZARD"; private static final String HELPINDEX = "configuration-kra-wizard-change-keyscheme-help"; - + WICACertPage() { super(PANELNAME); init(); @@ -50,7 +50,7 @@ class WICACertPage extends WizardBasePanel implements IWizardPanel { } public boolean initializePanel(WizardInfo info) { - return true; + return true; } public boolean validatePanel() { @@ -94,12 +94,12 @@ class WICACertPage extends WizardBasePanel implements IWizardPanel { mSubordinateBtn = makeJRadioButton("SUBORDINATE", false); CMSAdminUtil.resetGBC(gbc); gbc.weightx = 1.0; - gbc.insets = new Insets(0,COMPONENT_SPACE, COMPONENT_SPACE, + gbc.insets = new Insets(0,COMPONENT_SPACE, COMPONENT_SPACE, COMPONENT_SPACE); gbc.gridwidth = gbc.REMAINDER; add(mSubordinateBtn, gbc); - JTextArea desc1 = createTextArea( + JTextArea desc1 = createTextArea( CMSAdminUtil.wrapText(mResource.getString( "CACERTWIZARD_TEXT_HEADING1_LABEL"), 80), 2, 80); CMSAdminUtil.resetGBC(gbc); @@ -132,7 +132,7 @@ class WICACertPage extends WizardBasePanel implements IWizardPanel { gbc.insets = new Insets(0, COMPONENT_SPACE, 0, COMPONENT_SPACE); add(mUrlBtn, gbc); - + mUrlText = makeJTextField(30); CMSAdminUtil.resetGBC(gbc); gbc.gridwidth = gbc.REMAINDER; diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WICACertSubmitPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WICACertSubmitPage.java index efa2d8b0c..299f5947b 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WICACertSubmitPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WICACertSubmitPage.java @@ -55,8 +55,8 @@ class WICACertSubmitPage extends WICertSubmitPage implements IWizardPanel { if (wizardInfo.isCloning() && wizardInfo.isCACloningDone()) return false; - - wizardInfo.put(Constants.PR_CERTIFICATE_TYPE, + + wizardInfo.put(Constants.PR_CERTIFICATE_TYPE, Constants.PR_CA_SIGNING_CERT); if (!wizardInfo.isCAInstalled() || wizardInfo.isMigrationEnable() || wizardInfo.isSelfSignedCACertDone() || wizardInfo.isCACertRequestDone() || diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WICACertValidityPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WICACertValidityPage.java index cb8fa550d..3948c908f 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WICACertValidityPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WICACertValidityPage.java @@ -38,7 +38,7 @@ class WICACertValidityPage extends WICertValidityPage { private static final String PANELNAME = "INSTALLCACERTVALIDWIZARD"; private static final String CAHELPINDEX = "install-cacert-validity-wizard-help"; private static final String CAKRAHELPINDEX = "install-cakracert-validity-wizard-help"; - + WICACertValidityPage(JDialog parent) { super(PANELNAME); mParent = parent; diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WICAKeyPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WICAKeyPage.java index accc866b2..8c413ca01 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WICAKeyPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WICAKeyPage.java @@ -82,10 +82,10 @@ class WICAKeyPage extends WIKeyPage implements IWizardPanel { int counts = mKeyTypeBox.getItemCount(); if (counts == 1) - mKeyTypeBox.addItem("DSA"); + mKeyTypeBox.addItem("DSA"); if (mWizardInfo.isCAInstalled() && mWizardInfo.isKRAInstalled()) { - if (mWizardInfo.isCACertLocalCA()) + if (mWizardInfo.isCACertLocalCA()) mHelpIndex = CAKRALOCALHELPINDEX; else mHelpIndex = CAKRAREMOTEHELPINDEX; @@ -102,7 +102,7 @@ class WICAKeyPage extends WIKeyPage implements IWizardPanel { public void getUpdateInfo(WizardInfo info) { super.getUpdateInfo(info); mWizardInfo.setCATokenName(mWizardInfo.getTokenName()); - + if (mPassword.isEditable()) { String tokenname = mWizardInfo.getCATokenName(); diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WICAMessageDigestPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WICAMessageDigestPage.java index e19fc6586..bfe1e595f 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WICAMessageDigestPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WICAMessageDigestPage.java @@ -41,7 +41,7 @@ import com.netscape.management.client.util.*; * @see com.netscape.admin.certsrv.config.install */ class WICAMessageDigestPage extends WMessageDigestPage { - + private static final String PANELNAME = "INSTALLCAMESSAGEDIGESTWIZARD"; WICAMessageDigestPage(JDialog parent) { @@ -67,12 +67,12 @@ class WICAMessageDigestPage extends WMessageDigestPage { mCAKeyType = wizardInfo.getCAKeyType(); - return super.initializePanel(info); + return super.initializePanel(info); } public void getUpdateInfo(WizardInfo info) { InstallWizardInfo wizardInfo = (InstallWizardInfo)info; - if (mDSAHashTypeBox.isVisible()) + if (mDSAHashTypeBox.isVisible()) wizardInfo.setHashType((String)mDSAHashTypeBox.getSelectedItem()); else wizardInfo.setHashType((String)mRSAHashTypeBox.getSelectedItem()); diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WICAOCSPServicePage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WICAOCSPServicePage.java index 9245b14bf..d2f810414 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WICAOCSPServicePage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WICAOCSPServicePage.java @@ -67,7 +67,7 @@ class WICAOCSPServicePage extends WizardBasePanel implements IWizardPanel { String serial; InstallWizardInfo wizardInfo = (InstallWizardInfo)info; setBorder(makeTitledBorder(PANELNAME)); - // If ca's signing cert is not generated, + // If ca's signing cert is not generated, // we allow "back" to modify the panel if (!wizardInfo.isCAInstalled()) return false; @@ -78,10 +78,10 @@ class WICAOCSPServicePage extends WizardBasePanel implements IWizardPanel { mDesc.setText(mResource.getString(PANELNAME+"_TEXT_HEADING_LABEL")); - return true; + return true; } - public boolean validatePanel() + public boolean validatePanel() { mEnable = mOCSPServiceCB.isSelected(); return true; diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WICASerialNumberPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WICASerialNumberPage.java index 3b1653d7f..19295344c 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WICASerialNumberPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WICASerialNumberPage.java @@ -45,15 +45,15 @@ class WICASerialNumberPage extends WizardBasePanel implements IWizardPanel { private String mEndSerialNumber = null; private JTextField mEndSerialNumberText; private JLabel mEndSerialNumberLabel; - + private String mbeginRequestNumber; private JTextField mbeginRequestNumberText; private JLabel mbeginRequestNumberLabel; - + private String mEndRequestNumber = null; private JTextField mEndRequestNumberText; private JLabel mEndRequestNumberLabel; - + private static final String DEFAULT_SERIAL_NUMBER = "1"; private static final String PANELNAME = "CASERIALNUMBERWIZARD"; private static final String HELPINDEX = @@ -80,9 +80,9 @@ class WICASerialNumberPage extends WizardBasePanel implements IWizardPanel { String serial; InstallWizardInfo wizardInfo = (InstallWizardInfo)info; setBorder(makeTitledBorder(PANELNAME)); - // If ca's signing cert is not generated, + // If ca's signing cert is not generated, // we allow "back" to modify the panel - + if (!wizardInfo.isCAInstalled() || wizardInfo.isMigrationEnable() || wizardInfo.isSelfSignedCACertDone() || wizardInfo.isCACertRequestDone() ||wizardInfo.isNumberPageDone()) @@ -91,7 +91,7 @@ class WICASerialNumberPage extends WizardBasePanel implements IWizardPanel { if (wizardInfo.isCloning()) mDesc.setText(mResource.getString(PANELNAME+"_TEXT_HEADING_LABEL") + mResource.getString(PANELNAME+"_TEXT_MORE_LABEL")); - else + else mDesc.setText(mResource.getString(PANELNAME+"_TEXT_HEADING_LABEL")); @@ -104,14 +104,14 @@ class WICASerialNumberPage extends WizardBasePanel implements IWizardPanel { mbeginRequestNumberText.setText(serial); else mbeginRequestNumberText.setText(DEFAULT_SERIAL_NUMBER); - + if ((serial = wizardInfo.getCAEndSerialNumber()) != null) mEndSerialNumberText.setText(serial); if ((serial = wizardInfo.getEndRequestNumber()) != null) mEndRequestNumberText.setText(serial); - - return true; + + return true; } private String hexToDecimal(String hex, boolean isHex) @@ -191,7 +191,7 @@ class WICASerialNumberPage extends WizardBasePanel implements IWizardPanel { else mEndRequestNumber = ""; } - + if (num != null && endNum != null && num.compareTo(endNum) > 0) { setErrorMessage("Ending number must be greater than starting number."); return false; @@ -210,13 +210,13 @@ class WICASerialNumberPage extends WizardBasePanel implements IWizardPanel { public boolean concludePanel(WizardInfo info) { InstallWizardInfo wizardInfo = (InstallWizardInfo)info; - if (mSerialNumber != null && !mSerialNumber.equals("")) + if (mSerialNumber != null && !mSerialNumber.equals("")) wizardInfo.setCASerialNumber(mSerialNumber); else { wizardInfo.setCASerialNumber(DEFAULT_SERIAL_NUMBER); mSerialNumber = DEFAULT_SERIAL_NUMBER; } - if (mbeginRequestNumber != null && !mbeginRequestNumber.equals("")) + if (mbeginRequestNumber != null && !mbeginRequestNumber.equals("")) wizardInfo.setRequestNumber(mbeginRequestNumber); else { wizardInfo.setRequestNumber(DEFAULT_SERIAL_NUMBER); @@ -225,16 +225,16 @@ class WICASerialNumberPage extends WizardBasePanel implements IWizardPanel { String rawData = ConfigConstants.TASKID+"="+TaskId.TASK_SET_CA_SERIAL; rawData = rawData+"&"+ConfigConstants.OPTYPE+"="+OpDef.OP_MODIFY; - if (mSerialNumber != null && !mSerialNumber.equals("")) + if (mSerialNumber != null && !mSerialNumber.equals("")) rawData = rawData+"&"+ConfigConstants.PR_CA_SERIAL_NUMBER+"="+ mSerialNumber; - if (mEndSerialNumber != null && !mEndSerialNumber.equals("")) + if (mEndSerialNumber != null && !mEndSerialNumber.equals("")) rawData = rawData+"&"+ConfigConstants.PR_CA_ENDSERIAL_NUMBER+"="+ mEndSerialNumber; - if (mbeginRequestNumber != null && !mbeginRequestNumber.equals("")) + if (mbeginRequestNumber != null && !mbeginRequestNumber.equals("")) rawData = rawData+"&"+ConfigConstants.PR_REQUEST_NUMBER+"="+ mbeginRequestNumber; - if (mEndRequestNumber != null && !mEndSerialNumber.equals("")) + if (mEndRequestNumber != null && !mEndSerialNumber.equals("")) rawData = rawData+"&"+ConfigConstants.PR_ENDREQUEST_NUMBER+"="+ mEndRequestNumber; if (wizardInfo.getInternalDBPasswd() != null) @@ -322,7 +322,7 @@ class WICASerialNumberPage extends WizardBasePanel implements IWizardPanel { gbc.insets = new Insets(0, COMPONENT_SPACE, COMPONENT_SPACE, COMPONENT_SPACE); add(mbeginRequestNumberLabel, gbc); - + CMSAdminUtil.resetGBC(gbc); mbeginRequestNumberText = makeJTextField(30); gbc.anchor = gbc.NORTHWEST; @@ -331,7 +331,7 @@ class WICASerialNumberPage extends WizardBasePanel implements IWizardPanel { gbc.insets = new Insets(0, COMPONENT_SPACE, COMPONENT_SPACE, COMPONENT_SPACE); add(mbeginRequestNumberText, gbc); - + CMSAdminUtil.resetGBC(gbc); mEndRequestNumberLabel = makeJLabel("ENDREQUESTNUMBER"); gbc.anchor = gbc.EAST; @@ -339,7 +339,7 @@ class WICASerialNumberPage extends WizardBasePanel implements IWizardPanel { gbc.insets = new Insets(COMPONENT_SPACE, COMPONENT_SPACE, COMPONENT_SPACE, COMPONENT_SPACE); add(mEndRequestNumberLabel, gbc); - + CMSAdminUtil.resetGBC(gbc); mEndRequestNumberText = makeJTextField(30); gbc.anchor = gbc.NORTHWEST; @@ -348,7 +348,7 @@ class WICASerialNumberPage extends WizardBasePanel implements IWizardPanel { gbc.insets = new Insets(COMPONENT_SPACE, COMPONENT_SPACE, COMPONENT_SPACE, COMPONENT_SPACE); add(mEndRequestNumberText, gbc); - + /* CMSAdminUtil.resetGBC(gbc); mSerialNumberLabel = makeJLabel("PWD"); @@ -357,7 +357,7 @@ class WICASerialNumberPage extends WizardBasePanel implements IWizardPanel { gbc.insets = new Insets(0, 0, COMPONENT_SPACE, COMPONENT_SPACE); add(mSerialNumberLabel, gbc); - + CMSAdminUtil.resetGBC(gbc); mSerialNumberText = makeJSerialNumberField(30); gbc.anchor = gbc.NORTHWEST; diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WICertDNPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WICertDNPage.java index cf7e623ad..f541a0389 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WICertDNPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WICertDNPage.java @@ -66,7 +66,7 @@ class WICertDNPage extends WBaseDNPage { populateDN(str); */ - return true; + return true; } public boolean validatePanel() { @@ -84,7 +84,7 @@ class WICertDNPage extends WBaseDNPage { } else { str = str2; } - + if (str.equals("")) { setErrorMessage("BLANKFIELD"); return false; @@ -123,7 +123,7 @@ class WICertDNPage extends WBaseDNPage { wizardInfo.addEntry(Constants.PR_SUBJECT_NAME, str); try { - connection.validate(DestDef.DEST_SERVER_ADMIN, + connection.validate(DestDef.DEST_SERVER_ADMIN, ScopeDef.SC_SUBJECT_NAME, nvps); } catch (EAdminException e) { //showErrorDialog(e.toString()); diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WICertExtensionPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WICertExtensionPage.java index 8c989685a..f44b1a3ec 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WICertExtensionPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WICertExtensionPage.java @@ -29,10 +29,10 @@ import com.netscape.admin.certsrv.config.*; * @version $Revision$, $Date$ * @see com.netscape.admin.certsrv.config.install */ -class WICertExtensionPage extends WBaseCertExtensionPage implements +class WICertExtensionPage extends WBaseCertExtensionPage implements IWizardPanel { protected String mHelpIndex; - + WICertExtensionPage(String panelName) { super(panelName); mPanelName = panelName; @@ -45,7 +45,7 @@ class WICertExtensionPage extends WBaseCertExtensionPage implements public boolean initializePanel(WizardInfo info) { setBorder(makeTitledBorder(mPanelName)); - return super.initializePanel(info); + return super.initializePanel(info); } public boolean concludePanel(WizardInfo info) { @@ -60,7 +60,7 @@ class WICertExtensionPage extends WBaseCertExtensionPage implements rawData = rawData+ConfigConstants.OPTYPE+"="+OpDef.OP_MODIFY; rawData = rawData+ConfigConstants.PR_CERTIFICATE_EXTENSION+"="+ mMIMEText.getText().trim(); - + startProgressStatus(); ready = send(rawData, wizardInfo); endProgressStatus(); @@ -105,14 +105,14 @@ class WICertExtensionPage extends WBaseCertExtensionPage implements if (mMIMECheckBox.isSelected()) nvps.put(Constants.PR_DER_EXTENSION, mMIMEText.getText().trim()); - wizardInfo.put(wizardInfo.ALL_CERT_INFO, nvps); + wizardInfo.put(wizardInfo.ALL_CERT_INFO, nvps); } mModified = true; return ready; } - private void addValidityPeriod(InstallWizardInfo wizardInfo, + private void addValidityPeriod(InstallWizardInfo wizardInfo, NameValuePairs nvps) { nvps.put(Constants.PR_BEGIN_YEAR, wizardInfo.getBeginYear()); nvps.put(Constants.PR_BEGIN_MONTH, wizardInfo.getBeginMonth()); @@ -143,7 +143,7 @@ class WICertExtensionPage extends WBaseCertExtensionPage implements } private void addExtendedKey(NameValuePairs nvps) { - if (mSSLClient.isSelected()) + if (mSSLClient.isSelected()) nvps.put(Constants.PR_SSL_CLIENT_BIT, Constants.TRUE); if (mSSLServer.isSelected()) nvps.put(Constants.PR_SSL_SERVER_BIT, Constants.TRUE); diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WICertRequestPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WICertRequestPage.java index d4926e1e9..c891c1a0a 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WICertRequestPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WICertRequestPage.java @@ -38,7 +38,7 @@ class WICertRequestPage extends WBaseCertRequestPage implements IWizardPanel { private static final String PANELNAME = "CERTREQUESTWIZARD"; private static final String HELPINDEX = "configuration-kra-wizard-change-keyscheme-help"; - + WICertRequestPage() { super(PANELNAME); init(); @@ -49,7 +49,7 @@ class WICertRequestPage extends WBaseCertRequestPage implements IWizardPanel { } public boolean initializePanel(WizardInfo info) { - return true; + return true; } public boolean validatePanel() { diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WICertSetupStatusPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WICertSetupStatusPage.java index ff9ca97a6..eaa52c6a4 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WICertSetupStatusPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WICertSetupStatusPage.java @@ -80,7 +80,7 @@ class WICertSetupStatusPage extends WizardBasePanel implements IWizardPanel { desc.setText(mResource.getString( "INSTALLCONFIGSTATUSWIZARD_OCSPTEXT_DESC_LABEL")); } else if (wizardInfo.isRAInstalled()) { - if (wizardInfo.isKRAInstalled()) + if (wizardInfo.isKRAInstalled()) desc.setText(mResource.getString( "INSTALLCONFIGSTATUSWIZARD_RAKRATEXT_DESC_LABEL")); else @@ -98,7 +98,7 @@ class WICertSetupStatusPage extends WizardBasePanel implements IWizardPanel { CMSAdmin admin = (CMSAdmin)wizardInfo.get("CMSAdmin"); IPage viewInstance = (IPage)wizardInfo.get("viewInstance"); - if (viewInstance != null) + if (viewInstance != null) admin.updateMenu(viewInstance); return true; } diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WICertSubmitPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WICertSubmitPage.java index 18beac219..3fcd127fc 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WICertSubmitPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WICertSubmitPage.java @@ -42,7 +42,7 @@ class WICertSubmitPage extends WizardBasePanel implements IWizardPanel { protected String mHelpIndex; private String mPanelName; protected InstallWizardInfo mWizardInfo; - + WICertSubmitPage(String panelName) { super(panelName); mPanelName = panelName; @@ -57,13 +57,13 @@ class WICertSubmitPage extends WizardBasePanel implements IWizardPanel { setBorder(makeTitledBorder(mPanelName)); mWizardInfo = (InstallWizardInfo)info; if (!mWizardInfo.getCertType().equals(Constants.PR_CA_SIGNING_CERT)) { - if (mWizardInfo.isCACertRequestDone() && + if (mWizardInfo.isCACertRequestDone() && !mWizardInfo.isCACertInstalledDone()) { mSubordinateButton.setSelected(true); mSelfButton.setSelected(false); } } - return true; + return true; } public boolean validatePanel() { @@ -88,7 +88,7 @@ class WICertSubmitPage extends WizardBasePanel implements IWizardPanel { mPanelName+"_TEXT_HEADING_LABEL")); gbc.anchor = gbc.NORTHWEST; gbc.weightx = 1.0; - gbc.insets = new Insets(COMPONENT_SPACE,COMPONENT_SPACE, + gbc.insets = new Insets(COMPONENT_SPACE,COMPONENT_SPACE, COMPONENT_SPACE,COMPONENT_SPACE); gbc.gridwidth = gbc.REMAINDER; add(mLabel, gbc); @@ -96,7 +96,7 @@ class WICertSubmitPage extends WizardBasePanel implements IWizardPanel { mSelfButton = makeJRadioButton("SELF", true); gbc.anchor = gbc.NORTHWEST; gbc.weightx = 1.0; - gbc.insets = new Insets(COMPONENT_SPACE,COMPONENT_SPACE, + gbc.insets = new Insets(COMPONENT_SPACE,COMPONENT_SPACE, COMPONENT_SPACE,COMPONENT_SPACE); gbc.gridwidth = gbc.REMAINDER; add(mSelfButton, gbc); @@ -104,7 +104,7 @@ class WICertSubmitPage extends WizardBasePanel implements IWizardPanel { mSubordinateButton = makeJRadioButton("SUB", false); gbc.anchor = gbc.NORTHWEST; gbc.weightx = 1.0; - gbc.insets = new Insets(0,COMPONENT_SPACE, + gbc.insets = new Insets(0,COMPONENT_SPACE, COMPONENT_SPACE,COMPONENT_SPACE); gbc.gridwidth = gbc.REMAINDER; add(mSubordinateButton, gbc); @@ -129,7 +129,7 @@ class WICertSubmitPage extends WizardBasePanel implements IWizardPanel { public void actionPerformed(ActionEvent e) { if (!mWizardInfo.getCertType().equals(Constants.PR_CA_SIGNING_CERT)) { if (e.getSource().equals(mSelfButton)) { - if (mWizardInfo.isCACertRequestDone() && + if (mWizardInfo.isCACertRequestDone() && !mWizardInfo.isCACertInstalledDone()) { String errorMsg = mResource.getString(mPanelName+"_LABEL_INCOMPLETE_LABEL"); JOptionPane.showMessageDialog(mParent, errorMsg, "Warning", diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WICertValidityPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WICertValidityPage.java index 8f2acd493..477fed1ae 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WICertValidityPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WICertValidityPage.java @@ -41,7 +41,7 @@ import com.netscape.management.client.console.*; class WICertValidityPage extends WBaseValidityPage implements IWizardPanel { private String mPanelName; protected String mHelpIndex; - + WICertValidityPage(String panelName) { super(panelName); mPanelName = panelName; @@ -111,7 +111,7 @@ class WICertValidityPage extends WBaseValidityPage implements IWizardPanel { setErrorMessage(mResource.getString(mPanelName+"_ERROR1")); return false; } - } else + } else setErrorMessage(str); return ready; } diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WICloneCAKeyCertPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WICloneCAKeyCertPage.java index d5722df32..8f2ee32af 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WICloneCAKeyCertPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WICloneCAKeyCertPage.java @@ -41,10 +41,10 @@ class WICloneCAKeyCertPage extends WizardBasePanel implements IWizardPanel { protected InstallWizardInfo mWizardInfo; protected JComboBox mCANicknameBox, mOCSPNicknameBox, mSSLNicknameBox; private static final String PANELNAME = "CLONECAKEYCERTWIZARD"; - private static final String CAHELPINDEX = + private static final String CAHELPINDEX = "install-cacertclone-wizard-help"; - + WICloneCAKeyCertPage(JDialog parent) { super(PANELNAME); mParent = parent; @@ -77,8 +77,8 @@ class WICloneCAKeyCertPage extends WizardBasePanel implements IWizardPanel { return false; if (wizardInfo.isCACloningDone()) return false; - if (!wizardInfo.isCAInstalled() || wizardInfo.isMigrationEnable() - || wizardInfo.isSelfSignedCACertDone() + if (!wizardInfo.isCAInstalled() || wizardInfo.isMigrationEnable() + || wizardInfo.isSelfSignedCACertDone() || wizardInfo.isCACertRequestDone()) return false; @@ -116,7 +116,7 @@ class WICloneCAKeyCertPage extends WizardBasePanel implements IWizardPanel { mOCSPNicknameBox.addItem(s1); } - return true; + return true; } public boolean validatePanel() { @@ -195,7 +195,7 @@ class WICloneCAKeyCertPage extends WizardBasePanel implements IWizardPanel { PANELNAME+"_TEXT_HEADING_LABEL")); gbc.anchor = gbc.NORTHWEST; gbc.weightx = 1.0; - gbc.insets = new Insets(COMPONENT_SPACE,COMPONENT_SPACE, + gbc.insets = new Insets(COMPONENT_SPACE,COMPONENT_SPACE, COMPONENT_SPACE,COMPONENT_SPACE); gbc.gridwidth = gbc.REMAINDER; add(heading, gbc); @@ -207,7 +207,7 @@ class WICloneCAKeyCertPage extends WizardBasePanel implements IWizardPanel { gbc.insets = new Insets(COMPONENT_SPACE, 4*COMPONENT_SPACE, COMPONENT_SPACE,COMPONENT_SPACE); add(caNicknameLbl, gbc); - + CMSAdminUtil.resetGBC(gbc); mCANicknameBox = new JComboBox(); gbc.anchor = gbc.NORTHWEST; diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WICloneKRAKeyCertPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WICloneKRAKeyCertPage.java index bea79b2e0..e32c367a2 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WICloneKRAKeyCertPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WICloneKRAKeyCertPage.java @@ -41,10 +41,10 @@ class WICloneKRAKeyCertPage extends WizardBasePanel implements IWizardPanel { protected InstallWizardInfo mWizardInfo; protected JComboBox mKRANicknameBox, mStorageNicknameBox, mSSLNicknameBox; private static final String PANELNAME = "CLONEKRAKEYCERTWIZARD"; - private static final String KRAHELPINDEX = + private static final String KRAHELPINDEX = "install-kracertclone-wizard-help"; - + WICloneKRAKeyCertPage(JDialog parent) { super(PANELNAME); mParent = parent; @@ -117,7 +117,7 @@ class WICloneKRAKeyCertPage extends WizardBasePanel implements IWizardPanel { mKRANicknameBox.addItem(s1); } - return true; + return true; } public boolean validatePanel() { @@ -196,7 +196,7 @@ class WICloneKRAKeyCertPage extends WizardBasePanel implements IWizardPanel { PANELNAME+"_TEXT_HEADING_LABEL")); gbc.anchor = gbc.NORTHWEST; gbc.weightx = 1.0; - gbc.insets = new Insets(COMPONENT_SPACE,COMPONENT_SPACE, + gbc.insets = new Insets(COMPONENT_SPACE,COMPONENT_SPACE, COMPONENT_SPACE,COMPONENT_SPACE); gbc.gridwidth = gbc.REMAINDER; add(heading, gbc); @@ -208,7 +208,7 @@ class WICloneKRAKeyCertPage extends WizardBasePanel implements IWizardPanel { gbc.insets = new Insets(COMPONENT_SPACE, 4*COMPONENT_SPACE, COMPONENT_SPACE,COMPONENT_SPACE); add(kraNicknameLbl, gbc); - + CMSAdminUtil.resetGBC(gbc); mKRANicknameBox = new JComboBox(); gbc.anchor = gbc.NORTHWEST; diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WICloneMasterPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WICloneMasterPage.java index c8498f306..f67253173 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WICloneMasterPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WICloneMasterPage.java @@ -140,9 +140,9 @@ class WICloneMasterPage extends WizardBasePanel implements IWizardPanel { Debug.println("WICloneMasterPage: in concludePanel"); InstallWizardInfo wizardInfo = (InstallWizardInfo)info; wizardInfo.setCLAHost(mHost); - wizardInfo.setCLAPort(mPort); - wizardInfo.setCLAPortEE(mPortEE); - wizardInfo.setCLATimeout(mTimeout); + wizardInfo.setCLAPort(mPort); + wizardInfo.setCLAPortEE(mPortEE); + wizardInfo.setCLATimeout(mTimeout); ConsoleInfo consoleInfo = wizardInfo.getAdminConsoleInfo(); CMSConfigCert configCertCgi = new CMSConfigCert(); configCertCgi.initialize(wizardInfo); @@ -202,7 +202,7 @@ class WICloneMasterPage extends WizardBasePanel implements IWizardPanel { data.put(ConfigConstants.CLA_TIMEOUT, wizardInfo.getCLATimeout()); data.put(ConfigConstants.CLONE_CA, ConfigConstants.TRUE); - } else { + } else { Debug.println("WICloneMasterPage: Cloning page yes NOT selected"); // admin will have to manually add if not through wizard } @@ -214,7 +214,7 @@ class WICloneMasterPage extends WizardBasePanel implements IWizardPanel { CMSMessageBox dlg = new CMSMessageBox(mAdminFrame, "CGITASK", "CONFIGDB"); boolean ready = configCertCgi.configCert(data); dlg.setVisible(false); - + endProgressStatus(); if (!ready) { @@ -354,7 +354,7 @@ class WICloneMasterPage extends WizardBasePanel implements IWizardPanel { COMPONENT_SPACE); add(mTimeunitLbl, gbc); */ - + JLabel label = new JLabel(" "); CMSAdminUtil.resetGBC(gbc); gbc.anchor = gbc.WEST; diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WICloneOCSPKeyCertPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WICloneOCSPKeyCertPage.java index 9061b5f7a..94aee9a08 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WICloneOCSPKeyCertPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WICloneOCSPKeyCertPage.java @@ -41,10 +41,10 @@ class WICloneOCSPKeyCertPage extends WizardBasePanel implements IWizardPanel { protected InstallWizardInfo mWizardInfo; protected JComboBox mOCSPNicknameBox, mSSLNicknameBox; private static final String PANELNAME = "CLONEOCSPKEYCERTWIZARD"; - private static final String OCSPHELPINDEX = + private static final String OCSPHELPINDEX = "install-ocspcertclone-wizard-help"; - + WICloneOCSPKeyCertPage(JDialog parent) { super(PANELNAME); mParent = parent; @@ -100,7 +100,7 @@ class WICloneOCSPKeyCertPage extends WizardBasePanel implements IWizardPanel { mOCSPNicknameBox.addItem(s1); } - return true; + return true; } public boolean validatePanel() { diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIClonePage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIClonePage.java index cdfa23199..56d903852 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIClonePage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIClonePage.java @@ -40,7 +40,7 @@ class WIClonePage extends WizardBasePanel implements IWizardPanel { private static final String PANELNAME = "CLONEINSTALLWIZARD"; private static final String HELPINDEX = "install-general-intro-wizard-help"; - + WIClonePage(JDialog parent) { super(PANELNAME); mParent = parent; @@ -61,14 +61,14 @@ class WIClonePage extends WizardBasePanel implements IWizardPanel { public boolean initializePanel(WizardInfo info) { InstallWizardInfo wizardInfo = (InstallWizardInfo)info; setBorder(makeTitledBorder(PANELNAME)); - + if //(wizardInfo.isKRACertLocalCA() || !wizardInfo.isInstallCertNow() || (!wizardInfo.isCloning()||wizardInfo.isClonePageDone()) return false; - + mAdminFrame = wizardInfo.getAdminFrame(); - return true; + return true; } public boolean validatePanel() { @@ -88,9 +88,9 @@ class WIClonePage extends WizardBasePanel implements IWizardPanel { boolean ready = send(rawData, wizardInfo); Debug.println("WIClonePage:concludePanel() 2"); - + endProgressStatus(); - + if (!ready) { String str = getErrorMessage(wizardInfo); if (str == null) diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WICloneRAKeyCertPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WICloneRAKeyCertPage.java index 7194ee3cc..63cffdea0 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WICloneRAKeyCertPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WICloneRAKeyCertPage.java @@ -41,10 +41,10 @@ class WICloneRAKeyCertPage extends WizardBasePanel implements IWizardPanel { protected InstallWizardInfo mWizardInfo; protected JComboBox mRANicknameBox, mSSLNicknameBox; private static final String PANELNAME = "CLONERAKEYCERTWIZARD"; - private static final String CAHELPINDEX = + private static final String CAHELPINDEX = "install-racertclone-wizard-help"; - + WICloneRAKeyCertPage(JDialog parent) { super(PANELNAME); mParent = parent; @@ -102,7 +102,7 @@ class WICloneRAKeyCertPage extends WizardBasePanel implements IWizardPanel { mSSLNicknameBox.addItem(s1); } - return true; + return true; } public boolean validatePanel() { @@ -137,10 +137,10 @@ class WICloneRAKeyCertPage extends WizardBasePanel implements IWizardPanel { data.put(ConfigConstants.PR_CERT_INSTANCE_NAME, consoleInfo.get(ConfigConstants.PR_CERT_INSTANCE_NAME)); data.put(ConfigConstants.PR_CLONE_RA_TOKEN_NAME, mRATokenname); - data.put(ConfigConstants.PR_CLONE_RA_NICKNAME, + data.put(ConfigConstants.PR_CLONE_RA_NICKNAME, mRANicknameBox.getSelectedItem()); data.put(ConfigConstants.PR_CLONE_SSL_TOKEN_NAME, mSSLTokenname); - data.put(ConfigConstants.PR_CLONE_SSL_NICKNAME, + data.put(ConfigConstants.PR_CLONE_SSL_NICKNAME, mSSLNicknameBox.getSelectedItem()); startProgressStatus(); @@ -173,7 +173,7 @@ class WICloneRAKeyCertPage extends WizardBasePanel implements IWizardPanel { PANELNAME+"_TEXT_HEADING_LABEL")); gbc.anchor = gbc.NORTHWEST; gbc.weightx = 1.0; - gbc.insets = new Insets(COMPONENT_SPACE,COMPONENT_SPACE, + gbc.insets = new Insets(COMPONENT_SPACE,COMPONENT_SPACE, COMPONENT_SPACE,COMPONENT_SPACE); gbc.gridwidth = gbc.REMAINDER; add(heading, gbc); @@ -185,7 +185,7 @@ class WICloneRAKeyCertPage extends WizardBasePanel implements IWizardPanel { gbc.insets = new Insets(COMPONENT_SPACE, 4*COMPONENT_SPACE, COMPONENT_SPACE,COMPONENT_SPACE); add(raNicknameLbl, gbc); - + CMSAdminUtil.resetGBC(gbc); mRANicknameBox = new JComboBox(); gbc.anchor = gbc.NORTHWEST; diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WICloneTKSKeyCertPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WICloneTKSKeyCertPage.java index baeaaec8d..52c103521 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WICloneTKSKeyCertPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WICloneTKSKeyCertPage.java @@ -40,10 +40,10 @@ class WICloneTKSKeyCertPage extends WizardBasePanel implements IWizardPanel { protected InstallWizardInfo mWizardInfo; protected JComboBox mSSLNicknameBox; private static final String PANELNAME = "CLONETKSKEYCERTWIZARD"; - private static final String TKSHELPINDEX = + private static final String TKSHELPINDEX = "install-tkscertclone-wizard-help"; - + WICloneTKSKeyCertPage(JDialog parent) { super(PANELNAME); mParent = parent; @@ -86,7 +86,7 @@ class WICloneTKSKeyCertPage extends WizardBasePanel implements IWizardPanel { mSSLNicknameBox.addItem(s1); } - return true; + return true; } public boolean validatePanel() { diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIConfigWebServerPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIConfigWebServerPage.java index ad9e8b4d6..41bed883a 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIConfigWebServerPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIConfigWebServerPage.java @@ -83,20 +83,20 @@ class WIConfigWebServerPage extends WizardBasePanel implements IWizardPanel { data.put(ConfigConstants.TASKID,TaskId.TASK_CONFIG_WEB_SERVER); data.put(ConfigConstants.OPTYPE, OpDef.OP_MODIFY); - data.put(ConfigConstants.PR_CERT_INSTANCE_NAME, + data.put(ConfigConstants.PR_CERT_INSTANCE_NAME, consoleInfo.get(ConfigConstants.PR_CERT_INSTANCE_NAME)); - data.put(ConfigConstants.PR_WEB_SERVERROOT, + data.put(ConfigConstants.PR_WEB_SERVERROOT, mServerRootText.getText().trim()); data.put(ConfigConstants.PR_USER_ID, mUserIDText.getText().trim()); - + startProgressStatus(); CMSMessageBox dlg = new CMSMessageBox(mAdminFrame, "CGITASK", "CREATEWEBSERVER"); - + boolean ready = configCertCgi.configCert(data); dlg.setVisible(false); - + endProgressStatus(); if (!ready) { diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WICreateInternalDBPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WICreateInternalDBPage.java index 4aee62e27..7b494205f 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WICreateInternalDBPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WICreateInternalDBPage.java @@ -82,7 +82,7 @@ class WICreateInternalDBPage extends WizardBasePanel implements IWizardPanel { enableRemoteDB(mEnable.isSelected()); } } - + private void enableLocalDB(boolean e) { Color c; @@ -156,15 +156,15 @@ class WICreateInternalDBPage extends WizardBasePanel implements IWizardPanel { mPasswordText.setText(""); mPasswordAgainText.setText(""); mRemoteBaseDNText.setText("o=netscapeCertificateServer"); - mRemoteDatabaseText.setText("userRoot"); + mRemoteDatabaseText.setText("userRoot"); mRemoteBindAsText.setText("cn=directory manager"); enableLocalDB(mEnable.isSelected()); enableRemoteDB(mEnable.isSelected()); mLocal.setEnabled(mEnable.isSelected()); mRemote.setEnabled(mEnable.isSelected()); - return true; + return true; } - + return false; } @@ -270,10 +270,10 @@ class WICreateInternalDBPage extends WizardBasePanel implements IWizardPanel { wizardInfo.setDBBindDN(mBindAsText.getText().trim()); wizardInfo.setDBName(mInstanceIDText.getText().trim()); } - + startProgressStatus(); //CMSMessageBox dlg = new CMSMessageBox(mAdminFrame, "CGITASK", "CREATEDB"); - + boolean ready = send(rawData, wizardInfo); if (ready) { @@ -282,7 +282,7 @@ class WICreateInternalDBPage extends WizardBasePanel implements IWizardPanel { ready = send(rawData, wizardInfo); } //dlg.setVisible(false); - + endProgressStatus(); if (!ready) { @@ -332,7 +332,7 @@ class WICreateInternalDBPage extends WizardBasePanel implements IWizardPanel { gbc.anchor = gbc.NORTHWEST; gbc.fill = gbc.NONE; gbc.gridwidth = gbc.REMAINDER; - gbc.insets = new Insets(COMPONENT_SPACE, 2*COMPONENT_SPACE, + gbc.insets = new Insets(COMPONENT_SPACE, 2*COMPONENT_SPACE, COMPONENT_SPACE, COMPONENT_SPACE); add(mLocal, gbc); @@ -355,13 +355,13 @@ class WICreateInternalDBPage extends WizardBasePanel implements IWizardPanel { mActiveColor = mInstanceIDText.getBackground(); CMSAdminUtil.resetGBC(gbc); - JLabel portNumber = makeJLabel("PORT"); + JLabel portNumber = makeJLabel("PORT"); gbc.anchor = gbc.NORTHEAST; gbc.fill = gbc.NONE; gbc.insets = new Insets(0, 0, COMPONENT_SPACE,COMPONENT_SPACE); add(portNumber, gbc); - + CMSAdminUtil.resetGBC(gbc); mPortText = makeJTextField(10); gbc.anchor = gbc.WEST; @@ -370,7 +370,7 @@ class WICreateInternalDBPage extends WizardBasePanel implements IWizardPanel { gbc.insets = new Insets(0, COMPONENT_SPACE, COMPONENT_SPACE,COMPONENT_SPACE); add(mPortText, gbc); - + CMSAdminUtil.resetGBC(gbc); mBindAsLabel = makeJLabel("ADMIN"); //gbc.anchor = gbc.NORTHWEST; @@ -396,7 +396,7 @@ class WICreateInternalDBPage extends WizardBasePanel implements IWizardPanel { gbc.insets = new Insets(0, 0, COMPONENT_SPACE, COMPONENT_SPACE); add(mPasswordLabel, gbc); - + CMSAdminUtil.resetGBC(gbc); mPasswordText = makeJPasswordField(30); gbc.anchor = gbc.WEST; @@ -428,7 +428,7 @@ class WICreateInternalDBPage extends WizardBasePanel implements IWizardPanel { gbc.anchor = gbc.NORTHWEST; gbc.fill = gbc.NONE; gbc.gridwidth = gbc.REMAINDER; - gbc.insets = new Insets(COMPONENT_SPACE, 2*COMPONENT_SPACE, + gbc.insets = new Insets(COMPONENT_SPACE, 2*COMPONENT_SPACE, COMPONENT_SPACE, COMPONENT_SPACE); add(mRemote, gbc); @@ -454,13 +454,13 @@ class WICreateInternalDBPage extends WizardBasePanel implements IWizardPanel { add(mRemoteHostText, gbc); CMSAdminUtil.resetGBC(gbc); - JLabel portNumber1 = makeJLabel("PORT"); + JLabel portNumber1 = makeJLabel("PORT"); gbc.anchor = gbc.NORTHEAST; gbc.fill = gbc.NONE; gbc.insets = new Insets(0, 0, COMPONENT_SPACE,COMPONENT_SPACE); add(portNumber1, gbc); - + CMSAdminUtil.resetGBC(gbc); mRemotePortText = makeJTextField(10); gbc.anchor = gbc.WEST; @@ -469,7 +469,7 @@ class WICreateInternalDBPage extends WizardBasePanel implements IWizardPanel { gbc.insets = new Insets(0, COMPONENT_SPACE, COMPONENT_SPACE,COMPONENT_SPACE); add(mRemotePortText, gbc); - + CMSAdminUtil.resetGBC(gbc); JLabel baseDNLbl = makeJLabel("BASEDN"); gbc.anchor = gbc.NORTHEAST; @@ -512,7 +512,7 @@ class WICreateInternalDBPage extends WizardBasePanel implements IWizardPanel { gbc.insets = new Insets(0, 0, COMPONENT_SPACE, COMPONENT_SPACE); add(passwordLabel, gbc); - + CMSAdminUtil.resetGBC(gbc); mRemotePasswordText = makeJPasswordField(30); gbc.anchor = gbc.WEST; @@ -546,7 +546,7 @@ class WICreateInternalDBPage extends WizardBasePanel implements IWizardPanel { gbc.insets = new Insets(0, 0, COMPONENT_SPACE, COMPONENT_SPACE); add(dummy1, gbc); - + CMSAdminUtil.resetGBC(gbc); mSchema = makeJCheckBox("SCHEMA", true); gbc.anchor = gbc.NORTHWEST; @@ -570,8 +570,8 @@ class WICreateInternalDBPage extends WizardBasePanel implements IWizardPanel { wizardInfo.setDBCreated(ConfigConstants.TRUE); wizardInfo.setDBCreateNow(ConfigConstants.FALSE); wizardInfo.setCreateDBDone(ConfigConstants.TRUE); - - if (mEnable.isSelected()) + + if (mEnable.isSelected()) wizardInfo.setCloneDBCreated("true"); else { wizardInfo.setUpdateDBInfoDone(ConfigConstants.TRUE); diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIDBEnrollPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIDBEnrollPage.java index d63a07129..e07ba063e 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIDBEnrollPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIDBEnrollPage.java @@ -50,7 +50,7 @@ class WIDBEnrollPage extends WizardBasePanel implements IWizardPanel { } public boolean initializePanel(WizardInfo info) { - return true; + return true; } public boolean validatePanel() { @@ -112,7 +112,7 @@ class WIDBEnrollPage extends WizardBasePanel implements IWizardPanel { gbc.insets = new Insets(COMPONENT_SPACE,COMPONENT_SPACE, 0, COMPONENT_SPACE); panel.add(hostName, gbc); - + CMSAdminUtil.resetGBC(gbc); mHostNameText = makeJTextField(30); gbc.anchor = gbc.NORTHWEST; @@ -121,7 +121,7 @@ class WIDBEnrollPage extends WizardBasePanel implements IWizardPanel { COMPONENT_SPACE); gbc.gridwidth = gbc.REMAINDER; panel.add(mHostNameText, gbc); - + /* CMSAdminUtil.resetGBC(gbc); JTextArea dummy = createTextArea(" ", 2, 5); @@ -132,13 +132,13 @@ class WIDBEnrollPage extends WizardBasePanel implements IWizardPanel { */ CMSAdminUtil.resetGBC(gbc); - JLabel portNumber = makeJLabel("PORT"); + JLabel portNumber = makeJLabel("PORT"); gbc.anchor = gbc.NORTHEAST; gbc.fill = gbc.NONE; gbc.insets = new Insets(COMPONENT_SPACE, COMPONENT_SPACE, COMPONENT_SPACE,COMPONENT_SPACE); panel.add(portNumber, gbc); - + CMSAdminUtil.resetGBC(gbc); mPortText = makeJTextField(10); gbc.anchor = gbc.NORTHWEST; @@ -147,7 +147,7 @@ class WIDBEnrollPage extends WizardBasePanel implements IWizardPanel { gbc.insets = new Insets(COMPONENT_SPACE, COMPONENT_SPACE, COMPONENT_SPACE,COMPONENT_SPACE); panel.add(mPortText, gbc); - + CMSAdminUtil.resetGBC(gbc); JLabel versionLbl = makeJLabel("VERSION"); gbc.anchor = gbc.NORTHEAST; diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIDisplayCACertPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIDisplayCACertPage.java index 442fa2b29..b1b4d28ec 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIDisplayCACertPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIDisplayCACertPage.java @@ -32,7 +32,7 @@ class WIDisplayCACertPage extends WIDisplayCertPage { private static final String PANELNAME = "INSTALLDISPLAYCACERTWIZARD"; private static final String CAHELPINDEX = "install-cacert-display-wizard-help"; private static final String CAKRAHELPINDEX = "install-cakracert-display-wizard-help"; - + WIDisplayCACertPage(JDialog parent) { super(PANELNAME); mParent = parent; @@ -68,7 +68,7 @@ class WIDisplayCACertPage extends WIDisplayCertPage { ConfigConstants.TRUE); return true; } - + return false; } } diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIDisplayCertPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIDisplayCertPage.java index 30e0bac13..ca180ad42 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIDisplayCertPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIDisplayCertPage.java @@ -42,7 +42,7 @@ class WIDisplayCertPage extends WizardBasePanel implements IWizardPanel { private JTextField mCertNameField; protected String mPanelName; protected String mHelpIndex; - + WIDisplayCertPage(String panelName) { super(panelName); mPanelName = panelName; @@ -80,7 +80,7 @@ class WIDisplayCertPage extends WizardBasePanel implements IWizardPanel { certType); } } - if ((tokenName != null) && + if ((tokenName != null) && !(tokenName.equalsIgnoreCase(Constants.PR_INTERNAL_TOKEN_NAME))) { Debug.println("tokenName="+tokenName); mCertNameField.setText(tokenName+":"+wizardInfo.getNickname()); @@ -88,7 +88,7 @@ class WIDisplayCertPage extends WizardBasePanel implements IWizardPanel { Debug.println("tokenName=null"); mCertNameField.setText(wizardInfo.getNickname()); } - return true; + return true; } private String reformat(String content, String certOrder) { @@ -140,7 +140,7 @@ class WIDisplayCertPage extends WizardBasePanel implements IWizardPanel { } else setErrorMessage(str); } - + return ready; } diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIDisplayKRACertPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIDisplayKRACertPage.java index cae06e6cf..1973a6902 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIDisplayKRACertPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIDisplayKRACertPage.java @@ -33,7 +33,7 @@ class WIDisplayKRACertPage extends WIDisplayCertPage { private static final String KRAHELPINDEX = "install-kracert-display-wizard-help"; private static final String CAKRAHELPINDEX = "install-cakra-kracert-display-wizard-help"; private static final String RAKRAHELPINDEX = "install-rakra-kracert-display-wizard-help"; - + WIDisplayKRACertPage(JDialog parent) { super(PANELNAME); mParent = parent; @@ -70,7 +70,7 @@ class WIDisplayKRACertPage extends WIDisplayCertPage { ConfigConstants.TRUE); return true; } - + return false; } } diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIDisplayOCSPCertPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIDisplayOCSPCertPage.java index e9db0e436..dac57fe7d 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIDisplayOCSPCertPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIDisplayOCSPCertPage.java @@ -32,7 +32,7 @@ import com.netscape.management.client.util.*; class WIDisplayOCSPCertPage extends WIDisplayCertPage { private static final String PANELNAME = "INSTALLDISPLAYOCSPCERTWIZARD"; private static final String OCSPHELPINDEX = "install-ocspcert-display-wizard-help"; - + WIDisplayOCSPCertPage(JDialog parent) { super(PANELNAME); mParent = parent; @@ -64,7 +64,7 @@ class WIDisplayOCSPCertPage extends WIDisplayCertPage { ConfigConstants.TRUE); return true; } - + return false; } } diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIDisplayRACertPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIDisplayRACertPage.java index 891e68038..ac8128fca 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIDisplayRACertPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIDisplayRACertPage.java @@ -32,7 +32,7 @@ class WIDisplayRACertPage extends WIDisplayCertPage { private static final String PANELNAME = "INSTALLDISPLAYRACERTWIZARD"; private static final String RAHELPINDEX = "install-racert-display-wizard-help"; private static final String RAKRAHELPINDEX = "install-rakracert-display-wizard-help"; - + WIDisplayRACertPage(JDialog parent) { super(PANELNAME); mParent = parent; @@ -66,7 +66,7 @@ class WIDisplayRACertPage extends WIDisplayCertPage { ConfigConstants.TRUE); return true; } - + return false; } } diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIDisplaySSLCertPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIDisplaySSLCertPage.java index 3a791b4ed..0bbbb4af8 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIDisplaySSLCertPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIDisplaySSLCertPage.java @@ -31,7 +31,7 @@ import com.netscape.certsrv.common.*; class WIDisplaySSLCertPage extends WIDisplayCertPage { private static final String PANELNAME = "INSTALLDISPLAYSSLCERTWIZARD"; private static final String HELPINDEX = "install-sslcert-display-wizard-help"; - + WIDisplaySSLCertPage(JDialog parent) { super(PANELNAME); mHelpIndex = HELPINDEX; @@ -63,7 +63,7 @@ class WIDisplaySSLCertPage extends WIDisplayCertPage { ConfigConstants.TRUE); return true; } - + return false; } } diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIExistingDBPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIExistingDBPage.java index 93bbde830..5dd302dba 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIExistingDBPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIExistingDBPage.java @@ -66,16 +66,16 @@ class WIExistingDBPage extends WizardBasePanel implements IWizardPanel { public void actionPerformed(ActionEvent e) { } - + public boolean initializePanel(WizardInfo info) { InstallWizardInfo wizardInfo = (InstallWizardInfo)info; if (wizardInfo.isCloning() && !wizardInfo.isConnectDBDone()) { setBorder(makeTitledBorder(PANELNAME)); mRMBindAsText.setText(wizardInfo.getDBBindDN()); - return true; + return true; } - + return false; } @@ -88,7 +88,7 @@ class WIExistingDBPage extends WizardBasePanel implements IWizardPanel { if (rmhostname.equals("")) { setErrorMessage("EMPTYHOST"); return false; - } + } if (rmport.equals("")) { setErrorMessage("EMPTYPORT"); @@ -129,10 +129,10 @@ class WIExistingDBPage extends WizardBasePanel implements IWizardPanel { rawData = rawData+"&"+ConfigConstants.PR_DB_NAME+"="+mRMBaseDNText.getText(); wizardInfo.setInternalDBPasswd(mRMPasswordText.getText().trim()); wizardInfo.setDBBindDN(mRMBindAsText.getText().trim()); - + startProgressStatus(); //CMSMessageBox dlg = new CMSMessageBox(mAdminFrame, "CGITASK", "CONNECTDB"); - + boolean ready = send(rawData, wizardInfo); if (ready) { @@ -141,7 +141,7 @@ class WIExistingDBPage extends WizardBasePanel implements IWizardPanel { ready = send(rawData, wizardInfo); } //dlg.setVisible(false); - + endProgressStatus(); if (!ready) { @@ -195,13 +195,13 @@ class WIExistingDBPage extends WizardBasePanel implements IWizardPanel { add(mRMHostText, gbc); CMSAdminUtil.resetGBC(gbc); - JLabel portNumber = makeJLabel("REMOTEPORT"); + JLabel portNumber = makeJLabel("REMOTEPORT"); gbc.anchor = gbc.NORTHEAST; gbc.fill = gbc.NONE; gbc.insets = new Insets(0, 0, COMPONENT_SPACE,COMPONENT_SPACE); add(portNumber, gbc); - + CMSAdminUtil.resetGBC(gbc); mRMPortText = makeJTextField(10); gbc.anchor = gbc.WEST; @@ -210,7 +210,7 @@ class WIExistingDBPage extends WizardBasePanel implements IWizardPanel { gbc.insets = new Insets(0, COMPONENT_SPACE, COMPONENT_SPACE,COMPONENT_SPACE); add(mRMPortText, gbc); - + CMSAdminUtil.resetGBC(gbc); JLabel mRMBindAsLabel = makeJLabel("REMOTEADMIN"); //gbc.anchor = gbc.NORTHWEST; @@ -236,7 +236,7 @@ class WIExistingDBPage extends WizardBasePanel implements IWizardPanel { gbc.insets = new Insets(0, 0, COMPONENT_SPACE, COMPONENT_SPACE); add(mRMPasswordLabel, gbc); - + CMSAdminUtil.resetGBC(gbc); mRMPasswordText = makeJPasswordField(30); gbc.anchor = gbc.WEST; diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIGenCAKeyCertPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIGenCAKeyCertPage.java index 2bbb2f570..41d361f6d 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIGenCAKeyCertPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIGenCAKeyCertPage.java @@ -26,7 +26,7 @@ import com.netscape.certsrv.common.*; /** * Generate the CA signing certificate - * + * * @author Christine Ho * @version $Revision$, $Date$ * @see com.netscape.admin.certsrv.keycert @@ -52,7 +52,7 @@ class WIGenCAKeyCertPage extends WIGenKeyCertPage { if (wizardInfo.isCloning() && wizardInfo.isCACloningDone()) return false; - if (!wizardInfo.isCACertLocalCA() || !wizardInfo.isCAInstalled() || + if (!wizardInfo.isCACertLocalCA() || !wizardInfo.isCAInstalled() || wizardInfo.isMigrationEnable() || wizardInfo.isSelfSignedCACertDone() || wizardInfo.isCACertRequestDone() || wizardInfo.isCACertInstalledDone()) return false; diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIGenCAKeyCertReqPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIGenCAKeyCertReqPage.java index c1f3c11ea..56ed8522c 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIGenCAKeyCertReqPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIGenCAKeyCertReqPage.java @@ -55,7 +55,7 @@ class WIGenCAKeyCertReqPage extends WIGenKeyCertReqPage { if (wizardInfo.isCACertLocalCA() || !wizardInfo.isCAInstalled() || wizardInfo.isMigrationEnable() || wizardInfo.isSelfSignedCACertDone() || (wizardInfo.isCACertRequestDone() && - !wizardInfo.isCACertRequestBack()) || + !wizardInfo.isCACertRequestBack()) || wizardInfo.isCACertInstalledDone()) return false; diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIGenKRAKeyCertPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIGenKRAKeyCertPage.java index 98ef24812..ce55fd720 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIGenKRAKeyCertPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIGenKRAKeyCertPage.java @@ -26,7 +26,7 @@ import com.netscape.certsrv.common.*; /** * Generate the KRA transport certificate - * + * * @author Christine Ho * @version $Revision$, $Date$ * @see com.netscape.admin.certsrv.keycert diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIGenKRAKeyCertReqPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIGenKRAKeyCertReqPage.java index f6e5df9fe..f2f598b21 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIGenKRAKeyCertReqPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIGenKRAKeyCertReqPage.java @@ -54,7 +54,7 @@ class WIGenKRAKeyCertReqPage extends WIGenKeyCertReqPage { return false; if (wizardInfo.isKRACertLocalCA() || !wizardInfo.isKRAInstalled() || (wizardInfo.isKRACertRequestDone() && - !wizardInfo.isKRACertRequestBack()) || + !wizardInfo.isKRACertRequestBack()) || wizardInfo.isKRALocalCertDone() || wizardInfo.isKRACertInstalledDone()) return false; diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIGenKeyCertPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIGenKeyCertPage.java index 8272d44df..7a905999e 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIGenKeyCertPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIGenKeyCertPage.java @@ -34,7 +34,7 @@ class WIGenKeyCertPage extends WizardBasePanel implements IWizardPanel { private JTextArea desc; private String mPanelName; protected String mHelpIndex; - + WIGenKeyCertPage(String panelName) { super(panelName); mPanelName = panelName; @@ -51,7 +51,7 @@ class WIGenKeyCertPage extends WizardBasePanel implements IWizardPanel { String str = mResource.getString(mPanelName+"_TEXT_NEWKEY_LABEL"); desc.setText(str); - return true; + return true; } public boolean validatePanel() { @@ -86,15 +86,15 @@ class WIGenKeyCertPage extends WizardBasePanel implements IWizardPanel { rawData = rawData+"&"+name+"="+value; } } - + startProgressStatus(); - + //CMSMessageBox dlg = new CMSMessageBox(mAdminFrame, "CGITASK", "CREATECERT"); - + boolean ready = send(rawData, wizardInfo); - + //dlg.setVisible(false); - + endProgressStatus(); if (!ready) { diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIGenKeyCertReqPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIGenKeyCertReqPage.java index b5c0378c3..cb7100d16 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIGenKeyCertReqPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIGenKeyCertReqPage.java @@ -33,14 +33,14 @@ import com.netscape.certsrv.common.*; class WIGenKeyCertReqPage extends WizardBasePanel implements IWizardPanel { private JTextArea desc; private String mPanelName; - private static final String CERTREQ_BEGIN_HEADING = + private static final String CERTREQ_BEGIN_HEADING = "-----BEGIN NEW CERTIFICATE REQUEST-----"; - private static final String CERTREQ_END_HEADING = + private static final String CERTREQ_END_HEADING = "-----END NEW CERTIFICATE REQUEST-----"; private static final int LINE_COUNT = 76; protected String mHelpIndex; protected String mTokenName; - + protected JRadioButton mPKCS10; protected JRadioButton mCMC; protected String mSigningCert = null; @@ -126,7 +126,7 @@ class WIGenKeyCertReqPage extends WizardBasePanel implements IWizardPanel { CMSAdminUtil.repaintComp(mPKCS10); } - return true; + return true; } public boolean validatePanel() { @@ -206,12 +206,12 @@ class WIGenKeyCertReqPage extends WizardBasePanel implements IWizardPanel { return ready; } - + private String reformat(String pkcs) { int beginIndex = CERTREQ_BEGIN_HEADING.length(); int endIndex = CERTREQ_END_HEADING.length(); int totalLen = pkcs.length(); - String content = pkcs.substring(beginIndex, totalLen-endIndex); + String content = pkcs.substring(beginIndex, totalLen-endIndex); String result = CERTREQ_BEGIN_HEADING+"\n"; int index = 0; while (content.length() >= LINE_COUNT) { @@ -273,7 +273,7 @@ class WIGenKeyCertReqPage extends WizardBasePanel implements IWizardPanel { ButtonGroup group = new ButtonGroup(); group.add(mCMC); group.add(mPKCS10); - + CMSAdminUtil.resetGBC(gbc); JLabel d1 = new JLabel(" "); gbc.anchor = gbc.NORTHWEST; @@ -282,7 +282,7 @@ class WIGenKeyCertReqPage extends WizardBasePanel implements IWizardPanel { gbc.gridheight = gbc.REMAINDER; gbc.gridwidth = gbc.REMAINDER; add(d1, gbc); - + super.init(); } diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIGenOCSPKeyCertPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIGenOCSPKeyCertPage.java index 2e2fbdbed..d5beea55f 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIGenOCSPKeyCertPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIGenOCSPKeyCertPage.java @@ -27,7 +27,7 @@ import com.netscape.management.client.util.*; /** * Generate the OCSP signing certificate - * + * * @author Christine Ho * @version $Revision$, $Date$ * @see com.netscape.admin.certsrv.keycert @@ -51,7 +51,7 @@ class WIGenOCSPKeyCertPage extends WIGenKeyCertPage { InstallWizardInfo wizardInfo = (InstallWizardInfo)info; Debug.println("+++++++++++++++++++++++++++++=WIGenOCSPKeyCertPage "); - if (!wizardInfo.isOCSPInstalled()) + if (!wizardInfo.isOCSPInstalled()) return false; mHelpIndex = OCSPHELPINDEX; diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIGenOCSPKeyCertReqPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIGenOCSPKeyCertReqPage.java index 7c27f673d..e23fa9d9c 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIGenOCSPKeyCertReqPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIGenOCSPKeyCertReqPage.java @@ -54,7 +54,7 @@ class WIGenOCSPKeyCertReqPage extends WIGenKeyCertReqPage { if (wizardInfo.isOCSPCertLocalCA() || !wizardInfo.isOCSPInstalled() || (wizardInfo.isOCSPCertRequestDone() && - !wizardInfo.isOCSPCertRequestBack()) || + !wizardInfo.isOCSPCertRequestBack()) || wizardInfo.isOCSPLocalCertDone() || wizardInfo.isOCSPCertInstalledDone()) return false; diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIGenRAKeyCertPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIGenRAKeyCertPage.java index 05859e54c..6b8a8477a 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIGenRAKeyCertPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIGenRAKeyCertPage.java @@ -26,7 +26,7 @@ import com.netscape.certsrv.common.*; /** * Generate the RA signing certificate - * + * * @author Christine Ho * @version $Revision$, $Date$ * @see com.netscape.admin.certsrv.keycert diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIGenRAKeyCertReqPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIGenRAKeyCertReqPage.java index 89aa21f14..4517a236e 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIGenRAKeyCertReqPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIGenRAKeyCertReqPage.java @@ -53,7 +53,7 @@ class WIGenRAKeyCertReqPage extends WIGenKeyCertReqPage { return false; if (wizardInfo.isRACertLocalCA() || !wizardInfo.isRAInstalled() || (wizardInfo.isRACertRequestDone() && - !wizardInfo.isRACertRequestBack()) || + !wizardInfo.isRACertRequestBack()) || wizardInfo.isRALocalCertDone() || wizardInfo.isRACertInstalledDone()) return false; diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIGenSSLKeyCertReqPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIGenSSLKeyCertReqPage.java index 58a85f790..ecf1afbe9 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIGenSSLKeyCertReqPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIGenSSLKeyCertReqPage.java @@ -54,7 +54,7 @@ class WIGenSSLKeyCertReqPage extends WIGenKeyCertReqPage { return false; if (wizardInfo.isSSLCertLocalCA() || wizardInfo.isMigrationEnable() || (wizardInfo.isSSLCertRequestDone() && - !wizardInfo.isSSLCertRequestBack()) || + !wizardInfo.isSSLCertRequestBack()) || wizardInfo.isSSLLocalCertDone() || wizardInfo.isSSLCertInstalledDone()) return false; diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIGenServerKeyCertPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIGenServerKeyCertPage.java index e93c378f6..bde7f8d4e 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIGenServerKeyCertPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIGenServerKeyCertPage.java @@ -26,7 +26,7 @@ import com.netscape.certsrv.common.*; /** * Generate the SSL server certificate - * + * * @author Christine Ho * @version $Revision$, $Date$ * @see com.netscape.admin.certsrv.keycert diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIInstallCert1Page.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIInstallCert1Page.java index 240134536..b3a36cd70 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIInstallCert1Page.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIInstallCert1Page.java @@ -25,8 +25,8 @@ import com.netscape.admin.certsrv.wizard.*; import com.netscape.certsrv.common.*; /** - * This page is to install the certificate in the internal token. The user can - * import the cert from the file or paste the Base 64 encoded blob in the + * This page is to install the certificate in the internal token. The user can + * import the cert from the file or paste the Base 64 encoded blob in the * text area. * * @author Christine Ho @@ -42,7 +42,7 @@ class WIInstallCert1Page extends WizardBasePanel implements IWizardPanel { private static final String PANELNAME = "INSTALLCERT1WIZARD"; private static final String HELPINDEX = "configuration-kra-wizard-change-keyscheme-help"; - + WIInstallCert1Page() { super(PANELNAME); init(); @@ -53,7 +53,7 @@ class WIInstallCert1Page extends WizardBasePanel implements IWizardPanel { } public boolean initializePanel(WizardInfo info) { - return true; + return true; } public boolean validatePanel() { @@ -124,7 +124,7 @@ class WIInstallCert1Page extends WizardBasePanel implements IWizardPanel { mBase64Text = new JTextArea(null, null, 0, 0); mBase64Text.setLineWrap(true); mBase64Text.setWrapStyleWord(true); - JScrollPane scrollPane = new JScrollPane(mBase64Text, + JScrollPane scrollPane = new JScrollPane(mBase64Text, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS); scrollPane.setPreferredSize(new Dimension(50, 20)); @@ -132,7 +132,7 @@ class WIInstallCert1Page extends WizardBasePanel implements IWizardPanel { gbc.anchor = gbc.NORTHWEST; gbc.weightx = 1.0; gbc.weighty = 1.0; - gbc.insets = new Insets(COMPONENT_SPACE, COMPONENT_SPACE, 0, + gbc.insets = new Insets(COMPONENT_SPACE, COMPONENT_SPACE, 0, COMPONENT_SPACE); gbc.fill = gbc.BOTH; gbc.gridwidth = gbc.REMAINDER; diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIInstallCert2Page.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIInstallCert2Page.java index fc9eaacb0..543925c1d 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIInstallCert2Page.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIInstallCert2Page.java @@ -37,7 +37,7 @@ class WIInstallCert2Page extends WizardBasePanel implements IWizardPanel { private static final String PANELNAME = "INSTALLCERT2WIZARD"; private static final String HELPINDEX = "configuration-kra-wizard-change-keyscheme-help"; - + WIInstallCert2Page() { super(PANELNAME); init(); @@ -48,7 +48,7 @@ class WIInstallCert2Page extends WizardBasePanel implements IWizardPanel { } public boolean initializePanel(WizardInfo info) { - return true; + return true; } public boolean validatePanel() { @@ -97,14 +97,14 @@ class WIInstallCert2Page extends WizardBasePanel implements IWizardPanel { gbc.weightx = 1.0; gbc.fill = gbc.BOTH; add(subjectScrollPane, gbc); - + JTextArea issueText = new JTextArea(null, null, 0, 0); JScrollPane issueScrollPane = new JScrollPane(issueText, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS); //issueScrollPane.setPreferredSize(new Dimension(50, 30)); CMSAdminUtil.resetGBC(gbc); - gbc.insets = new Insets(0, COMPONENT_SPACE, COMPONENT_SPACE, + gbc.insets = new Insets(0, COMPONENT_SPACE, COMPONENT_SPACE, COMPONENT_SPACE); gbc.anchor = gbc.NORTHWEST; gbc.weighty = 1.0; diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIInstallCertStatusPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIInstallCertStatusPage.java index 860e5b60e..1af8353be 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIInstallCertStatusPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIInstallCertStatusPage.java @@ -49,7 +49,7 @@ class WIInstallCertStatusPage extends WizardBasePanel implements IWizardPanel { protected String mHelpIndex; protected String mCertChain; protected String mCertFilePath; - + WIInstallCertStatusPage(String panelName) { super(panelName); mPanelName = panelName; @@ -61,7 +61,7 @@ class WIInstallCertStatusPage extends WizardBasePanel implements IWizardPanel { InstallWizardInfo wizardInfo = (InstallWizardInfo)info; String str = mResource.getString(mPanelName+"_TEXT_DESC_LABEL"); desc.setText(str); - return true; + return true; } public boolean isLastPage() { @@ -118,9 +118,9 @@ class WIInstallCertStatusPage extends WizardBasePanel implements IWizardPanel { return true; } else { setErrorMessage(mResource.getString(mPanelName+"_ERROR1")); - return false; + return false; } - } else + } else setErrorMessage(str); } return ready; diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIInstallIntroPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIInstallIntroPage.java index 29ddd0a46..dde93d3f4 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIInstallIntroPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIInstallIntroPage.java @@ -43,7 +43,7 @@ class WIInstallIntroPage extends WizardBasePanel implements IWizardPanel { protected JRadioButton mNo; protected String mPanelName; protected String mHelpIndex; - + WIInstallIntroPage(String panelName) { super(panelName); mPanelName = panelName; @@ -57,7 +57,7 @@ class WIInstallIntroPage extends WizardBasePanel implements IWizardPanel { public boolean initializePanel(WizardInfo info) { setBorder(makeTitledBorder(mPanelName)); - return true; + return true; } public boolean validatePanel() { @@ -83,26 +83,26 @@ class WIInstallIntroPage extends WizardBasePanel implements IWizardPanel { gbc.anchor = gbc.NORTHWEST; gbc.weightx = 1.0; gbc.gridwidth = gbc.REMAINDER; - gbc.insets = new Insets(COMPONENT_SPACE,COMPONENT_SPACE, + gbc.insets = new Insets(COMPONENT_SPACE,COMPONENT_SPACE, COMPONENT_SPACE,COMPONENT_SPACE); add(heading, gbc); mNo = makeJRadioButton("NO", false); CMSAdminUtil.resetGBC(gbc); gbc.anchor = gbc.NORTHWEST; - gbc.insets = new Insets(COMPONENT_SPACE,COMPONENT_SPACE, + gbc.insets = new Insets(COMPONENT_SPACE,COMPONENT_SPACE, COMPONENT_SPACE,COMPONENT_SPACE); gbc.gridwidth = gbc.REMAINDER; add(mNo, gbc); - + mYes = makeJRadioButton("YES", true); CMSAdminUtil.resetGBC(gbc); gbc.anchor = gbc.NORTHWEST; - gbc.insets = new Insets(0,COMPONENT_SPACE, + gbc.insets = new Insets(0,COMPONENT_SPACE, COMPONENT_SPACE,COMPONENT_SPACE); gbc.gridwidth = gbc.REMAINDER; add(mYes, gbc); - + JLabel dummy = new JLabel(""); CMSAdminUtil.resetGBC(gbc); gbc.anchor = gbc.NORTHWEST; @@ -112,7 +112,7 @@ class WIInstallIntroPage extends WizardBasePanel implements IWizardPanel { gbc.insets = new Insets(COMPONENT_SPACE,COMPONENT_SPACE, COMPONENT_SPACE,COMPONENT_SPACE); add(dummy, gbc); - + ButtonGroup buttonGrp = new ButtonGroup(); buttonGrp.add(mYes); buttonGrp.add(mNo); diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIInstallKRACertStatusPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIInstallKRACertStatusPage.java index d33601151..2587c791a 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIInstallKRACertStatusPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIInstallKRACertStatusPage.java @@ -53,7 +53,7 @@ class WIInstallKRACertStatusPage extends WIInstallCertStatusPage { !wizardInfo.isKRAInstalled() || wizardInfo.isKRACertChainImportDone()) return false; - if (wizardInfo.hasEntireKRAChain()) + if (wizardInfo.hasEntireKRAChain()) return false; wizardInfo.setCertType(Constants.PR_KRA_TRANSPORT_CERT); diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIInstallOCSPCertStatusPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIInstallOCSPCertStatusPage.java index c98b7b045..5f44ceb06 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIInstallOCSPCertStatusPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIInstallOCSPCertStatusPage.java @@ -53,7 +53,7 @@ class WIInstallOCSPCertStatusPage extends WIInstallCertStatusPage { !wizardInfo.isOCSPInstalled() || wizardInfo.isOCSPCertChainImportDone()) return false; - if (wizardInfo.hasEntireOCSPChain()) + if (wizardInfo.hasEntireOCSPChain()) return false; wizardInfo.setCertType(Constants.PR_OCSP_SIGNING_CERT); diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIInstallRACertStatusPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIInstallRACertStatusPage.java index 326f5067a..b3fc368fb 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIInstallRACertStatusPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIInstallRACertStatusPage.java @@ -52,7 +52,7 @@ class WIInstallRACertStatusPage extends WIInstallCertStatusPage { !wizardInfo.isRAInstalled() || wizardInfo.isRACertChainImportDone()) return false; - if (wizardInfo.hasEntireRAChain()) + if (wizardInfo.hasEntireRAChain()) return false; wizardInfo.setCertType(Constants.PR_RA_SIGNING_CERT); diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIInternalDBInfoPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIInternalDBInfoPage.java index 5338e820d..be0bd1f20 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIInternalDBInfoPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIInternalDBInfoPage.java @@ -28,7 +28,7 @@ import com.netscape.admin.certsrv.task.*; import com.netscape.management.client.console.*; /** - * This panel asks for the information of the current internal database. + * This panel asks for the information of the current internal database. * * @author Christine Ho * @version $Revision$, $Date$ @@ -66,7 +66,7 @@ class WIInternalDBInfoPage extends WizardBasePanel implements IWizardPanel { return false; setBorder(makeTitledBorder(PANELNAME)); mBindAsText.setText(wizardInfo.getDBBindDN()); - return true; + return true; } public boolean validatePanel() { @@ -149,7 +149,7 @@ class WIInternalDBInfoPage extends WizardBasePanel implements IWizardPanel { gbc.insets = new Insets(0, 0, COMPONENT_SPACE, COMPONENT_SPACE); add(mPasswordLabel, gbc); - + CMSAdminUtil.resetGBC(gbc); mPasswordText = makeJPasswordField(30); gbc.anchor = gbc.NORTHWEST; diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIInternalDBPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIInternalDBPage.java index 936d252d8..c6ab70d8b 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIInternalDBPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIInternalDBPage.java @@ -69,7 +69,7 @@ class WIInternalDBPage extends WizardBasePanel implements IWizardPanel { } public void actionPerformed(ActionEvent e) { - if (e.getSource().equals(mSchema)) { + if (e.getSource().equals(mSchema)) { if (mSchema.isSelected()) { mRMDBNameAsText.setEnabled(true); mRMDBNameAsText.setBackground(mActiveColor); @@ -77,11 +77,11 @@ class WIInternalDBPage extends WizardBasePanel implements IWizardPanel { mRMDBNameAsText.setEnabled(false); mRMDBNameAsText.setBackground(getBackground()); } - } else { - super.actionPerformed(e); + } else { + super.actionPerformed(e); } } - + public boolean initializePanel(WizardInfo info) { InstallWizardInfo wizardInfo = (InstallWizardInfo)info; @@ -91,9 +91,9 @@ class WIInternalDBPage extends WizardBasePanel implements IWizardPanel { setBorder(makeTitledBorder(PANELNAME)); mRMBaseText.setText("o="+wizardInfo.getDBName()+", o=netscapeCertificateServer"); mRMBindAsText.setText(wizardInfo.getDBBindDN()); - return true; + return true; } - + return false; } @@ -126,10 +126,10 @@ class WIInternalDBPage extends WizardBasePanel implements IWizardPanel { wizardInfo.setInternalDBPasswd(mRMPasswordText.getText().trim()); wizardInfo.setDBBindDN(mRMBindAsText.getText().trim()); wizardInfo.setDBName(mRMBaseText.getText().trim()); - + startProgressStatus(); //CMSMessageBox dlg = new CMSMessageBox(mAdminFrame, "CGITASK", "CREATEDB"); - + boolean ready = send(rawData, wizardInfo); if (ready) { @@ -138,7 +138,7 @@ class WIInternalDBPage extends WizardBasePanel implements IWizardPanel { ready = send(rawData, wizardInfo); } //dlg.setVisible(false); - + endProgressStatus(); if (!ready) { @@ -194,13 +194,13 @@ class WIInternalDBPage extends WizardBasePanel implements IWizardPanel { mActiveColor = mRMHostText.getBackground(); CMSAdminUtil.resetGBC(gbc); - JLabel portNumber = makeJLabel("REMOTEPORT"); + JLabel portNumber = makeJLabel("REMOTEPORT"); gbc.anchor = gbc.NORTHEAST; gbc.fill = gbc.NONE; gbc.insets = new Insets(0, 0, COMPONENT_SPACE,COMPONENT_SPACE); add(portNumber, gbc); - + CMSAdminUtil.resetGBC(gbc); mRMPortText = makeJTextField(10); gbc.anchor = gbc.WEST; @@ -209,7 +209,7 @@ class WIInternalDBPage extends WizardBasePanel implements IWizardPanel { gbc.insets = new Insets(0, COMPONENT_SPACE, COMPONENT_SPACE,COMPONENT_SPACE); add(mRMPortText, gbc); - + CMSAdminUtil.resetGBC(gbc); mRMBaseLabel = makeJLabel("REMOTEDN"); gbc.anchor = gbc.NORTHEAST; @@ -252,7 +252,7 @@ class WIInternalDBPage extends WizardBasePanel implements IWizardPanel { gbc.insets = new Insets(0, 0, COMPONENT_SPACE, COMPONENT_SPACE); add(mRMPasswordLabel, gbc); - + CMSAdminUtil.resetGBC(gbc); mRMPasswordText = makeJPasswordField(30); gbc.anchor = gbc.WEST; diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIInternalTokenLogonPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIInternalTokenLogonPage.java index 3bc9bd2f3..ff2adab5d 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIInternalTokenLogonPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIInternalTokenLogonPage.java @@ -54,7 +54,7 @@ class WIInternalTokenLogonPage extends WITokenLogonPage implements IWizardPanel public boolean initializePanel(WizardInfo info) { InstallWizardInfo wizardInfo = (InstallWizardInfo)info; - String pwd = + String pwd = (String)wizardInfo.get("TOKEN:"+Constants.PR_INTERNAL_TOKEN_NAME); if (pwd != null) return false; diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIIntroMigrationPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIIntroMigrationPage.java index 616911252..5045dbfa8 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIIntroMigrationPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIIntroMigrationPage.java @@ -39,11 +39,11 @@ class WIIntroMigrationPage extends WizardBasePanel implements IWizardPanel { private JRadioButton mNo; private static final String PANELNAME = "INTROMIGRATIONWIZARD"; private String mHelpIndex; - private static final String CAHELPINDEX = + private static final String CAHELPINDEX = "install-ca-migration-enable-wizard-help"; - private static final String CAKRAHELPINDEX = + private static final String CAKRAHELPINDEX = "install-cakra-migration-enable-wizard-help"; - + WIIntroMigrationPage(JDialog parent) { super(PANELNAME); mParent = parent; @@ -66,7 +66,7 @@ class WIIntroMigrationPage extends WizardBasePanel implements IWizardPanel { if (!wizardInfo.isCAInstalled() || wizardInfo.isMigrationDone()) return false; if (wizardInfo.isCAInstalled() && wizardInfo.isKRAInstalled()) - mHelpIndex = CAKRAHELPINDEX; + mHelpIndex = CAKRAHELPINDEX; else mHelpIndex = CAHELPINDEX; setBorder(makeTitledBorder(PANELNAME)); @@ -91,7 +91,7 @@ class WIIntroMigrationPage extends WizardBasePanel implements IWizardPanel { // do the data migration data.put(ConfigConstants.TASKID, TaskId.TASK_MIGRATION); data.put(ConfigConstants.OPTYPE, OpDef.OP_MODIFY); - data.put(ConfigConstants.PR_ENABLE_MIGRATION, + data.put(ConfigConstants.PR_ENABLE_MIGRATION, ConfigConstants.FALSE); } @@ -138,8 +138,8 @@ class WIIntroMigrationPage extends WizardBasePanel implements IWizardPanel { COMPONENT_SPACE,COMPONENT_SPACE); gbc.gridwidth = gbc.REMAINDER; add(mYes, gbc); - - mNo = makeJRadioButton("NO", true); + + mNo = makeJRadioButton("NO", true); CMSAdminUtil.resetGBC(gbc); gbc.anchor = gbc.NORTHWEST; gbc.insets = new Insets(0,COMPONENT_SPACE, diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIIntroPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIIntroPage.java index 208a92cb8..9419b02c4 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIIntroPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIIntroPage.java @@ -45,7 +45,7 @@ class WIIntroPage extends WizardBasePanel implements IWizardPanel { private static final String PANELNAME = "INTROINSTALLWIZARD"; private static final String HELPINDEX = "install-general-intro-wizard-help"; - + WIIntroPage(JDialog parent) { super(PANELNAME); mParent = parent; @@ -74,7 +74,7 @@ class WIIntroPage extends WizardBasePanel implements IWizardPanel { mSubsystemButton.setVisible(false); mMigrationButton.setVisible(false); String stages = wizardInfo.getStages(); - + if (stages != null && !stages.equals("")) { StringTokenizer tokenizer = new StringTokenizer(stages, ":"); mLabel.setVisible(true); @@ -89,7 +89,7 @@ class WIIntroPage extends WizardBasePanel implements IWizardPanel { } } } - return true; + return true; } public boolean validatePanel() { @@ -104,13 +104,13 @@ class WIIntroPage extends WizardBasePanel implements IWizardPanel { String rawData = ConfigConstants.TASKID+"="+TaskId.TASK_GET_DEFAULT_INFO; rawData = rawData+"&"+ConfigConstants.OPTYPE+"="+ OpDef.OP_READ; boolean ready = send(rawData, wizardInfo); - if (ready) { + if (ready) { rawData = ConfigConstants.TASKID+"="+TaskId.TASK_TOKEN_INFO; rawData = rawData+"&"+ConfigConstants.OPTYPE+"="+OpDef.OP_READ; rawData = rawData+"&"+ConfigConstants.PR_CMS_SEED+"="+ (new Long(WizardBasePanel.mSeed).toString()); - ready = send(rawData, wizardInfo); + ready = send(rawData, wizardInfo); } endProgressStatus(); diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIIntroSingleSignonPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIIntroSingleSignonPage.java index 659dd6969..083ce16b9 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIIntroSingleSignonPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIIntroSingleSignonPage.java @@ -61,7 +61,7 @@ class WIIntroSingleSignonPage extends WizardBasePanel implements IWizardPanel { public boolean initializePanel(WizardInfo info) { setBorder(makeTitledBorder(PANELNAME)); - return true; + return true; } public boolean validatePanel() { @@ -81,7 +81,7 @@ class WIIntroSingleSignonPage extends WizardBasePanel implements IWizardPanel { consoleInfo.get(ConfigConstants.PR_CERT_INSTANCE_NAME)); data.put(ConfigConstants.PR_ADMIN_PASSWD, (String)consoleInfo.get(ConfigConstants.PR_ADMIN_PASSWD)); - + boolean ready = configCertCgi.configCert(data); return ready; } @@ -106,7 +106,7 @@ class WIIntroSingleSignonPage extends WizardBasePanel implements IWizardPanel { gbc.anchor = gbc.NORTHWEST; gbc.weightx = 1.0; gbc.gridwidth = gbc.REMAINDER; - gbc.insets = new Insets(COMPONENT_SPACE,COMPONENT_SPACE, + gbc.insets = new Insets(COMPONENT_SPACE,COMPONENT_SPACE, COMPONENT_SPACE,COMPONENT_SPACE); add(heading, gbc); */ @@ -115,26 +115,26 @@ class WIIntroSingleSignonPage extends WizardBasePanel implements IWizardPanel { gbc.anchor = gbc.NORTHWEST; gbc.weightx = 1.0; gbc.gridwidth = gbc.REMAINDER; - gbc.insets = new Insets(COMPONENT_SPACE,COMPONENT_SPACE, + gbc.insets = new Insets(COMPONENT_SPACE,COMPONENT_SPACE, COMPONENT_SPACE,COMPONENT_SPACE); add(heading, gbc); mNo = makeJRadioButton("NO", true); CMSAdminUtil.resetGBC(gbc); gbc.anchor = gbc.NORTHWEST; - gbc.insets = new Insets(COMPONENT_SPACE,COMPONENT_SPACE, + gbc.insets = new Insets(COMPONENT_SPACE,COMPONENT_SPACE, COMPONENT_SPACE,COMPONENT_SPACE); gbc.gridwidth = gbc.REMAINDER; add(mNo, gbc); - + mYes = makeJRadioButton("YES", false); CMSAdminUtil.resetGBC(gbc); gbc.anchor = gbc.NORTHWEST; - gbc.insets = new Insets(0,COMPONENT_SPACE, + gbc.insets = new Insets(0,COMPONENT_SPACE, COMPONENT_SPACE,COMPONENT_SPACE); gbc.gridwidth = gbc.REMAINDER; add(mYes, gbc); - + JLabel dummy = new JLabel(""); CMSAdminUtil.resetGBC(gbc); gbc.anchor = gbc.NORTHWEST; @@ -144,7 +144,7 @@ class WIIntroSingleSignonPage extends WizardBasePanel implements IWizardPanel { gbc.insets = new Insets(COMPONENT_SPACE,COMPONENT_SPACE, COMPONENT_SPACE,COMPONENT_SPACE); add(dummy, gbc); - + ButtonGroup buttonGrp = new ButtonGroup(); buttonGrp.add(mYes); buttonGrp.add(mNo); diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIKRACertDNPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIKRACertDNPage.java index 2dca713b5..4e200b676 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIKRACertDNPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIKRACertDNPage.java @@ -21,7 +21,7 @@ import com.netscape.admin.certsrv.wizard.*; import javax.swing.*; /** - * Subject DN page for KRA transport certificate + * Subject DN page for KRA transport certificate * * @author Christine Ho * @version $Revision$, $Date$ diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIKRACertExtensionPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIKRACertExtensionPage.java index 2b1f0dc99..9132fbcc3 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIKRACertExtensionPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIKRACertExtensionPage.java @@ -28,7 +28,7 @@ import com.netscape.certsrv.common.*; import com.netscape.admin.certsrv.config.*; /** - * Certificate Extension page for KRA transport certificate. + * Certificate Extension page for KRA transport certificate. * * @author Christine Ho * @version $Revision$, $Date$ @@ -55,7 +55,7 @@ class WIKRACertExtensionPage extends WICertExtensionPage { InstallWizardInfo wizardInfo = (InstallWizardInfo)info; if (wizardInfo.isCloning() && wizardInfo.isKRACloningDone()) return false; - if (!wizardInfo.isKRAInstalled() || + if (!wizardInfo.isKRAInstalled() || wizardInfo.isKRALocalCertDone() || wizardInfo.isKRACertRequestDone() || wizardInfo.isKRACertInstalledDone()) return false; diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIKRACertSubmitPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIKRACertSubmitPage.java index 992bd7f14..8b197732f 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIKRACertSubmitPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIKRACertSubmitPage.java @@ -50,7 +50,7 @@ class WIKRACertSubmitPage extends WICertSubmitPage implements IWizardPanel { InstallWizardInfo wizardInfo = (InstallWizardInfo)info; if (wizardInfo.isCloning() && wizardInfo.isKRACloningDone()) return false; - wizardInfo.put(Constants.PR_CERTIFICATE_TYPE, + wizardInfo.put(Constants.PR_CERTIFICATE_TYPE, Constants.PR_KRA_TRANSPORT_CERT); if (!wizardInfo.isKRAInstalled() || wizardInfo.isKRACertRequestDone() || wizardInfo.isKRACertInstalledDone() || diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIKRACertValidityPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIKRACertValidityPage.java index feaa29983..694b26cf5 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIKRACertValidityPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIKRACertValidityPage.java @@ -39,7 +39,7 @@ class WIKRACertValidityPage extends WICertValidityPage { private static final String KRAHELPINDEX = "install-kracert-validity-wizard-help"; private static final String RAKRAHELPINDEX = "install-rakracert-validity-wizard-help"; private static final String CAKRAHELPINDEX = "install-cakra-kracert-validity-wizard-help"; - + WIKRACertValidityPage(JDialog parent) { super(PANELNAME); mParent = parent; diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIKRAMessageDigestPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIKRAMessageDigestPage.java index 38941ec7b..91e54901e 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIKRAMessageDigestPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIKRAMessageDigestPage.java @@ -41,7 +41,7 @@ import com.netscape.management.client.util.*; * @see com.netscape.admin.certsrv.config.install */ class WIKRAMessageDigestPage extends WMessageDigestPage { - + private static final String PANELNAME = "INSTALLKRAMESSAGEDIGESTWIZARD"; WIKRAMessageDigestPage(JDialog parent) { @@ -66,12 +66,12 @@ class WIKRAMessageDigestPage extends WMessageDigestPage { mCAKeyType = wizardInfo.getCAKeyType(); - return super.initializePanel(info); + return super.initializePanel(info); } public void getUpdateInfo(WizardInfo info) { InstallWizardInfo wizardInfo = (InstallWizardInfo)info; - if (mDSAHashTypeBox.isVisible()) + if (mDSAHashTypeBox.isVisible()) wizardInfo.setHashType((String)mDSAHashTypeBox.getSelectedItem()); else wizardInfo.setHashType((String)mRSAHashTypeBox.getSelectedItem()); diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIKRANumberPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIKRANumberPage.java index 000b3eb9f..4575f2a83 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIKRANumberPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIKRANumberPage.java @@ -49,11 +49,11 @@ class WIKRANumberPage extends WizardBasePanel implements IWizardPanel { private String mbeginRequestNumber; private JTextField mbeginRequestNumberText; private JLabel mbeginRequestNumberLabel; - + private String mEndRequestNumber = null; private JTextField mEndRequestNumberText; private JLabel mEndRequestNumberLabel; - + private static final String DEFAULT_SERIAL_NUMBER = "1"; private static final String PANELNAME = "KRAREQUESTNUMBERWIZARD"; private static final String HELPINDEX = @@ -84,11 +84,11 @@ class WIKRANumberPage extends WizardBasePanel implements IWizardPanel { !wizardInfo.isKRAInstalled() || wizardInfo.isKRACertInstalledDone()|| wizardInfo.isNumberPageDone()) return false; - + if (wizardInfo.isCloning()) mDesc.setText(mResource.getString(PANELNAME+"_TEXT_HEADING_LABEL") + mResource.getString(PANELNAME+"_TEXT_MORE_LABEL")); - else + else mDesc.setText(mResource.getString(PANELNAME+"_TEXT_HEADING_LABEL")); @@ -107,7 +107,7 @@ class WIKRANumberPage extends WizardBasePanel implements IWizardPanel { if ((serial = wizardInfo.getEndRequestNumber()) != null) mEndRequestNumberText.setText(serial); - return true; + return true; } private String hexToDecimal(String hex, boolean isHex) @@ -188,7 +188,7 @@ class WIKRANumberPage extends WizardBasePanel implements IWizardPanel { else mEndRequestNumber = ""; } - + if (num != null && endNum != null && num.compareTo(endNum) > 0) { setErrorMessage("Ending number must be greater than starting number."); return false; @@ -206,13 +206,13 @@ class WIKRANumberPage extends WizardBasePanel implements IWizardPanel { public boolean concludePanel(WizardInfo info) { InstallWizardInfo wizardInfo = (InstallWizardInfo)info; - if (mSerialNumber != null && !mSerialNumber.equals("")) + if (mSerialNumber != null && !mSerialNumber.equals("")) wizardInfo.setCASerialNumber(mSerialNumber); else { wizardInfo.setCASerialNumber(DEFAULT_SERIAL_NUMBER); mSerialNumber = DEFAULT_SERIAL_NUMBER; } - if (mbeginRequestNumber != null && !mbeginRequestNumber.equals("")) + if (mbeginRequestNumber != null && !mbeginRequestNumber.equals("")) wizardInfo.setRequestNumber(mbeginRequestNumber); else { wizardInfo.setRequestNumber(DEFAULT_SERIAL_NUMBER); @@ -221,16 +221,16 @@ class WIKRANumberPage extends WizardBasePanel implements IWizardPanel { String rawData = ConfigConstants.TASKID+"="+TaskId.TASK_SET_KRA_NUMBER; rawData = rawData+"&"+ConfigConstants.OPTYPE+"="+OpDef.OP_MODIFY; - if (mSerialNumber != null && !mSerialNumber.equals("")) + if (mSerialNumber != null && !mSerialNumber.equals("")) rawData = rawData+"&"+ConfigConstants.PR_CA_SERIAL_NUMBER+"="+ mSerialNumber; - if (mEndSerialNumber != null && !mEndSerialNumber.equals("")) + if (mEndSerialNumber != null && !mEndSerialNumber.equals("")) rawData = rawData+"&"+ConfigConstants.PR_CA_ENDSERIAL_NUMBER+"="+ mEndSerialNumber; - if (mbeginRequestNumber != null && !mbeginRequestNumber.equals("")) + if (mbeginRequestNumber != null && !mbeginRequestNumber.equals("")) rawData = rawData+"&"+ConfigConstants.PR_REQUEST_NUMBER+"="+ mbeginRequestNumber; - if (mEndRequestNumber != null && !mEndSerialNumber.equals("")) + if (mEndRequestNumber != null && !mEndSerialNumber.equals("")) rawData = rawData+"&"+ConfigConstants.PR_ENDREQUEST_NUMBER+"="+ mEndRequestNumber; if (wizardInfo.getInternalDBPasswd() != null) @@ -294,7 +294,7 @@ class WIKRANumberPage extends WizardBasePanel implements IWizardPanel { COMPONENT_SPACE); add(mSerialNumberText, gbc); - + CMSAdminUtil.resetGBC(gbc); mEndSerialNumberLabel = makeJLabel("ENDSERIALNUMBER"); gbc.anchor = gbc.EAST; @@ -311,7 +311,7 @@ class WIKRANumberPage extends WizardBasePanel implements IWizardPanel { gbc.insets = new Insets(COMPONENT_SPACE, COMPONENT_SPACE, COMPONENT_SPACE, COMPONENT_SPACE); add(mEndSerialNumberText, gbc); - + CMSAdminUtil.resetGBC(gbc); mbeginRequestNumberLabel = makeJLabel("REQUESTNUMBER"); gbc.anchor = gbc.EAST; @@ -319,7 +319,7 @@ class WIKRANumberPage extends WizardBasePanel implements IWizardPanel { gbc.insets = new Insets(0, COMPONENT_SPACE, COMPONENT_SPACE, COMPONENT_SPACE); add(mbeginRequestNumberLabel, gbc); - + CMSAdminUtil.resetGBC(gbc); mbeginRequestNumberText = makeJTextField(30); gbc.anchor = gbc.NORTHWEST; @@ -328,7 +328,7 @@ class WIKRANumberPage extends WizardBasePanel implements IWizardPanel { gbc.insets = new Insets(0, COMPONENT_SPACE, COMPONENT_SPACE, COMPONENT_SPACE); add(mbeginRequestNumberText, gbc); - + CMSAdminUtil.resetGBC(gbc); mEndRequestNumberLabel = makeJLabel("ENDREQUESTNUMBER"); gbc.anchor = gbc.EAST; @@ -336,7 +336,7 @@ class WIKRANumberPage extends WizardBasePanel implements IWizardPanel { gbc.insets = new Insets(COMPONENT_SPACE, COMPONENT_SPACE, COMPONENT_SPACE, COMPONENT_SPACE); add(mEndRequestNumberLabel, gbc); - + CMSAdminUtil.resetGBC(gbc); mEndRequestNumberText = makeJTextField(30); gbc.anchor = gbc.NORTHWEST; @@ -345,7 +345,7 @@ class WIKRANumberPage extends WizardBasePanel implements IWizardPanel { gbc.insets = new Insets(COMPONENT_SPACE, COMPONENT_SPACE, COMPONENT_SPACE, COMPONENT_SPACE); add(mEndRequestNumberText, gbc); - + /* CMSAdminUtil.resetGBC(gbc); mSerialNumberLabel = makeJLabel("PWD"); @@ -354,7 +354,7 @@ class WIKRANumberPage extends WizardBasePanel implements IWizardPanel { gbc.insets = new Insets(0, 0, COMPONENT_SPACE, COMPONENT_SPACE); add(mSerialNumberLabel, gbc); - + CMSAdminUtil.resetGBC(gbc); mSerialNumberText = makeJSerialNumberField(30); gbc.anchor = gbc.NORTHWEST; diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIKRAScheme1Page.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIKRAScheme1Page.java index d6171e651..390e20b64 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIKRAScheme1Page.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIKRAScheme1Page.java @@ -44,7 +44,7 @@ class WIKRAScheme1Page extends WizardBasePanel implements IWizardPanel { private static final String RAKRAHELPINDEX = "install-rakra-mnscheme-wizard-help"; private int mRequired, mAvail; - + WIKRAScheme1Page(JDialog parent) { super(PANELNAME); mParent = parent; @@ -80,7 +80,7 @@ class WIKRAScheme1Page extends WizardBasePanel implements IWizardPanel { mHelpIndex = RAKRAHELPINDEX; else mHelpIndex = KRAHELPINDEX; - return true; + return true; } public boolean validatePanel() { @@ -135,7 +135,7 @@ class WIKRAScheme1Page extends WizardBasePanel implements IWizardPanel { COMPONENT_SPACE,COMPONENT_SPACE); gbc.fill = gbc.NONE; add(requiredLbl, gbc); - + CMSAdminUtil.resetGBC(gbc); mRequiredText = makeJTextField(5); gbc.anchor = gbc.NORTHWEST; diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIKRAScheme2Page.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIKRAScheme2Page.java index f8c9c9f8e..027a8b404 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIKRAScheme2Page.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIKRAScheme2Page.java @@ -48,7 +48,7 @@ class WIKRAScheme2Page extends WizardBasePanel implements IWizardPanel { "install-cakra-scheme-usrpwds-wizard-help"; private static final String RAKRAHELPINDEX = "install-rakra-scheme-usrpwds-wizard-help"; - + WIKRAScheme2Page(JDialog parent) { super(PANELNAME); mParent = parent; @@ -99,7 +99,7 @@ class WIKRAScheme2Page extends WizardBasePanel implements IWizardPanel { else mHelpIndex = KRAHELPINDEX; - return true; + return true; } public boolean validatePanel() { @@ -185,15 +185,15 @@ class WIKRAScheme2Page extends WizardBasePanel implements IWizardPanel { public boolean concludePanel(WizardInfo info) { InstallWizardInfo wizardInfo = (InstallWizardInfo)info; - - String rawData = ""; + + String rawData = ""; int total = Integer.parseInt(wizardInfo.getTotalAgents()); for (int i=0; i<total; i++) { String val1 = (String)mDataModel.getValueAt(i,1); String val2 = (String)mDataModel.getValueAt(i,2); rawData = rawData+ConfigConstants.PR_AGENT_UID+i+"="+val1; rawData = rawData+"&"+ConfigConstants.PR_AGENT_PWD+i+"="+val2; - } + } rawData = rawData+"&"+ConfigConstants.TASKID+"="+TaskId.TASK_AGENTS; rawData = rawData+"&"+ConfigConstants.OPTYPE+"="+OpDef.OP_MODIFY; @@ -242,7 +242,7 @@ class WIKRAScheme2Page extends WizardBasePanel implements IWizardPanel { scrollPane.setHorizontalScrollBarPolicy(scrollPane.HORIZONTAL_SCROLLBAR_NEVER); scrollPane.setVerticalScrollBarPolicy(scrollPane.VERTICAL_SCROLLBAR_ALWAYS); mTable.setAutoscrolls(true); - mTable.sizeColumnsToFit(true); + mTable.sizeColumnsToFit(true); mTable.getSelectionModel().setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION); scrollPane.setBackground(Color.white); setLabelCellRenderer(mTable, 1); diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIKRAStorageKeyPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIKRAStorageKeyPage.java index 6cce19d95..7f42e7671 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIKRAStorageKeyPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIKRAStorageKeyPage.java @@ -30,7 +30,7 @@ import javax.swing.event.*; import java.awt.event.*; /** - * Install KRA storage key. + * Install KRA storage key. * * @author Christine Ho * @version $Revision$, $Date$ @@ -45,7 +45,7 @@ class WIKRAStorageKeyPage extends WizardBasePanel implements IWizardPanel { "install-cakra-storagekey-wizard-help"; private static final String RAKRAHELPINDEX = "install-rakra-storagekey-wizard-help"; - + protected JComboBox mKeyTypeBox, mKeyLengthBox, mDSAKeyLengthBox, mTokenBox; protected JPasswordField mPassword, mPasswordAgain, mSOPPassword; protected JLabel keyTypeLbl, keyLengthCustomText, keyLengthLbl, unitLbl, @@ -122,7 +122,7 @@ class WIKRAStorageKeyPage extends WizardBasePanel implements IWizardPanel { //mTokenBox.setSelectedIndex(0); mTokenBox.addItemListener(this); - return true; + return true; } public boolean validatePanel() { @@ -131,13 +131,13 @@ class WIKRAStorageKeyPage extends WizardBasePanel implements IWizardPanel { public void actionPerformed(ActionEvent e) { int index = mTokenBox.getSelectedIndex(); - if (index > 0) { + if (index > 0) { mPassword.setEnabled(true); mPassword.setBackground(mActiveColor); } else { // Internal Token mPassword.setEnabled(false); - mPassword.setBackground(getBackground()); + mPassword.setBackground(getBackground()); } } @@ -293,7 +293,7 @@ class WIKRAStorageKeyPage extends WizardBasePanel implements IWizardPanel { gbc.anchor = gbc.NORTHWEST; gbc.weightx = 1.0; gbc.gridwidth = gbc.REMAINDER; - gbc.insets = new Insets(COMPONENT_SPACE, COMPONENT_SPACE, + gbc.insets = new Insets(COMPONENT_SPACE, COMPONENT_SPACE, COMPONENT_SPACE, COMPONENT_SPACE); panel2.add(mSOPPassword, gbc); diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIKeyPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIKeyPage.java index d67d0e339..425ecb869 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIKeyPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIKeyPage.java @@ -55,7 +55,7 @@ class WIKeyPage extends WizardBasePanel implements IWizardPanel, ItemListener { protected InstallWizardInfo mWizardInfo; protected String mHelpIndex; protected boolean mIsCAKey; - + WIKeyPage(String panelName) { super(panelName); mPanelName = panelName; @@ -85,13 +85,13 @@ class WIKeyPage extends WizardBasePanel implements IWizardPanel, ItemListener { int i=0; mTokenInitialized = new String[count]; while (tokenizer.hasMoreElements()) { - mTokenInitialized[i] = (String)tokenizer.nextToken(); + mTokenInitialized[i] = (String)tokenizer.nextToken(); i++; } String loginList = mWizardInfo.getTokensLogin(); - tokenizer = new StringTokenizer(loginList, ":"); - i=0; + tokenizer = new StringTokenizer(loginList, ":"); + i=0; mTokenLogin = new String[count]; while (tokenizer.hasMoreElements()) { mTokenLogin[i] = (String)tokenizer.nextToken(); @@ -111,7 +111,7 @@ class WIKeyPage extends WizardBasePanel implements IWizardPanel, ItemListener { } enableKeyLengthFields(); - return true; + return true; } public boolean validatePanel() { @@ -155,7 +155,7 @@ class WIKeyPage extends WizardBasePanel implements IWizardPanel, ItemListener { if (index > 0) return validateHardwareToken(index); - else + else return validateInternalToken(index); } @@ -252,7 +252,7 @@ class WIKeyPage extends WizardBasePanel implements IWizardPanel, ItemListener { startProgressStatus(); // CMSMessageBox dlg = new CMSMessageBox(mAdminFrame, "CGITASK", "INITTOKEN"); - + boolean ready = send(rawData, mWizardInfo); if (ready) { @@ -307,14 +307,14 @@ class WIKeyPage extends WizardBasePanel implements IWizardPanel, ItemListener { gbc.insets = new Insets(COMPONENT_SPACE, COMPONENT_SPACE, COMPONENT_SPACE, COMPONENT_SPACE); add(panel, gbc); - + CMSAdminUtil.resetGBC(gbc); gbc.anchor = gbc.NORTHWEST; gbc.gridwidth = gbc.REMAINDER; gbc.insets = new Insets(COMPONENT_SPACE, COMPONENT_SPACE, COMPONENT_SPACE, COMPONENT_SPACE); add(panel2, gbc); - + JTextArea selectTokenLbl = createTextArea(mResource.getString( mPanelName+"_LABEL_SELECTTOKEN_LABEL")); CMSAdminUtil.resetGBC(gbc); @@ -322,7 +322,7 @@ class WIKeyPage extends WizardBasePanel implements IWizardPanel, ItemListener { gbc.gridwidth = gbc.REMAINDER; gbc.insets = new Insets(0, 0, COMPONENT_SPACE,0); panel.add(selectTokenLbl, gbc); - + JLabel tokenLbl = makeJLabel("TOKEN"); CMSAdminUtil.resetGBC(gbc); gbc.anchor = gbc.CENTER; @@ -501,7 +501,7 @@ class WIKeyPage extends WizardBasePanel implements IWizardPanel, ItemListener { gbc.anchor = gbc.NORTHWEST; gbc.fill = gbc.NONE; //gbc.gridheight = gbc.REMAINDER; - gbc.insets = new Insets(0, COMPONENT_SPACE, + gbc.insets = new Insets(0, COMPONENT_SPACE, COMPONENT_SPACE, 0); panel1.add(mKeyLengthText, gbc); mActiveColor = mKeyLengthText.getBackground(); @@ -537,7 +537,7 @@ class WIKeyPage extends WizardBasePanel implements IWizardPanel, ItemListener { // the prefix "TOKEN:" and the value is the token password. mWizardInfo.put("TOKEN:"+name, mPassword.getText().trim()); } - + mTokenBox.removeItemListener(this); } @@ -578,13 +578,13 @@ class WIKeyPage extends WizardBasePanel implements IWizardPanel, ItemListener { enableFields(keyLengthCustomText, mKeyLengthText, true, mActiveColor); enableFields(unit1Lbl, null, true, mActiveColor); } else { - enableFields(keyLengthCustomText, mKeyLengthText, false, + enableFields(keyLengthCustomText, mKeyLengthText, false, getBackground()); enableFields(unit1Lbl, null, false, getBackground()); } } - protected void enableFields(JComponent comp1, JTextComponent comp2, boolean enable, + protected void enableFields(JComponent comp1, JTextComponent comp2, boolean enable, Color color) { if (comp1 != null) { comp1.setEnabled(enable); diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WILDAPPublishingPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WILDAPPublishingPage.java index 5cb6b3db3..0dd19333c 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WILDAPPublishingPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WILDAPPublishingPage.java @@ -34,7 +34,7 @@ import com.netscape.certsrv.common.*; class WILDAPPublishingPage extends WizardBasePanel implements IWizardPanel { private JTextField mHostNameText, mPortText, mBindAsText; private JCheckBox mSecurePort, mEnable; - private JLabel mBindAsLabel, mCertLabel; + private JLabel mBindAsLabel, mCertLabel; private JComboBox mAuthBox, mCertBox, mVersionBox; private static final String PANELNAME = "LDAPPUBLISHINGWIZARD"; @@ -55,7 +55,7 @@ class WILDAPPublishingPage extends WizardBasePanel implements IWizardPanel { } public boolean initializePanel(WizardInfo info) { - return true; + return true; } public boolean validatePanel() { @@ -118,7 +118,7 @@ class WILDAPPublishingPage extends WizardBasePanel implements IWizardPanel { gbc.insets = new Insets(COMPONENT_SPACE,COMPONENT_SPACE, 0, COMPONENT_SPACE); panel.add(hostName, gbc); - + CMSAdminUtil.resetGBC(gbc); mHostNameText = makeJTextField(30); gbc.anchor = gbc.NORTHWEST; @@ -127,7 +127,7 @@ class WILDAPPublishingPage extends WizardBasePanel implements IWizardPanel { COMPONENT_SPACE); gbc.gridwidth = gbc.REMAINDER; panel.add(mHostNameText, gbc); - + /* CMSAdminUtil.resetGBC(gbc); JTextArea dummy = createTextArea(" ", 2, 5); @@ -138,13 +138,13 @@ class WILDAPPublishingPage extends WizardBasePanel implements IWizardPanel { */ CMSAdminUtil.resetGBC(gbc); - JLabel portNumber = makeJLabel("PORT"); + JLabel portNumber = makeJLabel("PORT"); gbc.anchor = gbc.NORTHEAST; gbc.fill = gbc.NONE; gbc.insets = new Insets(COMPONENT_SPACE, COMPONENT_SPACE, COMPONENT_SPACE,COMPONENT_SPACE); panel.add(portNumber, gbc); - + CMSAdminUtil.resetGBC(gbc); mPortText = makeJTextField(10); gbc.anchor = gbc.NORTHWEST; @@ -152,7 +152,7 @@ class WILDAPPublishingPage extends WizardBasePanel implements IWizardPanel { gbc.insets = new Insets(COMPONENT_SPACE, COMPONENT_SPACE, COMPONENT_SPACE,COMPONENT_SPACE); panel.add(mPortText, gbc); - + CMSAdminUtil.resetGBC(gbc); mSecurePort = makeJCheckBox("SECUREPORT"); gbc.anchor = gbc.NORTHWEST; @@ -259,7 +259,7 @@ class WILDAPPublishingPage extends WizardBasePanel implements IWizardPanel { gbc.insets = new Insets(0, COMPONENT_SPACE, COMPONENT_SPACE, COMPONENT_SPACE); panel.add(dummy2, gbc); - + /* CMSAdminUtil.resetGBC(gbc); JTextArea dummy1 = createTextArea(" ", 2, 30); diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WILoggingPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WILoggingPage.java index a28a4795d..c3431b51a 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WILoggingPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WILoggingPage.java @@ -47,7 +47,7 @@ class WILoggingPage extends WizardBasePanel implements IWizardPanel { protected final static int WEEK = 604800; protected final static int DAY = 86400; protected final static int HOUR = 3600; - + WILoggingPage() { super(PANELNAME); init(); @@ -58,8 +58,8 @@ class WILoggingPage extends WizardBasePanel implements IWizardPanel { } public boolean initializePanel(WizardInfo info) { - - return true; + + return true; } public boolean validatePanel() { diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WILogonAllTokensPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WILogonAllTokensPage.java index 9a8060b30..dbbe3a2e2 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WILogonAllTokensPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WILogonAllTokensPage.java @@ -83,9 +83,9 @@ class WILogonAllTokensPage extends WizardBasePanel implements IWizardPanel { String token = (String)tokenizer.nextElement(); loggedIn = (String)tokenizerLoggedIn.nextElement(); inits = (String)tokenizerInits.nextElement(); - - // if (loggedIn.equals("false")) { - // always logon to the token. + + // if (loggedIn.equals("false")) { + // always logon to the token. if (inits.equals("true")) { Vector v = new Vector(); v.addElement(new JLabel(token)); @@ -141,8 +141,8 @@ class WILogonAllTokensPage extends WizardBasePanel implements IWizardPanel { } else { tokenNames = tokenNames+":"+val1; pwds = pwds+":"+val2; - } - } + } + } startProgressStatus(); String rawData = ConfigConstants.PR_TOKEN_LOGONLIST+"="+tokenNames; @@ -225,7 +225,7 @@ class WILogonAllTokensPage extends WizardBasePanel implements IWizardPanel { mTable.setDefaultRenderer(JComponent.class, new ComponentCellRenderer()); mTable.setDefaultEditor(JComponent.class, new ProfileComponentCellEditor()); - + CMSAdminUtil.resetGBC(gbc); gbc.anchor = gbc.NORTHWEST; gbc.fill = gbc.BOTH; diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIManualCertRequestPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIManualCertRequestPage.java index 37adddb98..c0ffcd964 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIManualCertRequestPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIManualCertRequestPage.java @@ -38,7 +38,7 @@ import com.netscape.management.client.util.*; class WIManualCertRequestPage extends WBaseManualCertRequestPage implements IWizardPanel { // private static final String PANELNAME = "INSTALLMANUALCERTREQUESTWIZARD"; String mHelpIndex; - + WIManualCertRequestPage(String panelName) { super(panelName); init(); @@ -49,7 +49,7 @@ class WIManualCertRequestPage extends WBaseManualCertRequestPage implements IWiz } public boolean initializePanel(WizardInfo info) { - return super.initializePanel(info); + return super.initializePanel(info); } public boolean validatePanel() { @@ -64,7 +64,7 @@ class WIManualCertRequestPage extends WBaseManualCertRequestPage implements IWiz if (mHost != null && !mHost.equals("")) wizardInfo.setCMHost(mHost); if (mPort != null && !mPort.equals("")) - wizardInfo.setCMEEPort(mPort); + wizardInfo.setCMEEPort(mPort); if (mSSL.isSelected()) wizardInfo.setCMEEType("https"); else @@ -96,7 +96,7 @@ class WIManualCertRequestPage extends WBaseManualCertRequestPage implements IWiz } startProgressStatus(); - boolean ready = send(mHost, Integer.parseInt(mPort), + boolean ready = send(mHost, Integer.parseInt(mPort), "/ca/ee/ca/profileSubmit", rawData, wizardInfo); endProgressStatus(); @@ -145,7 +145,7 @@ class WIManualCertRequestPage extends WBaseManualCertRequestPage implements IWiz if (!ready) { String str = getErrorMessage(); - if (str.equals("")) { + if (str.equals("")) { String errorMsg = mResource.getString( mPanelName+"_ERRORMSG"); setErrorMessage(errorMsg); diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIManualKRACertRequestPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIManualKRACertRequestPage.java index c1355b3d5..9df684ada 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIManualKRACertRequestPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIManualKRACertRequestPage.java @@ -53,7 +53,7 @@ class WIManualKRACertRequestPage extends WIManualCertRequestPage { if (wizardInfo.isCloning() && wizardInfo.isKRACloningDone()) return false; if (wizardInfo.isKRACertLocalCA() || !wizardInfo.isKRAInstalled() || - wizardInfo.isKRALocalCertDone() || + wizardInfo.isKRALocalCertDone() || wizardInfo.isKRACertInstalledDone() || wizardInfo.isKRACertRequestSucc()) return false; diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIManualOCSPCertRequestPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIManualOCSPCertRequestPage.java index 268c6c395..b5d4c8e2a 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIManualOCSPCertRequestPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIManualOCSPCertRequestPage.java @@ -53,7 +53,7 @@ class WIManualOCSPCertRequestPage extends WIManualCertRequestPage { if (wizardInfo.isCloning() && wizardInfo.isOCSPCloningDone()) return false; if (wizardInfo.isOCSPCertLocalCA() || !wizardInfo.isOCSPInstalled() || - wizardInfo.isOCSPLocalCertDone() || + wizardInfo.isOCSPLocalCertDone() || wizardInfo.isOCSPCertInstalledDone() || wizardInfo.isOCSPCertRequestSucc() ) return false; diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIManualRACertRequestPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIManualRACertRequestPage.java index 7439ed7b5..e119a723b 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIManualRACertRequestPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIManualRACertRequestPage.java @@ -52,7 +52,7 @@ class WIManualRACertRequestPage extends WIManualCertRequestPage { if (wizardInfo.isCloning() && wizardInfo.isRACloningDone()) return false; if (wizardInfo.isRACertLocalCA() || !wizardInfo.isRAInstalled() || - wizardInfo.isRALocalCertDone() || + wizardInfo.isRALocalCertDone() || wizardInfo.isRACertInstalledDone() || wizardInfo.isRACertRequestSucc() ) return false; diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIMasterOrClone.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIMasterOrClone.java index 96c764381..e2dc64593 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIMasterOrClone.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIMasterOrClone.java @@ -40,9 +40,9 @@ class WIMasterOrClone extends WizardBasePanel implements IWizardPanel { protected JRadioButton mNo; protected JTextArea mLabel; private static final String PANELNAME = "MASTERORCLONE"; - private static final String HELPINDEX = + private static final String HELPINDEX = "install-internaldb-createdbagain-help"; - + WIMasterOrClone(JDialog parent) { super(PANELNAME); mParent = parent; @@ -97,7 +97,7 @@ class WIMasterOrClone extends WizardBasePanel implements IWizardPanel { Debug.println("WIMasterOrClone:concludePanel() 2"); boolean ready = send(rawData, wizardInfo); endProgressStatus(); - + if (!ready) { String str = getErrorMessage(wizardInfo); if (str == null) @@ -125,24 +125,24 @@ class WIMasterOrClone extends WizardBasePanel implements IWizardPanel { PANELNAME+"_TEXT_HEADING_LABEL")); gbc.anchor = gbc.NORTHWEST; gbc.weightx = 1.0; - gbc.insets = new Insets(COMPONENT_SPACE,COMPONENT_SPACE, + gbc.insets = new Insets(COMPONENT_SPACE,COMPONENT_SPACE, COMPONENT_SPACE,COMPONENT_SPACE); gbc.gridwidth = gbc.REMAINDER; add(mLabel, gbc); - - + + mYes = makeJRadioButton("YES", false); gbc.anchor = gbc.NORTHWEST; gbc.weightx = 1.0; - gbc.insets = new Insets(COMPONENT_SPACE,COMPONENT_SPACE, + gbc.insets = new Insets(COMPONENT_SPACE,COMPONENT_SPACE, COMPONENT_SPACE,COMPONENT_SPACE); gbc.gridwidth = gbc.REMAINDER; add(mYes, gbc); - + mNo = makeJRadioButton("NO", false); gbc.anchor = gbc.NORTHWEST; gbc.weightx = 1.0; - gbc.insets = new Insets(0,COMPONENT_SPACE, + gbc.insets = new Insets(0,COMPONENT_SPACE, COMPONENT_SPACE,COMPONENT_SPACE); gbc.gridwidth = gbc.REMAINDER; add(mNo, gbc); diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIMigrationPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIMigrationPage.java index ab9bcebb9..68faf10d0 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIMigrationPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIMigrationPage.java @@ -58,7 +58,7 @@ class WIMigrationPage extends WizardBasePanel implements IWizardPanel, ItemListe "install-ca-migration-configuration-wizard-help"; private static final String CAKRAHELPINDEX = "install-cakra-migration-configuration-wizard-help"; - + WIMigrationPage(JDialog parent) { super(PANELNAME); mParent = parent; @@ -84,19 +84,19 @@ class WIMigrationPage extends WizardBasePanel implements IWizardPanel, ItemListe setBorder(makeTitledBorder(PANELNAME)); initializeTokenBox(mCATokenBox); - if (mSSLTokenBox.getItemCount() > 0) + if (mSSLTokenBox.getItemCount() > 0) mSSLTokenBox.removeAllItems(); for (int i=0; i<mCATokenBox.getItemCount(); i++) { String str = (String)mCATokenBox.getItemAt(i); mSSLTokenBox.addItem(str); } int index = mCATokenBox.getSelectedIndex(); - mWizardInfo.setMigrateCACertTokenName((String)mCATokenBox.getSelectedItem()); + mWizardInfo.setMigrateCACertTokenName((String)mCATokenBox.getSelectedItem()); enableFields(index, mLogonInitCATokenLbl, mCAPasswdLbl, mCAPassword, mCAPasswdAgainLbl, mCAPasswordAgain, mCASOPLbl, mCASOPPassword); index = mSSLTokenBox.getSelectedIndex(); - mWizardInfo.setMigrateSSLCertTokenName((String)mSSLTokenBox.getSelectedItem()); + mWizardInfo.setMigrateSSLCertTokenName((String)mSSLTokenBox.getSelectedItem()); enableFields(index, mLogonInitSSLTokenLbl, mSSLPasswdLbl, mSSLPassword, mSSLPasswdAgainLbl, mSSLPasswordAgain, mSSLSOPLbl, mSSLSOPPassword); @@ -104,16 +104,16 @@ class WIMigrationPage extends WizardBasePanel implements IWizardPanel, ItemListe mSSLTokenBox.addItemListener(this); enablePasswordFields(); - if (mWizardInfo.isCAInstalled() && mWizardInfo.isKRAInstalled()) + if (mWizardInfo.isCAInstalled() && mWizardInfo.isKRAInstalled()) mHelpIndex = CAKRAHELPINDEX; else mHelpIndex = CAHELPINDEX; - return true; + return true; } private void initializeTokenBox(JComboBox tokenBox) { - if (tokenBox.getItemCount() > 0) + if (tokenBox.getItemCount() > 0) tokenBox.removeAllItems(); String tokenList = mWizardInfo.getTokensList(); @@ -278,16 +278,16 @@ class WIMigrationPage extends WizardBasePanel implements IWizardPanel, ItemListe data.put(ConfigConstants.PR_ENABLE_MIGRATION, ConfigConstants.TRUE); else data.put(ConfigConstants.PR_ENABLE_MIGRATION, ConfigConstants.FALSE); - data.put(ConfigConstants.PR_OUTPUT_PATH, + data.put(ConfigConstants.PR_OUTPUT_PATH, mWizardInfo.getMigrationOutputPath()); if (mWizardInfo.getInternalDBPasswd() != null) - data.put(ConfigConstants.PR_DB_PWD, + data.put(ConfigConstants.PR_DB_PWD, mWizardInfo.getInternalDBPasswd()); - data.put(ConfigConstants.PR_MIGRATION_PASSWORD, + data.put(ConfigConstants.PR_MIGRATION_PASSWORD, mWizardInfo.getMigrationPasswd()); - data.put(ConfigConstants.PR_SIGNING_KEY_MIGRATION_TOKEN, + data.put(ConfigConstants.PR_SIGNING_KEY_MIGRATION_TOKEN, mWizardInfo.getSigningKeyMigrationToken()); - data.put(ConfigConstants.PR_SIGNING_KEY_MIGRATION_TOKEN_PASSWD, + data.put(ConfigConstants.PR_SIGNING_KEY_MIGRATION_TOKEN_PASSWD, mWizardInfo.getSigningKeyMigrationPasswd()); data.put(ConfigConstants.PR_SSL_KEY_MIGRATION_TOKEN, mWizardInfo.getSSLKeyMigrationToken()); @@ -299,7 +299,7 @@ class WIMigrationPage extends WizardBasePanel implements IWizardPanel, ItemListe endProgressStatus(); mWizardInfo.put("TOKEN:"+caTokenName, mCAPassword.getText().trim()); - mWizardInfo.put("TOKEN:"+sslTokenName, + mWizardInfo.put("TOKEN:"+sslTokenName, mSSLPassword.getText().trim()); if (!ready) { @@ -320,21 +320,21 @@ class WIMigrationPage extends WizardBasePanel implements IWizardPanel, ItemListe int index = 0; if (e.getSource().equals(mCATokenBox)) { index = mCATokenBox.getSelectedIndex(); - mWizardInfo.setMigrateCACertTokenName((String)mCATokenBox.getSelectedItem()); + mWizardInfo.setMigrateCACertTokenName((String)mCATokenBox.getSelectedItem()); enableFields(index, mLogonInitCATokenLbl, mCAPasswdLbl, mCAPassword, mCAPasswdAgainLbl, mCAPasswordAgain, mCASOPLbl, mCASOPPassword); enablePasswordFields(); } else if (e.getSource().equals(mSSLTokenBox)) { index = mSSLTokenBox.getSelectedIndex(); - mWizardInfo.setMigrateSSLCertTokenName((String)mSSLTokenBox.getSelectedItem()); + mWizardInfo.setMigrateSSLCertTokenName((String)mSSLTokenBox.getSelectedItem()); enableFields(index, mLogonInitSSLTokenLbl, mSSLPasswdLbl, mSSLPassword, mSSLPasswdAgainLbl, mSSLPasswordAgain, mSSLSOPLbl, mSSLSOPPassword); enablePasswordFields(); } } - private void enableFields(int index, JLabel logonInitLbl, JLabel passwdLbl, - JPasswordField passwd, JLabel passwdAgainLbl, JPasswordField passwdAgain, + private void enableFields(int index, JLabel logonInitLbl, JLabel passwdLbl, + JPasswordField passwd, JLabel passwdAgainLbl, JPasswordField passwdAgain, JLabel sopLbl, JPasswordField sopPasswd) { if (mTokenLogin[index].equals(ConfigConstants.TRUE)) { logonInitLbl.setText(""); @@ -367,7 +367,7 @@ class WIMigrationPage extends WizardBasePanel implements IWizardPanel, ItemListe } } - protected void enableFields(JComponent comp1, JTextComponent comp2, + protected void enableFields(JComponent comp1, JTextComponent comp2, boolean enable, Color color) { if (comp1 != null) { comp1.setEnabled(enable); @@ -423,7 +423,7 @@ class WIMigrationPage extends WizardBasePanel implements IWizardPanel, ItemListe gbc.insets = new Insets(COMPONENT_SPACE, COMPONENT_SPACE, COMPONENT_SPACE,COMPONENT_SPACE); add(mPathLbl, gbc); - + CMSAdminUtil.resetGBC(gbc); mPathText = makeJTextField(30); gbc.anchor = gbc.NORTHWEST; @@ -432,11 +432,11 @@ class WIMigrationPage extends WizardBasePanel implements IWizardPanel, ItemListe gbc.gridwidth = gbc.REMAINDER; add(mPathText, gbc); - mTransportLbl = makeJLabel("TRANSPORTPASSWORD"); + mTransportLbl = makeJLabel("TRANSPORTPASSWORD"); CMSAdminUtil.resetGBC(gbc); gbc.anchor = gbc.NORTHEAST; gbc.fill = gbc.NONE; - gbc.insets = new Insets(0, COMPONENT_SPACE, + gbc.insets = new Insets(0, COMPONENT_SPACE, COMPONENT_SPACE,COMPONENT_SPACE); add(mTransportLbl, gbc); @@ -463,7 +463,7 @@ class WIMigrationPage extends WizardBasePanel implements IWizardPanel, ItemListe CMSAdminUtil.resetGBC(gbc); gbc.anchor = gbc.NORTHWEST; gbc.gridwidth = gbc.REMAINDER; - gbc.insets = new Insets(0, COMPONENT_SPACE, COMPONENT_SPACE, + gbc.insets = new Insets(0, COMPONENT_SPACE, COMPONENT_SPACE, COMPONENT_SPACE); add(mDBPassword, gbc); */ @@ -476,7 +476,7 @@ class WIMigrationPage extends WizardBasePanel implements IWizardPanel, ItemListe CMSAdminUtil.resetGBC(gbc); gbc.anchor = gbc.NORTHWEST; gbc.gridwidth = gbc.REMAINDER; - gbc.insets = new Insets(COMPONENT_SPACE, 0, COMPONENT_SPACE, + gbc.insets = new Insets(COMPONENT_SPACE, 0, COMPONENT_SPACE, COMPONENT_SPACE); panel1.add(mCATokenHeading, gbc); diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WINetworkPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WINetworkPage.java index 823980d56..6d9bb892d 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WINetworkPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WINetworkPage.java @@ -54,7 +54,7 @@ class WINetworkPage extends WizardBasePanel implements IWizardPanel { private boolean mNumberError = false; private JLabel mPortLabel, mSSLPortLabel; - private static final String HELPINDEX = + private static final String HELPINDEX = "install-network-configuration-wizard-help"; private static final String PANELNAME = "NETWORKWIZARD"; private static final int MAX_PORT = 65535; @@ -83,7 +83,7 @@ class WINetworkPage extends WizardBasePanel implements IWizardPanel { public boolean initializePanel(WizardInfo info) { InstallWizardInfo wizardInfo = (InstallWizardInfo)info; mWizardInfo = wizardInfo; - if (wizardInfo.isNetworkDone()) + if (wizardInfo.isNetworkDone()) return false; setBorder(makeTitledBorder(PANELNAME)); boolean cloning = mWizardInfo.isCloning(); @@ -100,7 +100,7 @@ class WINetworkPage extends WizardBasePanel implements IWizardPanel { } else { mEnable.setSelected(wizardInfo.isEEEnabled()); } - + if (wizardInfo.isRAInstalled()) mEnable.setSelected(true); mAdminSSLPortText.setText(wizardInfo.getAdminPort()); @@ -125,7 +125,7 @@ class WINetworkPage extends WizardBasePanel implements IWizardPanel { enableFields(mSSLPortLabel, mGatewaySSLPortText, true, mActiveColor); mEnableEEPorts = true; } - + return true; } @@ -155,13 +155,13 @@ class WINetworkPage extends WizardBasePanel implements IWizardPanel { return false; } - if (mEnableEEPorts) { + if (mEnableEEPorts) { if (sslEEPort.equals("") || (mEnable.isSelected() && eePort.equals(""))) { - setErrorMessage("BLANKFIELD"); + setErrorMessage("BLANKFIELD"); return false; } } - + boolean cloning = mWizardInfo.isCloning(); String selected_sub = mWizardInfo.getCloneSubsystem(); if (cloning && (selected_sub != null && selected_sub.equals("ca"))) { @@ -177,24 +177,24 @@ class WINetworkPage extends WizardBasePanel implements IWizardPanel { if (num < MIN_PORT || num > MAX_PORT) { setErrorMessage("PORTRANGE"); return false; - } + } num = Integer.parseInt(agentPort); if (num < MIN_PORT || num > MAX_PORT) { setErrorMessage("PORTRANGE"); return false; - } + } if (mEnableEEPorts) { num = Integer.parseInt(sslEEPort); if (num < MIN_PORT || num > MAX_PORT) { setErrorMessage("PORTRANGE"); return false; - } + } if (mEnable.isSelected()) { num = Integer.parseInt(eePort); if (num < MIN_PORT || num > MAX_PORT) { setErrorMessage("PORTRANGE"); return false; - } + } } } if (cloning && (selected_sub != null && selected_sub.equals("ca"))) @@ -204,14 +204,14 @@ class WINetworkPage extends WizardBasePanel implements IWizardPanel { return false; } - if (adminPort.equals(agentPort) || agentPort.equals(sslEEPort) || + if (adminPort.equals(agentPort) || agentPort.equals(sslEEPort) || (mEnable.isSelected() && eePort.equals(sslEEPort))) { setErrorMessage("SAMEPORT"); return false; } if (mEnableEEPorts) { - if (agentPort.equals(sslEEPort) || + if (agentPort.equals(sslEEPort) || (mEnable.isSelected() && eePort.equals(sslEEPort))) { setErrorMessage("SAMEPORT"); return false; @@ -309,7 +309,7 @@ class WINetworkPage extends WizardBasePanel implements IWizardPanel { COMPONENT_SPACE,COMPONENT_SPACE); gbc.fill = gbc.NONE; add(adminSSLport, gbc); - + mAdminSSLPortText = makeJTextField(10); CMSAdminUtil.resetGBC(gbc); gbc.anchor = gbc.WEST; @@ -335,7 +335,7 @@ class WINetworkPage extends WizardBasePanel implements IWizardPanel { gbc.insets = new Insets(0, 0, COMPONENT_SPACE,COMPONENT_SPACE); gbc.fill = gbc.NONE; add(agentPort, gbc); - + mAgentSSLPortText = makeJTextField(10); CMSAdminUtil.resetGBC(gbc); gbc.anchor = gbc.WEST; @@ -346,7 +346,7 @@ class WINetworkPage extends WizardBasePanel implements IWizardPanel { COMPONENT_SPACE); //gbc.gridwidth = gbc.REMAINDER; add(mAgentSSLPortText, gbc); - + JLabel dummy2b = new JLabel(" "); CMSAdminUtil.resetGBC(gbc); gbc.anchor = gbc.NORTHWEST; @@ -432,7 +432,7 @@ class WINetworkPage extends WizardBasePanel implements IWizardPanel { COMPONENT_SPACE,COMPONENT_SPACE); gbc.gridwidth = gbc.REMAINDER; add(mAgentDesc, gbc); - + CMSAdminUtil.resetGBC(gbc); mAgentPortLbl = makeJLabel("AGENTPORT"); gbc.anchor = gbc.NORTHEAST; @@ -440,7 +440,7 @@ class WINetworkPage extends WizardBasePanel implements IWizardPanel { gbc.insets = new Insets(COMPONENT_SPACE, 0, COMPONENT_SPACE, COMPONENT_SPACE); add(mAgentPortLbl, gbc); - + CMSAdminUtil.resetGBC(gbc); mPortText = makeJTextField(30); gbc.anchor = gbc.NORTHWEST; @@ -480,7 +480,7 @@ class WINetworkPage extends WizardBasePanel implements IWizardPanel { mWarning = true; String errormsg = mResource.getString(mPanelName+"_WARNING"); JOptionPane.showMessageDialog(mAdminFrame, errormsg, "Warning", - JOptionPane.WARNING_MESSAGE, + JOptionPane.WARNING_MESSAGE, CMSAdminUtil.getImage(CMSAdminResources.IMAGE_WARN_ICON)); } else { enableFields(false, getBackground()); diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIOCSPCertDNPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIOCSPCertDNPage.java index d13124de6..d01c55dd0 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIOCSPCertDNPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIOCSPCertDNPage.java @@ -22,7 +22,7 @@ import javax.swing.*; import com.netscape.management.client.util.*; /** - * Subject DN page for RA signing certificate + * Subject DN page for RA signing certificate * * @author Christine Ho * @version $Revision$, $Date$ @@ -78,6 +78,6 @@ class WIOCSPCertDNPage extends WICertDNPage { str = mCText.getText().trim(); wizardInfo.setOCSPCComp(str); } - + } diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIOCSPCertSubmitPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIOCSPCertSubmitPage.java index dd58b5f1a..d851ee323 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIOCSPCertSubmitPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIOCSPCertSubmitPage.java @@ -48,7 +48,7 @@ class WIOCSPCertSubmitPage extends WICertSubmitPage implements IWizardPanel { InstallWizardInfo wizardInfo = (InstallWizardInfo)info; if (wizardInfo.isCloning() && wizardInfo.isOCSPCloningDone()) return false; - wizardInfo.put(Constants.PR_CERTIFICATE_TYPE, + wizardInfo.put(Constants.PR_CERTIFICATE_TYPE, Constants.PR_OCSP_SIGNING_CERT); if (!wizardInfo.isOCSPInstalled() || diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIOCSPKeyPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIOCSPKeyPage.java index a49b428a7..63746e448 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIOCSPKeyPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIOCSPKeyPage.java @@ -39,7 +39,7 @@ import com.netscape.management.client.util.*; */ class WIOCSPKeyPage extends WIKeyPage implements IWizardPanel { private static final String PANELNAME = "INSTALLOCSPKEYWIZARD"; - private static final String OCSPHELPINDEX = + private static final String OCSPHELPINDEX = "install-ocspkey-configuration-wizard-help"; WIOCSPKeyPage(JDialog parent) { diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIOCSPMessageDigestPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIOCSPMessageDigestPage.java index ec250dcd1..c5f1c5613 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIOCSPMessageDigestPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIOCSPMessageDigestPage.java @@ -41,7 +41,7 @@ import com.netscape.management.client.util.*; * @see com.netscape.admin.certsrv.config.install */ class WIOCSPMessageDigestPage extends WMessageDigestPage { - + private static final String PANELNAME = "INSTALLOCSPMESSAGEDIGESTWIZARD"; WIOCSPMessageDigestPage(JDialog parent) { @@ -67,12 +67,12 @@ class WIOCSPMessageDigestPage extends WMessageDigestPage { mCAKeyType = wizardInfo.getCAKeyType(); - return super.initializePanel(info); + return super.initializePanel(info); } public void getUpdateInfo(WizardInfo info) { InstallWizardInfo wizardInfo = (InstallWizardInfo)info; - if (mDSAHashTypeBox.isVisible()) + if (mDSAHashTypeBox.isVisible()) wizardInfo.setHashType((String)mDSAHashTypeBox.getSelectedItem()); else wizardInfo.setHashType((String)mRSAHashTypeBox.getSelectedItem()); diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIPasteCACertPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIPasteCACertPage.java index 816554588..4e9ef1fa6 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIPasteCACertPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIPasteCACertPage.java @@ -49,8 +49,8 @@ class WIPasteCACertPage extends WIPasteCertPage { if (wizardInfo.isCloning() && wizardInfo.isCACloningDone()) return false; - if (wizardInfo.isCACertLocalCA() || !wizardInfo.isInstallCertNow() - || !wizardInfo.isCAInstalled() || wizardInfo.isMigrationEnable() + if (wizardInfo.isCACertLocalCA() || !wizardInfo.isInstallCertNow() + || !wizardInfo.isCAInstalled() || wizardInfo.isMigrationEnable() || wizardInfo.isCACertInstalledDone()) return false; diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIPasteCertPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIPasteCertPage.java index 063382f32..7cda3bef7 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIPasteCertPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIPasteCertPage.java @@ -32,8 +32,8 @@ import com.netscape.management.client.console.*; import com.netscape.management.client.util.*; /** - * This page is to install the certificate in the internal token. The user can - * import the cert from the file, paste the Base 64 encoded blob in the + * This page is to install the certificate in the internal token. The user can + * import the cert from the file, paste the Base 64 encoded blob in the * text area or get the cert from the CMS where the request was sent. * * @author Christine Ho @@ -53,14 +53,14 @@ class WIPasteCertPage extends WizardBasePanel implements IWizardPanel { protected String mHelpIndex; protected Color mActiveColor; protected JTextArea introLbl; - + protected JTextField mHostText, mPortText, mRIDText; protected JLabel mHostLbl, mPortLbl, mRIDLbl; protected String mHost, mPort, mRID; protected JLabel mSSLText; protected JCheckBox mSSL; // ssl or not protected JLabel mQueryText; - protected JRadioButton mQueryBtn; + protected JRadioButton mQueryBtn; public static final int MAX_PORT = 65535; public static final int MIN_PORT = 1; @@ -88,7 +88,7 @@ class WIPasteCertPage extends WizardBasePanel implements IWizardPanel { String port = wizardInfo.getCMEEPort(); if (port != null && !port.equals("")) mPortText.setText(port); - + String portType = wizardInfo.getCMEEType(); if (portType != null && portType.equals("http")) mSSL.setSelected(false); @@ -98,7 +98,7 @@ class WIPasteCertPage extends WizardBasePanel implements IWizardPanel { mRIDText.setText(rid); setBorder(makeTitledBorder(mPanelName)); - return true; + return true; } public boolean validatePanel() { @@ -176,7 +176,7 @@ class WIPasteCertPage extends WizardBasePanel implements IWizardPanel { if (mHost != null && !mHost.equals("")) wizardInfo.setCMHost(mHost); if (mPort != null && !mPort.equals("")) - wizardInfo.setCMEEPort(mPort); + wizardInfo.setCMEEPort(mPort); if (mSSL.isSelected()) wizardInfo.setCMEEType("https"); else @@ -191,11 +191,11 @@ class WIPasteCertPage extends WizardBasePanel implements IWizardPanel { data1.put("importCert", "true"); data1.put("requestId", mRID); */ - + startProgressStatus(); boolean ready = send(mHost, Integer.parseInt(mPort), "/checkRequest", rawData1, wizardInfo); - + endProgressStatus(); if (!ready) { @@ -262,7 +262,7 @@ class WIPasteCertPage extends WizardBasePanel implements IWizardPanel { COMPONENT_SPACE, COMPONENT_SPACE); gbc.gridwidth = gbc.REMAINDER; add(introLbl, gbc); - + mFileBtn = makeJRadioButton("FILE", true); CMSAdminUtil.resetGBC(gbc); gbc.anchor = gbc.NORTHWEST; @@ -302,7 +302,7 @@ class WIPasteCertPage extends WizardBasePanel implements IWizardPanel { add(desc, gbc); mBase64Text = new JTextArea(null, null, 6, 10); - JScrollPane scrollPane = new JScrollPane(mBase64Text, + JScrollPane scrollPane = new JScrollPane(mBase64Text, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS); scrollPane.setPreferredSize(new Dimension(30, 50)); @@ -425,7 +425,7 @@ class WIPasteCertPage extends WizardBasePanel implements IWizardPanel { gbc.insets = new Insets(COMPONENT_SPACE, COMPONENT_SPACE, COMPONENT_SPACE, COMPONENT_SPACE); add(label, gbc); - + ButtonGroup buttonGrp = new ButtonGroup(); buttonGrp.add(mFileBtn); buttonGrp.add(mBase64Btn); diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIPasteOCSPCertPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIPasteOCSPCertPage.java index 783d87da7..732227722 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIPasteOCSPCertPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIPasteOCSPCertPage.java @@ -50,7 +50,7 @@ class WIPasteOCSPCertPage extends WIPasteCertPage { if (wizardInfo.isCloning() && wizardInfo.isOCSPCloningDone()) return false; - if (wizardInfo.isOCSPCertLocalCA() || !wizardInfo.isInstallCertNow() + if (wizardInfo.isOCSPCertLocalCA() || !wizardInfo.isInstallCertNow() || !wizardInfo.isOCSPInstalled() || wizardInfo.isOCSPCertInstalledDone()) return false; diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIPasteRACertPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIPasteRACertPage.java index 584c375d4..2cf556b50 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIPasteRACertPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIPasteRACertPage.java @@ -48,7 +48,7 @@ class WIPasteRACertPage extends WIPasteCertPage { InstallWizardInfo wizardInfo = (InstallWizardInfo)info; if (wizardInfo.isCloning() && wizardInfo.isRACloningDone()) return false; - if (wizardInfo.isRACertLocalCA() || !wizardInfo.isInstallCertNow() + if (wizardInfo.isRACertLocalCA() || !wizardInfo.isInstallCertNow() || !wizardInfo.isRAInstalled() || wizardInfo.isRACertInstalledDone()) return false; diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIRACertDNPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIRACertDNPage.java index 788fab869..ba1c8913c 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIRACertDNPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIRACertDNPage.java @@ -21,7 +21,7 @@ import com.netscape.admin.certsrv.wizard.*; import javax.swing.*; /** - * Subject DN page for RA signing certificate + * Subject DN page for RA signing certificate * * @author Christine Ho * @version $Revision$, $Date$ @@ -81,6 +81,6 @@ class WIRACertDNPage extends WICertDNPage { str = mCText.getText().trim(); wizardInfo.setRACComp(str); } - + } diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIRACertExtensionPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIRACertExtensionPage.java index 85553c5c7..2f38795f2 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIRACertExtensionPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIRACertExtensionPage.java @@ -54,11 +54,11 @@ class WIRACertExtensionPage extends WICertExtensionPage { InstallWizardInfo wizardInfo = (InstallWizardInfo)info; if (wizardInfo.isCloning() && wizardInfo.isRACloningDone()) return false; - if (!wizardInfo.isRAInstalled() || + if (!wizardInfo.isRAInstalled() || wizardInfo.isRALocalCertDone() || wizardInfo.isRACertRequestDone() || wizardInfo.isRACertInstalledDone()) return false; - + if (!mModified) { mAKICheckBox.setSelected(true); mExtendedKeyCheckBox.setSelected(true); diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIRACertSubmitPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIRACertSubmitPage.java index 771aa51b3..366b4f8e9 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIRACertSubmitPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIRACertSubmitPage.java @@ -49,7 +49,7 @@ class WIRACertSubmitPage extends WICertSubmitPage implements IWizardPanel { InstallWizardInfo wizardInfo = (InstallWizardInfo)info; if (wizardInfo.isCloning() && wizardInfo.isRACloningDone()) return false; - wizardInfo.put(Constants.PR_CERTIFICATE_TYPE, + wizardInfo.put(Constants.PR_CERTIFICATE_TYPE, Constants.PR_RA_SIGNING_CERT); if (!wizardInfo.isRAInstalled() || wizardInfo.isRACertRequestDone() || wizardInfo.isRACertInstalledDone() || diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIRACertValidityPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIRACertValidityPage.java index fec7619df..62a0c1a8c 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIRACertValidityPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIRACertValidityPage.java @@ -38,7 +38,7 @@ class WIRACertValidityPage extends WICertValidityPage { private static final String PANELNAME = "INSTALLRACERTVALIDWIZARD"; private static final String RAHELPINDEX = "install-racert-validity-wizard-help"; private static final String RAKRAHELPINDEX = "install-rakracert-validity-wizard-help"; - + WIRACertValidityPage(JDialog parent) { super(PANELNAME); mParent = parent; diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIRAKeyPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIRAKeyPage.java index 9abb9e0ac..619f40593 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIRAKeyPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIRAKeyPage.java @@ -38,9 +38,9 @@ import com.netscape.admin.certsrv.config.*; */ class WIRAKeyPage extends WIKeyPage implements IWizardPanel { private static final String PANELNAME = "INSTALLRAKEYWIZARD"; - private static final String RAHELPINDEX = + private static final String RAHELPINDEX = "install-rakey-configuration-wizard-help"; - private static final String RAKRAHELPINDEX = + private static final String RAKRAHELPINDEX = "install-rakrakey-configuration-wizard-help"; WIRAKeyPage(JDialog parent) { diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIRAMessageDigestPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIRAMessageDigestPage.java index ef843ba37..af069d5f2 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIRAMessageDigestPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIRAMessageDigestPage.java @@ -41,7 +41,7 @@ import com.netscape.management.client.util.*; * @see com.netscape.admin.certsrv.config.install */ class WIRAMessageDigestPage extends WMessageDigestPage { - + private static final String PANELNAME = "INSTALLRAMESSAGEDIGESTWIZARD"; WIRAMessageDigestPage(JDialog parent) { @@ -66,12 +66,12 @@ class WIRAMessageDigestPage extends WMessageDigestPage { mCAKeyType = wizardInfo.getCAKeyType(); - return super.initializePanel(info); + return super.initializePanel(info); } public void getUpdateInfo(WizardInfo info) { InstallWizardInfo wizardInfo = (InstallWizardInfo)info; - if (mDSAHashTypeBox.isVisible()) + if (mDSAHashTypeBox.isVisible()) wizardInfo.setHashType((String)mDSAHashTypeBox.getSelectedItem()); else wizardInfo.setHashType((String)mRSAHashTypeBox.getSelectedItem()); diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIRecreateDBPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIRecreateDBPage.java index f07de3134..58277732f 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIRecreateDBPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIRecreateDBPage.java @@ -39,9 +39,9 @@ class WIRecreateDBPage extends WizardBasePanel implements IWizardPanel { protected JRadioButton mNo; protected JTextArea mLabel; private static final String PANELNAME = "INSTALLDBAGAIN"; - private static final String HELPINDEX = + private static final String HELPINDEX = "install-internaldb-createdbagain-help"; - + WIRecreateDBPage(JDialog parent) { super(PANELNAME); mParent = parent; @@ -65,9 +65,9 @@ class WIRecreateDBPage extends WizardBasePanel implements IWizardPanel { return false; if (wizardInfo.isDBCreated()) { setBorder(makeTitledBorder(PANELNAME)); - return true; + return true; } - + return false; } @@ -93,7 +93,7 @@ class WIRecreateDBPage extends WizardBasePanel implements IWizardPanel { PANELNAME+"_TEXT_HEADING_LABEL")); gbc.anchor = gbc.NORTHWEST; gbc.weightx = 1.0; - gbc.insets = new Insets(COMPONENT_SPACE,COMPONENT_SPACE, + gbc.insets = new Insets(COMPONENT_SPACE,COMPONENT_SPACE, COMPONENT_SPACE,COMPONENT_SPACE); gbc.gridwidth = gbc.REMAINDER; add(mLabel, gbc); @@ -101,7 +101,7 @@ class WIRecreateDBPage extends WizardBasePanel implements IWizardPanel { mYes = makeJRadioButton("YES", false); gbc.anchor = gbc.NORTHWEST; gbc.weightx = 1.0; - gbc.insets = new Insets(COMPONENT_SPACE,COMPONENT_SPACE, + gbc.insets = new Insets(COMPONENT_SPACE,COMPONENT_SPACE, COMPONENT_SPACE,COMPONENT_SPACE); gbc.gridwidth = gbc.REMAINDER; add(mYes, gbc); @@ -109,7 +109,7 @@ class WIRecreateDBPage extends WizardBasePanel implements IWizardPanel { mNo = makeJRadioButton("NO", true); gbc.anchor = gbc.NORTHWEST; gbc.weightx = 1.0; - gbc.insets = new Insets(0,COMPONENT_SPACE, + gbc.insets = new Insets(0,COMPONENT_SPACE, COMPONENT_SPACE,COMPONENT_SPACE); gbc.gridwidth = gbc.REMAINDER; add(mNo, gbc); diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIRemoteCASubsystem.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIRemoteCASubsystem.java index 890c8ce4b..abfa468a9 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIRemoteCASubsystem.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIRemoteCASubsystem.java @@ -71,7 +71,7 @@ class WIRemoteCASubsystem extends WizardBasePanel implements IWizardPanel { return false; if (wizardInfo.isRAInstalled() && !wizardInfo.isCAInstalled()) { setBorder(makeTitledBorder(PANELNAME)); - if (wizardInfo.isKRAInstalled()) + if (wizardInfo.isKRAInstalled()) mHelpIndex = RAKRAHELPINDEX; else mHelpIndex = RAHELPINDEX; @@ -116,8 +116,8 @@ class WIRemoteCASubsystem extends WizardBasePanel implements IWizardPanel { public boolean concludePanel(WizardInfo info) { InstallWizardInfo wizardInfo = (InstallWizardInfo)info; wizardInfo.setCMHost(mHost); - wizardInfo.setCMPort(mPort); - wizardInfo.setCMTimeout(mTimeout); + wizardInfo.setCMPort(mPort); + wizardInfo.setCMTimeout(mTimeout); if ((wizardInfo.isCAInstalled() || wizardInfo.isRAInstalled()) && !wizardInfo.isKRAInstalled()) { @@ -180,9 +180,9 @@ class WIRemoteCASubsystem extends WizardBasePanel implements IWizardPanel { startProgressStatus(); CMSMessageBox dlg = new CMSMessageBox(mAdminFrame, "CGITASK", "CONFIGDB"); - + boolean ready = configCertCgi.configCert(data); - + dlg.setVisible(false); endProgressStatus(); @@ -273,7 +273,7 @@ class WIRemoteCASubsystem extends WizardBasePanel implements IWizardPanel { COMPONENT_SPACE); add(timeunitLbl, gbc); */ - + JLabel label = new JLabel(" "); CMSAdminUtil.resetGBC(gbc); gbc.anchor = gbc.WEST; diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIRemoteKRASubsystem.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIRemoteKRASubsystem.java index 29beb04af..9014a23a0 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIRemoteKRASubsystem.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIRemoteKRASubsystem.java @@ -71,7 +71,7 @@ class WIRemoteKRASubsystem extends WizardBasePanel implements IWizardPanel { mWizardInfo = wizardInfo; if (wizardInfo.isServicesDone()) return false; - if ((wizardInfo.isCAInstalled() || wizardInfo.isRAInstalled()) + if ((wizardInfo.isCAInstalled() || wizardInfo.isRAInstalled()) && !wizardInfo.isKRAInstalled()) { setBorder(makeTitledBorder(PANELNAME)); if (mYes.isSelected()) @@ -124,8 +124,8 @@ class WIRemoteKRASubsystem extends WizardBasePanel implements IWizardPanel { public boolean concludePanel(WizardInfo info) { InstallWizardInfo wizardInfo = (InstallWizardInfo)info; wizardInfo.setDRMHost(mHost); - wizardInfo.setDRMPort(mPort); - wizardInfo.setDRMTimeout(mTimeout); + wizardInfo.setDRMPort(mPort); + wizardInfo.setDRMTimeout(mTimeout); ConsoleInfo consoleInfo = wizardInfo.getAdminConsoleInfo(); CMSConfigCert configCertCgi = new CMSConfigCert(); configCertCgi.initialize(wizardInfo); @@ -180,11 +180,11 @@ class WIRemoteKRASubsystem extends WizardBasePanel implements IWizardPanel { data.put(ConfigConstants.KRA_HOST, wizardInfo.getDRMHost()); data.put(ConfigConstants.KRA_PORT, wizardInfo.getDRMPort()); data.put(ConfigConstants.KRA_TIMEOUT, wizardInfo.getDRMTimeout()); - data.put(ConfigConstants.REMOTE_KRA_ENABLED, + data.put(ConfigConstants.REMOTE_KRA_ENABLED, ConfigConstants.TRUE); wizardInfo.enableRemoteDRM(ConfigConstants.TRUE); - } else { - data.put(ConfigConstants.REMOTE_KRA_ENABLED, + } else { + data.put(ConfigConstants.REMOTE_KRA_ENABLED, ConfigConstants.FALSE); wizardInfo.enableRemoteDRM(ConfigConstants.FALSE); } @@ -196,7 +196,7 @@ class WIRemoteKRASubsystem extends WizardBasePanel implements IWizardPanel { CMSMessageBox dlg = new CMSMessageBox(mAdminFrame, "CGITASK", "CONFIGDB"); boolean ready = configCertCgi.configCert(data); dlg.setVisible(false); - + endProgressStatus(); if (!ready) { @@ -322,7 +322,7 @@ class WIRemoteKRASubsystem extends WizardBasePanel implements IWizardPanel { COMPONENT_SPACE); add(mTimeunitLbl, gbc); */ - + JLabel label = new JLabel(" "); CMSAdminUtil.resetGBC(gbc); gbc.anchor = gbc.WEST; diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIReplAgreementPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIReplAgreementPage.java index df9bb1ab0..daf48f5d8 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIReplAgreementPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIReplAgreementPage.java @@ -70,7 +70,7 @@ class WIReplAgreementPage extends WizardBasePanel implements IWizardPanel { enableAgreement(mEnable.isSelected()); } } - + private void enableAgreement(boolean e) { Color c; if (e) { @@ -108,13 +108,13 @@ class WIReplAgreementPage extends WizardBasePanel implements IWizardPanel { setBorder(makeTitledBorder(PANELNAME)); mAgreementText1.setText("masterToconsumer"); mAgreementText2.setText("consumerTomaster"); - return true; + return true; } return false; } public boolean validatePanel() { - if (!mEnable.isSelected()) + if (!mEnable.isSelected()) return true; String passwd1 = mManagerPwd1.getText().trim(); String passwdAgain1 = mManagerPwdAgain1.getText().trim(); @@ -124,7 +124,7 @@ class WIReplAgreementPage extends WizardBasePanel implements IWizardPanel { setErrorMessage("EMPTYPASSWORD"); return false; } - + if (!passwdAgain1.equals(passwd1)) { setErrorMessage("NOTSAMEPASSWORD"); return false; @@ -138,12 +138,12 @@ class WIReplAgreementPage extends WizardBasePanel implements IWizardPanel { String passwd2 = mManagerPwd2.getText().trim(); String passwdAgain2 = mManagerPwdAgain2.getText().trim(); String name2 = mAgreementText2.getText().trim(); - + if (passwd2.equals("") || passwdAgain2.equals("")) { setErrorMessage("EMPTYPASSWORD"); return false; } - + if (!passwdAgain2.equals(passwd2)) { setErrorMessage("NOTSAMEPASSWORD"); return false; @@ -177,7 +177,7 @@ class WIReplAgreementPage extends WizardBasePanel implements IWizardPanel { startProgressStatus(); /* - CMSMessageBox dlg = new CMSMessageBox(mAdminFrame, + CMSMessageBox dlg = new CMSMessageBox(mAdminFrame, "CGITASK", "CREATEREPLICATIONAGREEMENT"); */ ready = send(rawData, wizardInfo); diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIRequestResultPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIRequestResultPage.java index e3f9c53f3..cd3aa83eb 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIRequestResultPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIRequestResultPage.java @@ -46,7 +46,7 @@ public class WIRequestResultPage extends WizardBasePanel implements IWizardPanel protected String mHelpIndex = HELPINDEX; protected JTextArea mDesc; protected boolean print2RequestIDs = false; - + protected String mRequestId; WIRequestResultPage(JDialog parent) { @@ -77,7 +77,7 @@ public class WIRequestResultPage extends WizardBasePanel implements IWizardPanel String status = wizardInfo.getX509RequestStatus(); String str = wizardInfo.getX509RequestID(); String error = wizardInfo.getX509RequestError(); - + if (str != null && !str.equals("")) { if (status != null && status.equals(Constants.PR_REQUEST_REJECTED)) { // rejected @@ -92,10 +92,10 @@ public class WIRequestResultPage extends WizardBasePanel implements IWizardPanel } else if (error != null && !error.equals("")) mDesc.setText(error); else - mDesc.setText(mResource.getString(mPanelName+"_TEXT_DESC_LABEL") + + mDesc.setText(mResource.getString(mPanelName+"_TEXT_DESC_LABEL") + mResource.getString(mPanelName+"_TEXT_NOID_LABEL")); - return true; + return true; } public boolean validatePanel() { diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WISMTPPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WISMTPPage.java index 3b7ba9d00..26b7bf0c1 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WISMTPPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WISMTPPage.java @@ -36,14 +36,14 @@ class WISMTPPage extends WizardBasePanel implements IWizardPanel { private static final String PANELNAME = "SMTPWIZARD"; private static final String HELPINDEX = "configuration-kra-wizard-change-keyscheme-help"; - + WISMTPPage() { super(PANELNAME); init(); } public boolean initializePanel(WizardInfo info) { - return true; + return true; } public boolean isLastPage() { diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WISSLMessageDigestPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WISSLMessageDigestPage.java index 820c17646..6323127c6 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WISSLMessageDigestPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WISSLMessageDigestPage.java @@ -41,7 +41,7 @@ import com.netscape.management.client.util.*; * @see com.netscape.admin.certsrv.config.install */ class WISSLMessageDigestPage extends WMessageDigestPage { - + private static final String PANELNAME = "INSTALLSSLMESSAGEDIGESTWIZARD"; WISSLMessageDigestPage(JDialog parent) { @@ -66,12 +66,12 @@ class WISSLMessageDigestPage extends WMessageDigestPage { mCAKeyType = wizardInfo.getCAKeyType(); - return super.initializePanel(info); + return super.initializePanel(info); } public void getUpdateInfo(WizardInfo info) { InstallWizardInfo wizardInfo = (InstallWizardInfo)info; - if (mDSAHashTypeBox.isVisible()) + if (mDSAHashTypeBox.isVisible()) wizardInfo.setHashType((String)mDSAHashTypeBox.getSelectedItem()); else wizardInfo.setHashType((String)mRSAHashTypeBox.getSelectedItem()); diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIServerCertDNPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIServerCertDNPage.java index b6ee85acc..4d10dbcf6 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIServerCertDNPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIServerCertDNPage.java @@ -21,7 +21,7 @@ import com.netscape.admin.certsrv.wizard.*; import javax.swing.*; /** - * Subject DN page for SSL server certificate + * Subject DN page for SSL server certificate * * @author Christine Ho * @version $Revision$, $Date$ @@ -64,7 +64,7 @@ class WIServerCertDNPage extends WICertDNPage { CComp = wizardInfo.getRACComp(); } */ - + String OUComp = wizardInfo.getOUComponent(); String OComp = wizardInfo.getOComponent(); String LComp = wizardInfo.getLComponent(); @@ -94,7 +94,7 @@ class WIServerCertDNPage extends WICertDNPage { wizardInfo.setSSLSubjectName(str); populateDN(str); - if (wizardInfo.isSSLCertLocalCA()) + if (wizardInfo.isSSLCertLocalCA()) mHelpIndex = LOCALHELPINDEX; else mHelpIndex = REMOTEHELPINDEX; diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIServerCertExtensionPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIServerCertExtensionPage.java index f958c88a1..23f87205c 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIServerCertExtensionPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIServerCertExtensionPage.java @@ -55,7 +55,7 @@ class WIServerCertExtensionPage extends WICertExtensionPage { InstallWizardInfo wizardInfo = (InstallWizardInfo)info; if (wizardInfo.isCloning()) return false; - if (wizardInfo.isMigrationEnable() || + if (wizardInfo.isMigrationEnable() || wizardInfo.isSSLLocalCertDone() || wizardInfo.isSSLCertRequestDone() || wizardInfo.isSSLCertInstalledDone()) return false; diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIServerCertSubmitPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIServerCertSubmitPage.java index 417e706a5..4bf8550db 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIServerCertSubmitPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIServerCertSubmitPage.java @@ -49,14 +49,14 @@ class WIServerCertSubmitPage extends WICertSubmitPage implements IWizardPanel { public boolean initializePanel(WizardInfo info) { InstallWizardInfo wizardInfo = (InstallWizardInfo)info; - wizardInfo.put(Constants.PR_CERTIFICATE_TYPE, + wizardInfo.put(Constants.PR_CERTIFICATE_TYPE, Constants.PR_SERVER_CERT); if (wizardInfo.isCloning()) return false; - if (wizardInfo.isMigrationEnable() || - wizardInfo.isSSLCertRequestDone() || wizardInfo.isSSLCertInstalledDone() || + if (wizardInfo.isMigrationEnable() || + wizardInfo.isSSLCertRequestDone() || wizardInfo.isSSLCertInstalledDone() || !wizardInfo.isCAInstalled()) { wizardInfo.setSSLCertLocalCA(Constants.FALSE); return false; @@ -68,7 +68,7 @@ class WIServerCertSubmitPage extends WICertSubmitPage implements IWizardPanel { if (wizardInfo.isCAInstalled() && wizardInfo.isKRAInstalled()) { if (wizardInfo.isSSLCertLocalCA()) { mHelpIndex = CAKRALOCALHELPINDEX; - } else + } else mHelpIndex = CAKRAREMOTEHELPINDEX; } else if (wizardInfo.isSSLCertLocalCA()) { mHelpIndex = CALOCALHELPINDEX; diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIServerCertValidityPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIServerCertValidityPage.java index 047b9d7e8..d4513c156 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIServerCertValidityPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIServerCertValidityPage.java @@ -37,7 +37,7 @@ import com.netscape.admin.certsrv.config.*; class WIServerCertValidityPage extends WICertValidityPage { private static final String PANELNAME = "INSTALLSERVERCERTVALIDWIZARD"; private static final String HELPINDEX = "install-sslcert-validity-wizard-help"; - + WIServerCertValidityPage(JDialog parent) { super(PANELNAME); mHelpIndex = HELPINDEX; diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIServerKeyPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIServerKeyPage.java index c14d0d2b3..dcf93aa83 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIServerKeyPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIServerKeyPage.java @@ -38,9 +38,9 @@ import com.netscape.admin.certsrv.config.*; */ class WIServerKeyPage extends WIKeyPage implements IWizardPanel { private static final String PANELNAME = "INSTALLSERVERKEYWIZARD"; - private static final String LOCALHELPINDEX = + private static final String LOCALHELPINDEX = "install-serverkeylocal-configuration-wizard-help"; - private static final String REMOTEHELPINDEX = + private static final String REMOTEHELPINDEX = "install-serverkeysub-configuration-wizard-help"; WIServerKeyPage(JDialog parent) { @@ -77,7 +77,7 @@ class WIServerKeyPage extends WIKeyPage implements IWizardPanel { if (mWizardInfo.isSSLCertLocalCA()) mHelpIndex = LOCALHELPINDEX; - else + else mHelpIndex = REMOTEHELPINDEX; enableFields(); diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WIServicesPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WIServicesPage.java index fb524e62f..a9a56cc8e 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WIServicesPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WIServicesPage.java @@ -50,7 +50,7 @@ class WIServicesPage extends WizardBasePanel implements IWizardPanel { "install-services-configuration-wizard-help"; private String mClonedSubsystem = null; - + WIServicesPage(JDialog parent) { super(PANELNAME); mParent = parent; @@ -116,19 +116,19 @@ class WIServicesPage extends WizardBasePanel implements IWizardPanel { mOCSPCheckBox.setSelected(true); } else - mOCSPCheckBox.setEnabled(false); + mOCSPCheckBox.setEnabled(false); } - + Debug.println("WIServicesPage: initializePanel."); - Debug.println("WIServicesPage: mClonedSubsystem " + mClonedSubsystem); + Debug.println("WIServicesPage: mClonedSubsystem " + mClonedSubsystem); if (wizardInfo.isServicesDone()) return false; - setBorder(makeTitledBorder(PANELNAME)); + setBorder(makeTitledBorder(PANELNAME)); String subsystemList = wizardInfo.getSubsystems(); if (subsystemList == null || subsystemList.equals("")) { if (!mRACheckBox.isSelected() && mClonedSubsystem == null) @@ -169,7 +169,7 @@ class WIServicesPage extends WizardBasePanel implements IWizardPanel { start = end+1; } while( start < subsystemList.length() ); - return true; + return true; } public boolean validatePanel() { @@ -261,7 +261,7 @@ class WIServicesPage extends WizardBasePanel implements IWizardPanel { ConfigConstants.FALSE; wizardInfo.enableRemoteDRM(ConfigConstants.FALSE); startProgressStatus(); - + //CMSMessageBox dlg = new CMSMessageBox(mAdminFrame, "CGITASK", "CREATESUB"); boolean ready = send(rawData, wizardInfo); //dlg.setVisible(false); @@ -341,7 +341,7 @@ class WIServicesPage extends WizardBasePanel implements IWizardPanel { COMPONENT_SPACE,COMPONENT_SPACE); gbc.gridwidth = gbc.REMAINDER; add(mServiceLbl, gbc); - + mCACheckBox = makeJRadioButton("CA"); CMSAdminUtil.resetGBC(gbc); gbc.anchor = gbc.NORTHWEST; @@ -387,7 +387,7 @@ class WIServicesPage extends WizardBasePanel implements IWizardPanel { gbc.insets = new Insets(COMPONENT_SPACE,COMPONENT_SPACE, COMPONENT_SPACE,COMPONENT_SPACE); gbc.gridwidth = gbc.REMAINDER; add(mTKSCheckBox, gbc); - + JLabel dummy = new JLabel(" "); CMSAdminUtil.resetGBC(gbc); gbc.anchor = gbc.NORTHWEST; @@ -407,7 +407,7 @@ class WIServicesPage extends WizardBasePanel implements IWizardPanel { wizardInfo.setInstalledCA(ConfigConstants.FALSE); if (mRACheckBox.isSelected()) wizardInfo.setInstalledRA(ConfigConstants.TRUE); - else + else wizardInfo.setInstalledRA(ConfigConstants.FALSE); if (mKRACheckBox.isSelected()) wizardInfo.setInstalledKRA(ConfigConstants.TRUE); diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WISingleSignonPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WISingleSignonPage.java index 49e06ac1e..3241ca98e 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WISingleSignonPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WISingleSignonPage.java @@ -69,7 +69,7 @@ class WISingleSignonPage extends WizardBasePanel implements IWizardPanel, CommCl protected String mSection = ""; protected String mErrorMsg = ""; private ConsoleInfo _consoleInfo = null; - + WISingleSignonPage(JDialog parent) { super(PANELNAME); mParent = parent; @@ -92,7 +92,7 @@ class WISingleSignonPage extends WizardBasePanel implements IWizardPanel, CommCl String tokenList = wizardInfo.getTokensList(); StringTokenizer st1 = new StringTokenizer(tokenList, ":"); - + mTokenBox.removeAllItems(); while (st1.hasMoreElements()) { String t1 = (String)st1.nextElement(); @@ -116,7 +116,7 @@ class WISingleSignonPage extends WizardBasePanel implements IWizardPanel, CommCl capassword = ""; ca = false; } - + if (wizardInfo.isRAInstalled()) { tokenname = wizardInfo.getRATokenName(); password = (String)wizardInfo.get("TOKEN:"+tokenname); @@ -153,7 +153,7 @@ class WISingleSignonPage extends WizardBasePanel implements IWizardPanel, CommCl sslpassword = password; } setBorder(makeTitledBorder(PANELNAME)); - return true; + return true; } public boolean validatePanel() { @@ -351,25 +351,25 @@ class WISingleSignonPage extends WizardBasePanel implements IWizardPanel, CommCl rawData = rawData+"&"+tokenname+"="+capassword; tags = tags+":"+tokenname; } - + if (!rapassword.equals("")) { tokenname = wizardInfo.getRATokenName(); rawData = rawData+"&"+tokenname+"="+rapassword; tags = tags+":"+tokenname; } - + if (!krapassword.equals("")) { tokenname = wizardInfo.getKRATokenName(); rawData = rawData+"&"+tokenname+"="+krapassword; tags = tags+":"+tokenname; } - + if (!sslpassword.equals("")) { tokenname = wizardInfo.getSSLTokenName(); rawData = rawData+"&"+tokenname+"="+sslpassword; tags = tags+":"+tokenname; } - + if (mPasswordConf.isSelected()) { rawData = rawData+"&"+ConfigConstants.PR_DELETE_PASSWD_CONF+"="+ ConfigConstants.TRUE; @@ -379,17 +379,17 @@ class WISingleSignonPage extends WizardBasePanel implements IWizardPanel, CommCl } rawData = rawData+"&"+ConfigConstants.PR_SINGLE_SIGNON_PW_TAGS+"="+tags; //data.put(ConfigConstants.PR_SINGLE_SIGNON, ConfigConstants.FALSE); - + startProgressStatus(); //CMSMessageBox dlg = new CMSMessageBox(mAdminFrame, "CGITASK", "CREATESSON"); - + // boolean ready = send(rawData, wizardInfo); boolean ready = true; if (ready) { rawData = ConfigConstants.TASKID+"="+TaskId.TASK_MISCELLANEOUS; /* - data.put(ConfigConstants.PR_ADMIN_PASSWD, + data.put(ConfigConstants.PR_ADMIN_PASSWD, (String)consoleInfo.get(ConfigConstants.PR_ADMIN_PASSWD)); */ ready = send(rawData, wizardInfo); @@ -402,7 +402,7 @@ class WISingleSignonPage extends WizardBasePanel implements IWizardPanel, CommCl } else setErrorMessage(str); //dlg.setVisible(false); - + endProgressStatus(); return false; } @@ -410,7 +410,7 @@ class WISingleSignonPage extends WizardBasePanel implements IWizardPanel, CommCl //startServer(wizardInfo); //dlg.setVisible(false); - + endProgressStatus(); if (!ready) { @@ -458,7 +458,7 @@ class WISingleSignonPage extends WizardBasePanel implements IWizardPanel, CommCl gbc.weightx = 1.0; gbc.insets = new Insets(COMPONENT_SPACE, COMPONENT_SPACE, COMPONENT_SPACE, COMPONENT_SPACE); - add(panel1, gbc); + add(panel1, gbc); */ JTextArea heading = createTextArea(mResource.getString( @@ -494,7 +494,7 @@ class WISingleSignonPage extends WizardBasePanel implements IWizardPanel, CommCl gbc.weightx = 1.0; gbc.insets = new Insets(COMPONENT_SPACE, COMPONENT_SPACE, 0, 0); add(dum, gbc); - + JTextArea passwordConfText = createTextArea(mResource.getString( PANELNAME+"_TEXT_PASSWDCONF_LABEL")); CMSAdminUtil.resetGBC(gbc); @@ -506,7 +506,7 @@ class WISingleSignonPage extends WizardBasePanel implements IWizardPanel, CommCl gbc.gridwidth = gbc.REMAINDER; add(passwordConfText, gbc); - mPasswordConf = makeJCheckBox("PASSWDCONF"); + mPasswordConf = makeJCheckBox("PASSWDCONF"); CMSAdminUtil.resetGBC(gbc); gbc.anchor = gbc.NORTHWEST; gbc.weightx = 1.0; diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WITokenLogonPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WITokenLogonPage.java index b3ecdbf5a..5be9c09af 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WITokenLogonPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WITokenLogonPage.java @@ -29,7 +29,7 @@ import com.netscape.admin.certsrv.task.*; import com.netscape.management.client.console.*; /** - * This panel asks for the information of the current internal database. + * This panel asks for the information of the current internal database. * * @author Christine Ho * @version $Revision$, $Date$ @@ -78,7 +78,7 @@ class WITokenLogonPage extends WizardBasePanel implements IWizardPanel { } index++; } - + if (inits.equals(Constants.FALSE)) { mDesc.setText(mResource.getString(mPanelName+"_TEXT_INIT_LABEL")); enableFields(mPasswordAgainLabel, mPasswordAgainText, true, mActiveColor); @@ -92,7 +92,7 @@ class WITokenLogonPage extends WizardBasePanel implements IWizardPanel { mTokenText.setBackground(getBackground()); CMSAdminUtil.repaintComp(mTokenText); - return true; + return true; } public boolean validatePanel() { @@ -204,7 +204,7 @@ class WITokenLogonPage extends WizardBasePanel implements IWizardPanel { gbc.insets = new Insets(0, 0, COMPONENT_SPACE, COMPONENT_SPACE); add(passwordLabel, gbc); - + CMSAdminUtil.resetGBC(gbc); mPasswordText = makeJPasswordField(30); gbc.anchor = gbc.NORTHWEST; @@ -222,7 +222,7 @@ class WITokenLogonPage extends WizardBasePanel implements IWizardPanel { gbc.insets = new Insets(0, COMPONENT_SPACE, COMPONENT_SPACE, COMPONENT_SPACE); add(mPasswordAgainLabel, gbc); - + CMSAdminUtil.resetGBC(gbc); mPasswordAgainText = makeJPasswordField(30); gbc.anchor = gbc.NORTHWEST; diff --git a/base/console/src/com/netscape/admin/certsrv/config/install/WITrustDBPage.java b/base/console/src/com/netscape/admin/certsrv/config/install/WITrustDBPage.java index cd19963ff..8f6d449b5 100644 --- a/base/console/src/com/netscape/admin/certsrv/config/install/WITrustDBPage.java +++ b/base/console/src/com/netscape/admin/certsrv/config/install/WITrustDBPage.java @@ -37,7 +37,7 @@ class WITrustDBPage extends WizardBasePanel implements IWizardPanel { private static final String PANELNAME = "TRUSTDBWIZARD"; private static final String HELPINDEX = "configuration-kra-wizard-change-keyscheme-help"; - + WITrustDBPage() { super(PANELNAME); init(); @@ -48,7 +48,7 @@ class WITrustDBPage extends WizardBasePanel implements IWizardPanel { } public boolean initializePanel(WizardInfo info) { - return true; + return true; } public boolean validatePanel() { @@ -88,7 +88,7 @@ class WITrustDBPage extends WizardBasePanel implements IWizardPanel { gbc.insets = new Insets(COMPONENT_SPACE,COMPONENT_SPACE, COMPONENT_SPACE,COMPONENT_SPACE); add(passwdLbl, gbc); - + mPassword = makeJPasswordField(20); CMSAdminUtil.resetGBC(gbc); gbc.anchor = gbc.NORTHWEST; @@ -104,7 +104,7 @@ class WITrustDBPage extends WizardBasePanel implements IWizardPanel { gbc.insets = new Insets(COMPONENT_SPACE,COMPONENT_SPACE, COMPONENT_SPACE,COMPONENT_SPACE); add(dummy, gbc); - + JLabel passwdAgainLbl = makeJLabel("PASSWDAGAIN"); CMSAdminUtil.resetGBC(gbc); gbc.anchor = gbc.NORTHEAST; |