| | |
| | | import org.opends.server.api.MonitorProvider; |
| | | import org.opends.server.core.DirectoryServer; |
| | | import org.opends.server.protocols.jmx.Credential; |
| | | import org.opends.server.types.AttributeType; |
| | | import org.opends.server.types.AttributeValue; |
| | | import org.opends.server.types.DebugLogLevel; |
| | | import org.opends.server.types.DirectoryException; |
| | | import org.opends.server.types.DN; |
| | | import org.opends.server.types.InvokableMethod; |
| | | import org.opends.server.types.ResultCode; |
| | | import org.opends.server.types.SearchScope; |
| | | |
| | | import static org.opends.server.loggers.debug.DebugLogger.*; |
| | | import static org.opends.server.loggers.ErrorLogger.*; |
| | |
| | | import static org.opends.server.util.ServerConstants.*; |
| | | import static org.opends.server.util.StaticUtils.*; |
| | | import org.opends.server.protocols.jmx.JmxClientConnection; |
| | | import org.opends.server.protocols.asn1.ASN1OctetString; |
| | | import org.opends.server.protocols.internal.InternalClientConnection; |
| | | import org.opends.server.protocols.ldap.LDAPFilter; |
| | | import org.opends.server.protocols.internal.InternalSearchOperation ; |
| | | import org.opends.server.types.LDAPException; |
| | | |
| | | import org.opends.server.types.*; |
| | | |
| | | |
| | | /** |
| | |
| | | if (iterator.hasNext()) |
| | | { |
| | | ArrayList<String> stringValues = new ArrayList<String>(); |
| | | stringValues.add(value.getStringValue()); |
| | | stringValues.add(value.getValue().toString()); |
| | | |
| | | while (iterator.hasNext()) |
| | | { |
| | | value = iterator.next(); |
| | | stringValues.add(value.getStringValue()); |
| | | stringValues.add(value.getValue().toString()); |
| | | } |
| | | |
| | | String[] valueArray = new String[stringValues.size()]; |
| | |
| | | } |
| | | else |
| | | { |
| | | return new Attribute(name, value.getStringValue()); |
| | | return new Attribute(name, value.getValue().toString()); |
| | | } |
| | | } |
| | | } |
| | |
| | | InternalSearchOperation op=null; |
| | | if (clientConnection instanceof JmxClientConnection) { |
| | | op = ((JmxClientConnection)clientConnection).processSearch( |
| | | new ASN1OctetString(configEntryDN.toString()), |
| | | ByteString.valueOf(configEntryDN.toString()), |
| | | SearchScope.BASE_OBJECT, filter); |
| | | } |
| | | else if (clientConnection instanceof InternalClientConnection) { |
| | | op = ((InternalClientConnection)clientConnection).processSearch( |
| | | new ASN1OctetString(configEntryDN.toString()), |
| | | ByteString.valueOf(configEntryDN.toString()), |
| | | SearchScope.BASE_OBJECT, filter); |
| | | } |
| | | // BUG : op may be null |
| | |
| | | InternalSearchOperation op=null; |
| | | if (clientConnection instanceof JmxClientConnection) { |
| | | op = ((JmxClientConnection)clientConnection).processSearch( |
| | | new ASN1OctetString(configEntryDN.toString()), |
| | | ByteString.valueOf(configEntryDN.toString()), |
| | | SearchScope.BASE_OBJECT, filter); |
| | | } |
| | | else if (clientConnection instanceof InternalClientConnection) { |
| | | op = ((InternalClientConnection)clientConnection).processSearch( |
| | | new ASN1OctetString(configEntryDN.toString()), |
| | | ByteString.valueOf(configEntryDN.toString()), |
| | | SearchScope.BASE_OBJECT, filter); |
| | | } |
| | | // BUG: op may be null |
| | |
| | | if (iterator.hasNext()) |
| | | { |
| | | ArrayList<String> stringValues = new ArrayList<String>(); |
| | | stringValues.add(value.getStringValue()); |
| | | stringValues.add(value.getValue().toString()); |
| | | |
| | | while (iterator.hasNext()) |
| | | { |
| | | value = iterator.next(); |
| | | stringValues.add(value.getStringValue()); |
| | | stringValues.add(value.getValue().toString()); |
| | | } |
| | | |
| | | String[] valueArray = new String[stringValues.size()]; |
| | |
| | | } |
| | | else |
| | | { |
| | | attrList.add(new Attribute(name, value.getStringValue())); |
| | | attrList.add(new Attribute(name, value.getValue().toString())); |
| | | break monitorLoop; |
| | | } |
| | | } |