Interface Substitutor


public interface Substitutor
  • Method Summary

    Modifier and Type
    Method
    Description
    replaceRdns(DN original, DN dn_add, DN dn_remove)
    Substitute some RDNs within the DN with new values derived from a substitution specification
    substitute(Attribute at, DN dn_remove, DN dn_add)
    Modify the value of this attribute according to a predetermined substitution specification.
  • Method Details

    • substitute

      Attribute substitute(Attribute at, DN dn_remove, DN dn_add) throws SubstitutionException
      Modify the value of this attribute according to a predetermined substitution specification.
      Parameters:
      at - Attribute to modify, which may not be null
      dn_remove - DN value to remove from attribute, which may be null
      dn_add - DN value to add which may be null
      Returns:
      updated attribute
      Throws:
      SubstitutionException - if substitution operation fails for some reason
    • replaceRdns

      DN replaceRdns(DN original, DN dn_add, DN dn_remove) throws SubstitutionException
      Substitute some RDNs within the DN with new values derived from a substitution specification
      Parameters:
      original - base DN which may not be null
      dn_add - value to add to DN-syntax RDNs which may be null
      dn_remove - value to remove from DN-syntax RDNs which may be null
      Returns:
      possibly updated DN
      Throws:
      SubstitutionException