use of org.apache.directory.api.ldap.model.exception.LdapException in project directory-ldap-api by apache.
the class DefaultSchemaLoader method loadDitStructureRules.
private void loadDitStructureRules(Attribute ditStructureRules) throws LdapException {
if (ditStructureRules == null) {
return;
}
for (Value value : ditStructureRules) {
String desc = value.getValue();
try {
DitStructureRule ditStructureRule = DSR_DESCR_SCHEMA_PARSER.parseDITStructureRuleDescription(desc);
updateSchemas(ditStructureRule);
} catch (ParseException pe) {
throw new LdapException(pe);
}
}
}
use of org.apache.directory.api.ldap.model.exception.LdapException in project directory-ldap-api by apache.
the class DefaultSchemaLoader method loadObjectClasses.
private void loadObjectClasses(Attribute objectClasses) throws LdapException {
if (objectClasses == null) {
return;
}
for (Value value : objectClasses) {
String desc = value.getValue();
try {
ObjectClass objectClass = OC_DESCR_SCHEMA_PARSER.parseObjectClassDescription(desc);
updateSchemas(objectClass);
} catch (ParseException pe) {
throw new LdapException(pe);
}
}
}
use of org.apache.directory.api.ldap.model.exception.LdapException in project directory-ldap-api by apache.
the class DefaultSchemaLoader method loadNameForms.
private void loadNameForms(Attribute nameForms) throws LdapException {
if (nameForms == null) {
return;
}
for (Value value : nameForms) {
String desc = value.getValue();
try {
NameForm nameForm = NF_DESCR_SCHEMA_PARSER.parseNameFormDescription(desc);
updateSchemas(nameForm);
} catch (ParseException pe) {
throw new LdapException(pe);
}
}
}
use of org.apache.directory.api.ldap.model.exception.LdapException in project directory-ldap-api by apache.
the class DefaultSchemaLoader method loadLdapSyntaxes.
private void loadLdapSyntaxes(Attribute ldapSyntaxes) throws LdapException {
if (ldapSyntaxes == null) {
return;
}
for (Value value : ldapSyntaxes) {
String desc = value.getValue();
try {
LdapSyntax ldapSyntax = LS_DESCR_SCHEMA_PARSER.parseLdapSyntaxDescription(desc);
updateSchemas(ldapSyntax);
} catch (ParseException pe) {
throw new LdapException(pe);
}
}
}
use of org.apache.directory.api.ldap.model.exception.LdapException in project directory-ldap-api by apache.
the class DefaultSchemaLoader method loadNormalizers.
private void loadNormalizers(Attribute normalizers) throws LdapException {
if (normalizers == null) {
return;
}
for (Value value : normalizers) {
String desc = value.getValue();
try {
NormalizerDescription normalizer = N_DESCR_SCHEMA_PARSER.parseNormalizerDescription(desc);
updateSchemas(normalizer);
} catch (ParseException pe) {
throw new LdapException(pe);
}
}
}
Aggregations