Package talkfeed

Examples of talkfeed.BlogManager$BlogUpdateResult


   * @param link
   * @return
   */
  public Blog blogAdd(String link){
    //TODO add blog without checking the page
    BlogManager bm = BlogManager.getInstance();
   
    return bm.getOrCreateSource(link);
  }
View Full Code Here


   
    //Retrieve user id
    String id = args.get("id");
    String link = args.get("link");
   
    BlogManager blogManager = BlogManager.getInstance();
    DataManager dataManager = DataManagerFactory.getInstance();
    PersistenceManager pm = dataManager.newPersistenceManager();
   
    //get user
    User user = dataManager.getUserFromId(pm , id);
   
    //check if blog exists
    Blog blog = blogManager.getOrCreateSource(link);
   
    if (blog == null){
      //blog not found or not avaiable
      TalkService.sendMessage(user.getId(),"blog not found ! :(");
      return;
View Full Code Here

    String sid = args.get("id");
   
    if(sid != null){
      try {
      long id = Long.parseLong(sid);
      BlogManager bm = BlogManager.getInstance();
      bm.updateBlog(id);
      } catch (Exception ex){
        Logger.getLogger("CommandUpdateBlog").log(Level.SEVERE,
            "Error update " + sid,ex);
      }
    }
View Full Code Here

   
    if (args.containsKey("nb")){
      nbpurge = Integer.valueOf(args.get("nb"));
    }
   
    BlogManager bm = BlogManager.getInstance();
   
    int nb = bm.removeBlogWithoutSubscription();
    System.out.println(nb + " blog(s) removed");
   
    nb = bm.removeOldestEntries(nbpurge);
    System.out.println(nb + " old entrie(s) removed");

  }
View Full Code Here

TOP

Related Classes of talkfeed.BlogManager$BlogUpdateResult

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.