| | |
| | | |
| | | import static org.forgerock.util.Utils.*; |
| | | import static org.opends.messages.AdminToolMessages.*; |
| | | import static org.opends.server.util.StaticUtils.toLowerCase; |
| | | import static org.opends.server.util.CollectionUtils.*; |
| | | import static org.opends.server.util.StaticUtils.*; |
| | | |
| | | import java.awt.Component; |
| | | import java.awt.GridBagConstraints; |
| | |
| | | import java.util.Random; |
| | | import java.util.Set; |
| | | |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | import org.forgerock.i18n.slf4j.LocalizedLogger; |
| | | |
| | | import javax.swing.Box; |
| | | import javax.swing.JButton; |
| | | import javax.swing.JLabel; |
| | |
| | | import javax.swing.event.ListSelectionEvent; |
| | | import javax.swing.event.ListSelectionListener; |
| | | |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | import org.forgerock.i18n.slf4j.LocalizedLogger; |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.opends.guitools.controlpanel.datamodel.ControlPanelInfo; |
| | | import org.opends.guitools.controlpanel.datamodel.CustomSearchResult; |
| | | import org.opends.guitools.controlpanel.datamodel.ServerDescriptor; |
| | |
| | | import org.opends.server.types.Attribute; |
| | | import org.opends.server.types.AttributeBuilder; |
| | | import org.opends.server.types.AttributeType; |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.opends.server.types.DN; |
| | | import org.opends.server.types.Entry; |
| | | import org.opends.server.types.ObjectClass; |
| | |
| | | }; |
| | | for (int j=0; j < attrNames.length; j++) |
| | | { |
| | | List<Object> attrValues = new ArrayList<>(1); |
| | | attrValues.add(values[j] + r.nextInt()); |
| | | csr.set(attrNames[j], attrValues); |
| | | Object o = values[j] + r.nextInt(); |
| | | csr.set(attrNames[j], newArrayList(o)); |
| | | } |
| | | try |
| | | { |
| | |
| | | }; |
| | | for (int j=0; j < attrNames.length; j++) |
| | | { |
| | | List<Object> attrValues = new ArrayList<>(1); |
| | | attrValues.add(values[j]); |
| | | csr.set(attrNames[j], attrValues); |
| | | Object o = values[j]; |
| | | csr.set(attrNames[j], newArrayList(o)); |
| | | } |
| | | try |
| | | { |
| | |
| | | } |
| | | builder.add(bs); |
| | | } |
| | | List<Attribute> attrList = new ArrayList<>(1); |
| | | attrList.add(builder.toAttribute()); |
| | | |
| | | List<Attribute> attrList = builder.toAttributeList(); |
| | | if (attrType.isOperational()) |
| | | { |
| | | operationalAttributes.put(attrType, attrList); |