@Test public void testRowNonAccessibleUserTree() throws Exception { User user = getTestUser(); String userPath = user.getPath(); try (ContentSession cs = login(new SimpleCredentials(user.getID(), user.getID().toCharArray()))) { Root r = cs.getLatestRoot(); ResultRowToAuthorizable rrta = new ResultRowToAuthorizable(new UserManagerImpl(r, getPartialValueFactory(), getSecurityProvider()), r, null); assertNull(rrta.apply(createResultRow(userPath))); } }
@Nullable @Override public Authorizable apply(@Nullable ResultRow row) { return getAuthorizable(row); }
ResultRowToAuthorizable implements Function<ResultRow, Authorizable> { @Nullable @Override public Authorizable apply(@Nullable ResultRow row) { return getAuthorizable(row); } }
ResultRowToAuthorizable implements Function<ResultRow, Authorizable> { @Nullable @Override public Authorizable apply(@Nullable ResultRow row) { return getAuthorizable(row); } ResultRowToAuthorizable(@NotNull UserManagerImpl userManager, @NotNull Root root,
                            @Nullable AuthorizableType targetType); }
ResultRowToAuthorizable implements Function<ResultRow, Authorizable> { @Nullable @Override public Authorizable apply(@Nullable ResultRow row) { return getAuthorizable(row); } ResultRowToAuthorizable(@NotNull UserManagerImpl userManager, @NotNull Root root,
                            @Nullable AuthorizableType targetType); @Nullable @Override Authorizable apply(@Nullable ResultRow row); }
ResultRowToAuthorizable implements Function<ResultRow, Authorizable> { @Nullable @Override public Authorizable apply(@Nullable ResultRow row) { return getAuthorizable(row); } ResultRowToAuthorizable(@NotNull UserManagerImpl userManager, @NotNull Root root,
                            @Nullable AuthorizableType targetType); @Nullable @Override Authorizable apply(@Nullable ResultRow row);  }