| | |
| | | import org.opends.server.core.DirectoryServer; |
| | | import org.opends.server.types.Attribute; |
| | | import org.opends.server.types.AttributeType; |
| | | import org.opends.server.types.AttributeValue; |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.opends.server.types.DN; |
| | | import org.opends.server.types.Entry; |
| | | import org.opends.server.types.LDIFImportConfig; |
| | |
| | | |
| | | /** |
| | | * Panel that appears when the user defines a new index. |
| | | * |
| | | */ |
| | | public class NewIndexPanel extends AbstractIndexPanel |
| | | { |
| | |
| | | |
| | | private String getAttributeName() |
| | | { |
| | | String attrName; |
| | | CategorizedComboBoxElement o = |
| | | (CategorizedComboBoxElement)attributes.getSelectedItem(); |
| | | if (o != null) |
| | | { |
| | | attrName = o.getValue().toString(); |
| | | } |
| | | else |
| | | { |
| | | attrName = null; |
| | | } |
| | | return attrName; |
| | | return o != null ? o.toString() : null; |
| | | } |
| | | |
| | | /** |
| | |
| | | Attributes attrs = new BasicAttributes(); |
| | | |
| | | BasicAttribute oc = new BasicAttribute("objectClass"); |
| | | Iterator<AttributeValue> it = |
| | | Iterator<ByteString> it = |
| | | indexEntry.getObjectClassAttribute().iterator(); |
| | | while (it.hasNext()) |
| | | { |
| | | oc.add(it.next().getValue().toString()); |
| | | oc.add(it.next().toString()); |
| | | } |
| | | attrs.put(oc); |
| | | |
| | |
| | | it = odsAttr.iterator(); |
| | | while (it.hasNext()) |
| | | { |
| | | attr.add(it.next().getValue().toString()); |
| | | attr.add(it.next().toString()); |
| | | } |
| | | attrs.put(attr); |
| | | } |