Esempio n. 1
0
 @Secure(owner = "#{arg0.user.username}")
 @Override
 public OAuthConsumerEntity createOrUpdate(OAuthConsumerEntity clientAppEntity)
     throws ValidationException {
   OAuthConsumerEntity e =
       userDAO.createOrUpdate(clientAppEntity, authenticationService.getUser().getLoginName());
   // Because of lazy loading and to save traffic
   e.getUser().setGraphs(null);
   e.getUser().setAccessTokens(null);
   e.setAccessTokens(null);
   e.setRequestTokens(null);
   return e;
 }