Class JDAPModifyRDNRequest

  • All Implemented Interfaces:
    JDAPProtocolOp

    public class JDAPModifyRDNRequest
    extends JDAPBaseDNRequest
    implements JDAPProtocolOp
    This class implements the modify rdn request. This object is sent to the ldap server.
     ModifyRDNRequest ::= [APPLICATION 12] SEQUENCE {
       entry LDAPDN,
       newrdn RelativeLDAPDN,
       deleteoldrdn BOOLEAN
     }
     
    Note that LDAPv3 rename this object to JDAPModifyDNRequest and has the following defintion:
     ModifyDNRequest ::= [APPLICATION 12] SEQUENCE {
       entry LDAPDN,
       newrdn RelativeLDAPDN,
       deleteoldrdn BOOLEAN,
       newSuperior [0] LDAPDN OPTIONAL
     }
     
    Version:
    1.0
    • Field Detail

      • m_old_dn

        protected java.lang.String m_old_dn
        Internal variables
      • m_new_rdn

        protected java.lang.String m_new_rdn
      • m_delete_old_dn

        protected boolean m_delete_old_dn
      • m_new_superior

        protected java.lang.String m_new_superior
    • Constructor Detail

      • JDAPModifyRDNRequest

        public JDAPModifyRDNRequest​(java.lang.String old_dn,
                                    java.lang.String new_rdn,
                                    boolean delete_old_dn)
        Constructs modify RDN request.
        Parameters:
        old_dn - old distinguished name
        new_rdn - new distinguished name
        delete_old_dn - delete the old distinguished name
      • JDAPModifyRDNRequest

        public JDAPModifyRDNRequest​(java.lang.String old_dn,
                                    java.lang.String new_rdn,
                                    boolean delete_old_dn,
                                    java.lang.String new_superior)
        Constructs modify DN request.
        Parameters:
        old_dn - old distinguished name
        new_rdn - new distinguished name
        delete_old_dn - delete the old distinguished name
        new_superior - parent dn
    • Method Detail

      • getType

        public int getType()
        Retrieves the protocol operation type.
        Specified by:
        getType in interface JDAPProtocolOp
        Returns:
        protocol type
      • setBaseDN

        public void setBaseDN​(java.lang.String basedn)
        Sets the base dn.
        Specified by:
        setBaseDN in class JDAPBaseDNRequest
        Parameters:
        basedn - base dn
      • getBaseDN

        public java.lang.String getBaseDN()
        Gets the base dn component.
        Specified by:
        getBaseDN in class JDAPBaseDNRequest
        Returns:
        base dn
      • toString

        public java.lang.String toString()
        Gets the string representation of the request.
        Specified by:
        toString in interface JDAPProtocolOp
        Overrides:
        toString in class java.lang.Object
        Returns:
        string representation