@Test public void testRowToUserSubTree() throws Exception { User user = getTestUser(); Tree t = root.getTree(user.getPath()); t = TreeUtil.addChild(t, "child", NT_OAK_UNSTRUCTURED); ResultRow row = createResultRow(t.getPath()); assertNull(groupRrta.apply(row)); Authorizable a = userRrta.apply(row); assertNotNull(a); assertEquals(user.getID(), a.getID()); }
@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);  }