use of org.springframework.ldap.NameNotFoundException in project perun by CESNET.
the class LdapConnectorImpl method deleteResource.
public void deleteResource(Resource resource) throws InternalErrorException {
try {
ldapTemplate.unbind(getResourceDN(String.valueOf(resource.getVoId()), String.valueOf(resource.getId())));
log.debug("Entry deleted from LDAP: Resource {} from Vo with ID=" + resource.getVoId() + " and Facility with ID=" + resource.getFacilityId() + ".", resource);
} catch (NameNotFoundException e) {
throw new InternalErrorException(e);
}
}
Aggregations