/** * Returns the controls to be sent to the server. * * @see <a href="../../../../api/com/novell/ldap/LDAPConstraints.html#getControls()"> com.novell.ldap.LDAPConstraints.getControls()</a> */ public LDAPControl[] getControls() { com.novell.ldap.LDAPControl[] controls = cons.getControls(); if( controls == null) { return null; } LDAPControl[] ietfControls = new LDAPControl[controls.length]; for( int i=0; i < controls.length; i++) { ietfControls[i] = new LDAPControl( controls[i]); } return ietfControls; }
public void add(LDAPEntry entry, LDAPConstraints cont) throws LDAPException { LDAPControl[] conts = cont != null ? cont.getControls() : null; LDAPAddRequest add = new LDAPAddRequest(entry,conts); this.sendMessage(add); }
public void delete(String dn, LDAPConstraints consts) throws LDAPException { LDAPControl[] controls = consts != null ? consts.getControls() : null; LDAPDeleteRequest msg = new LDAPDeleteRequest(dn,controls); this.sendMessage(msg); }
public void modify( String dn, LDAPModification[] mods, LDAPConstraints consts) throws LDAPException { LDAPControl[] controls = consts != null ? consts.getControls() : null; LDAPModifyRequest msg = new LDAPModifyRequest(dn,mods,controls); this.sendMessage(msg); }
public void delete(String dn, LDAPConstraints consts) throws LDAPException { LDAPControl[] controls = consts != null ? consts.getControls() : null; LDAPDeleteRequest msg = new LDAPDeleteRequest(dn,controls); this.sendMessage(msg); }
/** * Formulates the extended operation, constraints into an * LDAPMessage and returns the LDAPMessage. This is used by * extendedOperation and startTLS which needs the LDAPMessage to * get the MessageID. */ protected LDAPMessage makeExtendedOperation(LDAPExtendedOperation op, LDAPConstraints cons) throws LDAPException { // Use default constraints if none-specified if(cons == null) cons = defSearchCons; // error check the parameters if (op.getID() == null) { // Invalid extended operation parameter, no OID specified throw new IllegalArgumentException( ExceptionMessages.OP_PARAM_ERROR); } return new LDAPExtendedRequest(op, cons.getControls()); }
public void rename( String dn, String newRdn, String newParentDN, boolean delOld, LDAPConstraints constr) throws LDAPException { LDAPControl[] controls = constr != null ? constr.getControls() : null; LDAPModifyDNRequest msg = new LDAPModifyDNRequest(dn,newRdn,newParentDN,delOld,controls); this.sendMessage(msg); }
public void rename( String dn, String newRdn, String newParentDN, boolean delOld, LDAPConstraints constr) throws LDAPException { LDAPControl[] controls = constr != null ? constr.getControls() : null; LDAPModifyDNRequest msg = new LDAPModifyDNRequest(dn,newRdn,newParentDN,delOld,controls); this.sendMessage(msg); }
LDAPMessage msg = new LDAPAddRequest( entry, cons.getControls());
cons = defSearchCons; LDAPMessage msg = new LDAPDeleteRequest( dn, cons.getControls());
cons = defSearchCons; LDAPMessage msg = new LDAPModifyRequest( dn, mods, cons.getControls());
deleteOldRdn, cons.getControls());
attr.getName(), attr.getByteValue(), cons.getControls());
LDAPControl[] lsc = cons.getControls(); if( lsc != null) { super.setControls((LDAPControl[])lsc.clone());
LDAPConstraints consts) throws LDAPException { LDAPControl[] controls = consts != null ? consts.getControls() : null;
dn = ""; // set to null if anonymous LDAPMessage msg = new LDAPBindRequest( version, dn, passwd, cons.getControls());
newCons.setReferralHandler(cons.getReferralHandler()); newCons.setReferralFollowing(cons.getReferralFollowing()); LDAPControl[] lsc = cons.getControls(); if( lsc != null) { newCons.setControls( lsc);
mechanism, toWrite), cons.getControls());
cont = cons.getControls();