/** * Handler for removed policy entries in the directory. * * @param namingEvent * the removed entry event that occurred * @param destinationType * the type of the destination to which the event applies * @param permissionType * the permission type to which the event applies */ public void objectRemoved(NamingEvent namingEvent, DestinationType destinationType, PermissionType permissionType) { LOG.debug("Removing object: {}", namingEvent.getOldBinding()); Binding result = namingEvent.getOldBinding(); try { DefaultAuthorizationMap map = this.map.get(); LdapName name = new LdapName(result.getName()); AuthorizationEntry entry = getEntry(map, name, destinationType); applyAcl(entry, permissionType, new HashSet<Object>()); } catch (InvalidNameException e) { LOG.error("Policy not applied! Error parsing DN for object removal for removal of {}", result.getName(), e); } catch (Exception e) { LOG.error("Policy not applied! Error processing object removal for removal of {}", result.getName(), e); } }
applyAcl(entry, permissionType, members); } catch (Exception e) { LOG.error("Policy not applied! Error adding principals to ACL under {}", result.getNameInNamespace(), e);
/** * Handler for removed policy entries in the directory. * * @param namingEvent * the removed entry event that occurred * @param destinationType * the type of the destination to which the event applies * @param permissionType * the permission type to which the event applies */ public void objectRemoved(NamingEvent namingEvent, DestinationType destinationType, PermissionType permissionType) { LOG.debug("Removing object: {}", namingEvent.getOldBinding()); Binding result = namingEvent.getOldBinding(); try { DefaultAuthorizationMap map = this.map.get(); LdapName name = new LdapName(result.getName()); AuthorizationEntry entry = getEntry(map, name, destinationType); applyAcl(entry, permissionType, new HashSet<Object>()); } catch (InvalidNameException e) { LOG.error("Policy not applied! Error parsing DN for object removal for removal of {}", result.getName(), e); } catch (Exception e) { LOG.error("Policy not applied! Error processing object removal for removal of {}", result.getName(), e); } }
/** * Handler for removed policy entries in the directory. * * @param namingEvent * the removed entry event that occurred * @param destinationType * the type of the destination to which the event applies * @param permissionType * the permission type to which the event applies */ public void objectRemoved(NamingEvent namingEvent, DestinationType destinationType, PermissionType permissionType) { LOG.debug("Removing object: {}", namingEvent.getOldBinding()); Binding result = namingEvent.getOldBinding(); try { DefaultAuthorizationMap map = this.map.get(); LdapName name = new LdapName(result.getName()); AuthorizationEntry entry = getEntry(map, name, destinationType); applyAcl(entry, permissionType, new HashSet<Object>()); } catch (InvalidNameException e) { LOG.error("Policy not applied! Error parsing DN for object removal for removal of {}", result.getName(), e); } catch (Exception e) { LOG.error("Policy not applied! Error processing object removal for removal of {}", result.getName(), e); } }
/** * Handler for removed policy entries in the directory. * * @param namingEvent * the removed entry event that occurred * @param destinationType * the type of the destination to which the event applies * @param permissionType * the permission type to which the event applies */ public void objectRemoved(NamingEvent namingEvent, DestinationType destinationType, PermissionType permissionType) { LOG.debug("Removing object: {}", namingEvent.getOldBinding()); Binding result = namingEvent.getOldBinding(); try { DefaultAuthorizationMap map = this.map.get(); LdapName name = new LdapName(result.getName()); AuthorizationEntry entry = getEntry(map, name, destinationType); applyAcl(entry, permissionType, new HashSet<Object>()); } catch (InvalidNameException e) { LOG.error("Policy not applied! Error parsing DN for object removal for removal of {}", result.getName(), e); } catch (Exception e) { LOG.error("Policy not applied! Error processing object removal for removal of {}", result.getName(), e); } }
applyAcl(entry, permissionType, members); } catch (Exception e) { LOG.error("Policy not applied! Error adding principals to ACL under {}", result.getNameInNamespace(), e);
applyAcl(entry, permissionType, members); } catch (Exception e) { LOG.error("Policy not applied! Error adding principals to ACL under {}", result.getNameInNamespace(), e);
applyAcl(entry, permissionType, members); } catch (Exception e) { LOG.error("Policy not applied! Error adding principals to ACL under {}", result.getNameInNamespace(), e);