Package com.isode.dsapi.bulk
Interface Substitutor
public interface Substitutor
-
Method Summary
Modifier and TypeMethodDescriptionreplaceRdns(DN original, DN dn_add, DN dn_remove) Substitute some RDNs within the DN with new values derived from a substitution specificationsubstitute(Attribute at, DN dn_remove, DN dn_add) Modify the value of this attribute according to a predetermined substitution specification.
-
Method Details
-
substitute
Modify the value of this attribute according to a predetermined substitution specification.- Parameters:
at- Attribute to modify, which may not be nulldn_remove- DN value to remove from attribute, which may be nulldn_add- DN value to add which may be null- Returns:
- updated attribute
- Throws:
SubstitutionException- if substitution operation fails for some reason
-
replaceRdns
Substitute some RDNs within the DN with new values derived from a substitution specification- Parameters:
original- base DN which may not be nulldn_add- value to add to DN-syntax RDNs which may be nulldn_remove- value to remove from DN-syntax RDNs which may be null- Returns:
- possibly updated DN
- Throws:
SubstitutionException
-