Package javax.naming.ldap

Examples of javax.naming.ldap.Control


        // notify listener
        Control[] cs = element.response.getControls();
        if (cs != null) {
            for (int i = 0; i < cs.length; i++) {
                Control control = cs[i];
                if (ECNotificationControl.OID.equals(control.getID())) {
                    psr.receiveNotificationHook(new ECNotificationControl(
                            control.getEncodedValue()));
                }
            }
        }
    }
View Full Code Here


        // notify listener
        Control[] cs = element.response.getControls();
        if (cs != null) {
            for (int i = 0; i < cs.length; i++) {
                Control control = cs[i];
                if (ECNotificationControl.OID.equals(control.getID())) {
                    psr.receiveNotificationHook(new ECNotificationControl(
                            control.getEncodedValue()));
                }
            }
        }
    }
View Full Code Here

        // controls
        List<Control> controlList = new ArrayList<Control>();
        if ( useTreeDeleteControl
            && browserConnection.getRootDSE().isControlSupported( StudioControl.TREEDELETE_CONTROL.getOid() ) )
        {
            Control treeDeleteControl = new BasicControl( StudioControl.TREEDELETE_CONTROL.getOid(),
                StudioControl.TREEDELETE_CONTROL.isCritical(), StudioControl.TREEDELETE_CONTROL.getControlValue() );
            controlList.add( treeDeleteControl );
        }
        Control[] controls = controlList.toArray( new Control[controlList.size()] );
View Full Code Here

        // supply a recursion control such as Oracle's CONNECT_BY (2.16.840.1.113894.1.8.3)
        if (!sUserDN.equals("*") && (recursiveControlId.length() > 0)) {
          if (dirContext instanceof LdapContext) {
            LdapContext ldapContext = (LdapContext)dirContext;
            Control[] aControls = ldapContext.getRequestControls();
            Control recursiveControl = new BasicControl(recursiveControlId);
            List<Control> lControls = new ArrayList<Control>();
            if (aControls != null) {
              for (Control ctl: aControls) {
                lControls.add(ctl);
              }
View Full Code Here

   * Returns the request controls to search user data.
   * @return the request controls to search user data.
   */
  Control[] getRequestControls()
  {
    Control ctls[];
    if (followReferrals)
    {
      ctls = new Control[sorted ? 2 : 1];
    }
    else
View Full Code Here

TOP

Related Classes of javax.naming.ldap.Control

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.