private static void testGetParentAuthorities() { final GroupService userService = new GroupService(BASE_URL, AUTH_TICKET); try { final AuthorityQuery authorityQuery = new AuthorityQuery(); authorityQuery.setSortBy(GroupSorter.authorityName); System.out.println(userService.getParentAuthorities("EMAIL_CONTRIBUTORS", authorityQuery)); } catch (final GroupException e) { e.printStackTrace(); } }
private static void testGetChildAuthorities() { final GroupService userService = new GroupService(BASE_URL, AUTH_TICKET); try { final AuthorityQuery authorityQuery = new AuthorityQuery(); authorityQuery.setSortBy(GroupSorter.authorityName); System.out.println( userService.getChildAuthorities("ALFRESCO_ADMINISTRATORS", authorityQuery)); } catch (final GroupException e) { e.printStackTrace(); } }