Package talkfeed

Examples of talkfeed.UserManager


    UserService userService = UserServiceFactory.getUserService();
    User user = userService.getCurrentUser();

    if (user != null) {

      UserManager serv = new UserManager();
      serv.removeUserSubscription(user.getEmail(), id);
      resp.getWriter().write("OK");

    } else {
      throw new Exception("no user");
    }
View Full Code Here


          i++;
        }
      }
     
      if (subToRemove != null){
        UserManager serv = new UserManager();
        serv.removeUserSubscription(subToRemove.getId());
       
        TalkService.sendMessage(jid, "subscription is removed");
        //update cache
        SubscriptionCache.removeUserFromCache(jid);
      }
View Full Code Here

    //PRESENCE STATUS

   
    //PRESENCE
    if(action.contains("presence")){
      UserManager um = new UserManager();
     
      Presence presence = TalkService.getPresence(req);
     
      String user = TextTools.cleanJID(presence.getFromJid().getId());
      um.setUserPresence(user, presence);
    }
   

  }
View Full Code Here

    if(sid != null){
      id = Long.parseLong(sid);
    }
 
    try {
      UserManager us = new UserManager();
      us.updateUser(id, jid);
    } catch (Exception ex){
      Logger.getLogger("CommandUpdateUser").log(Level.SEVERE,
          "Error update " + jid,ex);
    }
 
View Full Code Here

   
    /*
    SubscriptionService serv = new SubscriptionService();
    serv.sendNotifications(NB_MAX ); */
   
    UserManager serv = new UserManager();
    //serv.updateUsers(NB_MAX);
    serv.updatePresentUsers();
  }
View Full Code Here

    String jid = args.get("id");
   
    if (jid == null) return;
   
    UserManager userserv = new UserManager();
    userserv.updateUser(0,jid);
  }
View Full Code Here

      if (presence.isAvailable()){
        if (!users.contains(data)){
          //add users
          users.add(data);
          //check if user exists
          UserManager um = new UserManager();
          User u = um.getOrCreateUser(jid);
          Logger.getLogger("TalkFeedServlet").log(Level.INFO,
              "New presence : " + jid + " - user db : " + u);
        }
      } else {
        //not present
View Full Code Here

TOP

Related Classes of talkfeed.UserManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.