@Test public void testGetGroups20() { requestHandler.setResource(new ClassPathResource("multiple-groups20.json")); List<Group20> groups20 = this.client.getGroups20(USER_ID, USER_ID); assertEquals(3, groups20.size()); }
@Override public List<Group20> getGroups20(String userId, String onBehalfOf) { OAuthRequest request = new OAuthRequest(Verb.GET, environment.getEndpointBaseUrl() + "social/rest/groups/" + userId); InputStream in = execute(onBehalfOf, request); return parser.parseGroups20(in).getEntry(); }
OpenConextOAuthClientImpl implements OpenConextOAuthClient, InitializingBean { @Override public List<Group20> getGroups20(String userId, String onBehalfOf) { OAuthRequest request = new OAuthRequest(Verb.GET, environment.getEndpointBaseUrl() + "social/rest/groups/" + userId); InputStream in = execute(onBehalfOf, request); return parser.parseGroups20(in).getEntry(); } }
OpenConextOAuthClientImpl implements OpenConextOAuthClient, InitializingBean { @Override public List<Group20> getGroups20(String userId, String onBehalfOf) { OAuthRequest request = new OAuthRequest(Verb.GET, environment.getEndpointBaseUrl() + "social/rest/groups/" + userId); InputStream in = execute(onBehalfOf, request); return parser.parseGroups20(in).getEntry(); } OpenConextOAuthClientImpl(); }
OpenConextOAuthClientImpl implements OpenConextOAuthClient, InitializingBean { @Override public List<Group20> getGroups20(String userId, String onBehalfOf) { OAuthRequest request = new OAuthRequest(Verb.GET, environment.getEndpointBaseUrl() + "social/rest/groups/" + userId); InputStream in = execute(onBehalfOf, request); return parser.parseGroups20(in).getEntry(); } OpenConextOAuthClientImpl(); @Override boolean isAccessTokenGranted(String userId); @Override String getAuthorizationUrl(); @Override void oauthCallback(HttpServletRequest request, String onBehalfOf); @Override Person getPerson(String userId, String onBehalfOf); @Override List<Person> getGroupMembers(String groupId, String onBehalfOf); @Override List<Group> getGroups(String userId, String onBehalfOf); @Override List<Group20> getGroups20(String userId, String onBehalfOf); @Override Group20 getGroup20(String userId, String groupId, String onBehalfOf); void setCallbackUrl(String url); void setConsumerSecret(String secret); void setConsumerKey(String key); void setEndpointBaseUrl(String url); void setVersion(OAuthVersion v); @Override void afterPropertiesSet(); void setRepository(OAuthRepository repository); void getClientAccessToken(); }
OpenConextOAuthClientImpl implements OpenConextOAuthClient, InitializingBean { @Override public List<Group20> getGroups20(String userId, String onBehalfOf) { OAuthRequest request = new OAuthRequest(Verb.GET, environment.getEndpointBaseUrl() + "social/rest/groups/" + userId); InputStream in = execute(onBehalfOf, request); return parser.parseGroups20(in).getEntry(); } OpenConextOAuthClientImpl(); @Override boolean isAccessTokenGranted(String userId); @Override String getAuthorizationUrl(); @Override void oauthCallback(HttpServletRequest request, String onBehalfOf); @Override Person getPerson(String userId, String onBehalfOf); @Override List<Person> getGroupMembers(String groupId, String onBehalfOf); @Override List<Group> getGroups(String userId, String onBehalfOf); @Override List<Group20> getGroups20(String userId, String onBehalfOf); @Override Group20 getGroup20(String userId, String groupId, String onBehalfOf); void setCallbackUrl(String url); void setConsumerSecret(String secret); void setConsumerKey(String key); void setEndpointBaseUrl(String url); void setVersion(OAuthVersion v); @Override void afterPropertiesSet(); void setRepository(OAuthRepository repository); void getClientAccessToken();  }