| | |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | * Portions Copyright 2014-2016 ForgeRock AS |
| | | */ |
| | | |
| | | package org.opends.guitools.controlpanel.ui; |
| | |
| | | import javax.swing.JLabel; |
| | | import javax.swing.JTextField; |
| | | |
| | | import org.opends.guitools.controlpanel.util.Utilities; |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | |
| | | /** |
| | | * The panel to create a domain. |
| | | * |
| | | */ |
| | | /** The panel to create a domain. */ |
| | | public class NewDomainPanel extends NewOrganizationPanel |
| | | { |
| | | private static final long serialVersionUID = -595396547491445219L; |
| | |
| | | } |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | protected void updateDNValue() |
| | | { |
| | | String value = name.getText().trim(); |
| | | if (value.length() > 0) |
| | | { |
| | | String rdn = Utilities.getRDNString("dc", value); |
| | | dn.setText(rdn+","+parentNode.getDN()); |
| | | dn.setText("dc" + "=" + value + "," + parentNode.getDN()); |
| | | } |
| | | else |
| | | { |
| | |
| | | } |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | protected String getLDIF() |
| | | { |
| | | StringBuilder sb = new StringBuilder(); |