@Test public void testGetPermissions() { Multimap<ObjectIdentity, Pair<PermissionSet, Sid>> permissions = new WebAppPermissionRegistry().getPermissions(); assertFalse(permissions.isEmpty()); Collection<Pair<PermissionSet, Sid>> pairs = permissions.get(new PluginIdentity(HomeController.ID)); assertEquals( singleton(new Pair<>(READ, new GrantedAuthoritySid("ROLE_ANONYMOUS"))), copyOf(pairs)); }
@Override public Multimap<ObjectIdentity, Pair<PermissionSet, Sid>> getPermissions() { return builder.build(); }
WebAppPermissionRegistry implements PermissionRegistry { @Override public Multimap<ObjectIdentity, Pair<PermissionSet, Sid>> getPermissions() { return builder.build(); } }
WebAppPermissionRegistry implements PermissionRegistry { @Override public Multimap<ObjectIdentity, Pair<PermissionSet, Sid>> getPermissions() { return builder.build(); } WebAppPermissionRegistry(); }
WebAppPermissionRegistry implements PermissionRegistry { @Override public Multimap<ObjectIdentity, Pair<PermissionSet, Sid>> getPermissions() { return builder.build(); } WebAppPermissionRegistry(); @Override Multimap<ObjectIdentity, Pair<PermissionSet, Sid>> getPermissions(); }
WebAppPermissionRegistry implements PermissionRegistry { @Override public Multimap<ObjectIdentity, Pair<PermissionSet, Sid>> getPermissions() { return builder.build(); } WebAppPermissionRegistry(); @Override Multimap<ObjectIdentity, Pair<PermissionSet, Sid>> getPermissions();  }