@Test public void update() throws Exception { ClientApp clientApp = service.create(dev, "myapp", "ya ~ good", "http: service.update(dev, clientApp.getClientId(), "appU2", "poor baby", "myapp: ClientApp loaded = service.loadClientAppWithoutCache(clientApp.getClientId()); assertEquals("appU2", loaded.getAppName()); assertEquals("poor baby", loaded.getDescription()); assertEquals("myapp: }
@Override public void update(Authorization creator, String clientId, String name, String description, String callbackUri) { ClientApp clientApp = verifyClientAppForOwner(creator, clientId); clientAppDao.updateAppInformation(clientApp.withName(name) .withDescription(description) .withCallbackUri(callbackUri)); }
ClientAppServiceImpl implements ClientAppService { @Override public void update(Authorization creator, String clientId, String name, String description, String callbackUri) { ClientApp clientApp = verifyClientAppForOwner(creator, clientId); clientAppDao.updateAppInformation(clientApp.withName(name) .withDescription(description) .withCallbackUri(callbackUri)); } }
ClientAppServiceImpl implements ClientAppService { @Override public void update(Authorization creator, String clientId, String name, String description, String callbackUri) { ClientApp clientApp = verifyClientAppForOwner(creator, clientId); clientAppDao.updateAppInformation(clientApp.withName(name) .withDescription(description) .withCallbackUri(callbackUri)); }  }
ClientAppServiceImpl implements ClientAppService { @Override public void update(Authorization creator, String clientId, String name, String description, String callbackUri) { ClientApp clientApp = verifyClientAppForOwner(creator, clientId); clientAppDao.updateAppInformation(clientApp.withName(name) .withDescription(description) .withCallbackUri(callbackUri)); }  @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 void update(Authorization creator, String clientId, String name, String description, String callbackUri) { ClientApp clientApp = verifyClientAppForOwner(creator, clientId); clientAppDao.updateAppInformation(clientApp.withName(name) .withDescription(description) .withCallbackUri(callbackUri)); }  @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);  }