Ejemplo n.º 1
0
 public boolean subscribeUser(BasicUser user, com.ccc.oauth.apimanagement.model.Service service) {
   Subscribed sub = new Subscribed();
   sub.setService(service);
   sub.setUserName(user.getUsername());
   return subscribedManager.saveE(sub);
 }
Ejemplo n.º 2
0
 public List<Subscribed> servicesForUser(BasicUser user) {
   String userName = user.getUsername();
   List<Subscribed> subscribed = subscribedManager.elementsWithValue("user_name", userName);
   return subscribed;
 }