/** * Write an LDAP record into LDIF file as LDAPContent data. * An LDAPEntry is written as a DSML SearchResultEntry record. * * <p>You are not allowed to mix request data and content data</p> * * @param entry LDAPEntry object * * @param controls Controls that were returned with this entry * * @throws LDAPLocalException if data and content are mixed. * * @see com.novell.ldap.LDAPEntry */ public void writeEntry( LDAPEntry entry, LDAPControl[] controls) throws LDAPLocalException { checkState( entry); myWriteEntry( entry, controls); return; }
/** * Write an LDAP record into LDIF file as LDAPContent data. * An LDAPEntry is written as a DSML SearchResultEntry record. * * <p>You are not allowed to mix request data and content data</p> * * @param entry LDAPEntry object * * @throws LDAPLocalException if data and content are mixed. * * @throws LDAPLocalException if an I/O error occurs. * * @see com.novell.ldap.LDAPEntry */ public void writeEntry( LDAPEntry entry) throws LDAPLocalException { checkState( entry); myWriteEntry( entry, null); return; }
/** * Write an LDAP record into LDIF file as LDAPContent data. * An LDAPEntry is written as a DSML SearchResultEntry record. * * <p>You are not allowed to mix request data and content data</p> * * @param entry object * * @param controls Controls that were returned with this entry * * @param requestID the String that associates this response with the request * * @throws LDAPLocalException if data and content are mixed. * * @see com.novell.ldap.LDAPEntry */ public void writeEntry( LDAPEntry entry, LDAPControl[] controls, String requestID) throws LDAPLocalException { checkState( entry); Element e = myWriteEntry( entry, controls); if( (requestID != null) && (requestID.length() != 0)) { e.setAttribute("requestID", requestID); } return; }
e = myWriteEntry( ((LDAPSearchResult)message).getEntry(), message.getControls()); break;