| | |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | * Portions Copyright 2014-2016 ForgeRock AS |
| | | */ |
| | | |
| | | /* |
| | |
| | | import org.opends.guitools.controlpanel.util.Utilities; |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | |
| | | /** |
| | | * The panel used to create a new organization. |
| | | * |
| | | */ |
| | | /** The panel used to create a new organization. */ |
| | | public class NewOrganizationPanel extends AbstractNewEntryPanel |
| | | { |
| | | private static final long serialVersionUID = 6560126551083160773L; |
| | |
| | | String value = name.getText().trim(); |
| | | if (value.length() > 0) |
| | | { |
| | | String rdn = Utilities.getRDNString("o", value); |
| | | dn.setText(rdn+","+parentNode.getDN()); |
| | | dn.setText("o" + "=" + value + "," + parentNode.getDN()); |
| | | } |
| | | else |
| | | { |
| | |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * Returns the LDIF representing the new entry. |
| | | * @return the LDIF representing the new entry. |
| | | */ |
| | | @Override |
| | | protected String getLDIF() |
| | | { |
| | | StringBuilder sb = new StringBuilder(); |