@Test void testAddRole() { Role role = mock(Role.class); roleRepositoryDecorator.add(role); verify(cachedRoleHierarchy).markRoleHierarchyCacheDirty(); verify(delegateRepository).add(role); }
@Override public void add(Role role) { validateInclusion(role); clearRoleHierarchyCache(); super.add(role); }
RoleRepositoryDecorator extends AbstractRepositoryDecorator<Role> { @Override public void add(Role role) { validateInclusion(role); clearRoleHierarchyCache(); super.add(role); } }
RoleRepositoryDecorator extends AbstractRepositoryDecorator<Role> { @Override public void add(Role role) { validateInclusion(role); clearRoleHierarchyCache(); super.add(role); } RoleRepositoryDecorator(
      Repository<Role> delegateRepository, CachedRoleHierarchy cachedRoleHierarchy); }
RoleRepositoryDecorator extends AbstractRepositoryDecorator<Role> { @Override public void add(Role role) { validateInclusion(role); clearRoleHierarchyCache(); super.add(role); } RoleRepositoryDecorator(
      Repository<Role> delegateRepository, CachedRoleHierarchy cachedRoleHierarchy); @Override void add(Role role); @Override Integer add(Stream<Role> roleStream); @Override void update(Role role); @Override void update(Stream<Role> roleStream); @Override void deleteAll(); @Override void deleteById(Object id); @Override void deleteAll(Stream<Object> ids); @Override void delete(Role role); @Override void delete(Stream<Role> roleStream); }
RoleRepositoryDecorator extends AbstractRepositoryDecorator<Role> { @Override public void add(Role role) { validateInclusion(role); clearRoleHierarchyCache(); super.add(role); } RoleRepositoryDecorator(
      Repository<Role> delegateRepository, CachedRoleHierarchy cachedRoleHierarchy); @Override void add(Role role); @Override Integer add(Stream<Role> roleStream); @Override void update(Role role); @Override void update(Stream<Role> roleStream); @Override void deleteAll(); @Override void deleteById(Object id); @Override void deleteAll(Stream<Object> ids); @Override void delete(Role role); @Override void delete(Stream<Role> roleStream);  }