@Test public void listGrantedApps() throws Exception { Account user = savedAccountCitizen("user1"); assertEquals(0, service.listGrantedApps(user).size()); ClientApp app1 = service.create(dev, "myapp1", "ya ~ good", "http: ClientApp app2 = service.create(dev, "myapp2", "ya ~ good", "http: service.createOauthAccessToken(app1, user.getAccountId(), EnumSet.of(ClientAppScope.FEED), Duration.ofDays(1)).getAccessToken(); service.createOauthAccessToken(app2, user.getAccountId(), EnumSet.of(ClientAppScope.FEED), Duration.ofDays(1)).getAccessToken(); assertEquals(asList(app2, app1), service.listGrantedApps(user)); }
@Override public List<ClientApp> listGrantedApps(Authorization user) { return clientAppDao.listAppsByUser(user.authenticatedId()); }
ClientAppServiceImpl implements ClientAppService { @Override public List<ClientApp> listGrantedApps(Authorization user) { return clientAppDao.listAppsByUser(user.authenticatedId()); } }
ClientAppServiceImpl implements ClientAppService { @Override public List<ClientApp> listGrantedApps(Authorization user) { return clientAppDao.listAppsByUser(user.authenticatedId()); }  }
ClientAppServiceImpl implements ClientAppService { @Override public List<ClientApp> listGrantedApps(Authorization user) { return clientAppDao.listAppsByUser(user.authenticatedId()); }  @Override ClientApp create(Authorization creator,
      String name,
      String description,
      String callbackUri); @Override ClientApp loadClientAppWithoutCache(String clientId); @Override List<ClientApp> listClientApps(Authorization creator); @Override void update(Authorization creator,
      String clientId,
      String name,
      String description,
      String callbackUri); @Override Optional<ClientApp> verifyRedirectUri(String clientId, String redirectUri); @Override String directGrantCode(String oauthDirectAuthorize,
      String clientId,
      String scope,
      String redirectUri); @Override OauthAccessTokenDto createOauthAccessTokenByGrantCode(String code,
      String clientId,
      String redirectUri); @Override Optional<ClientAppUserAccessToken> verifyAccessToken(@Nullable String rawAccessToken); @Override List<ClientAppUser> listGrantedAppUsers(Authorization authorization); @Override void resetClientAppSecret(Authorization creator, String clientId); @Override void revokeApp(Authorization user, String clientId); @Override boolean validateApp(String clientId, String clientSecret); @Override String generateDebugAccessToken(Authorization creator, String clientId); @Override List<ClientApp> listGrantedApps(Authorization user); }
ClientAppServiceImpl implements ClientAppService { @Override public List<ClientApp> listGrantedApps(Authorization user) { return clientAppDao.listAppsByUser(user.authenticatedId()); }  @Override ClientApp create(Authorization creator,
      String name,
      String description,
      String callbackUri); @Override ClientApp loadClientAppWithoutCache(String clientId); @Override List<ClientApp> listClientApps(Authorization creator); @Override void update(Authorization creator,
      String clientId,
      String name,
      String description,
      String callbackUri); @Override Optional<ClientApp> verifyRedirectUri(String clientId, String redirectUri); @Override String directGrantCode(String oauthDirectAuthorize,
      String clientId,
      String scope,
      String redirectUri); @Override OauthAccessTokenDto createOauthAccessTokenByGrantCode(String code,
      String clientId,
      String redirectUri); @Override Optional<ClientAppUserAccessToken> verifyAccessToken(@Nullable String rawAccessToken); @Override List<ClientAppUser> listGrantedAppUsers(Authorization authorization); @Override void resetClientAppSecret(Authorization creator, String clientId); @Override void revokeApp(Authorization user, String clientId); @Override boolean validateApp(String clientId, String clientSecret); @Override String generateDebugAccessToken(Authorization creator, String clientId); @Override List<ClientApp> listGrantedApps(Authorization user);  }