Examples of Blog


Examples of com.echonest.api.v4.Blog

        }

        System.out.println(" =========  blogs ======== ");
        List<Blog> blogs = artist.getBlogs();
        for (int i = 0; i < blogs.size(); i++) {
            Blog blog = blogs.get(i);
            blog.dump();
        }

        System.out.println(" =========  images ======== ");
        List<Image> images = artist.getImages();
        for (int i = 0; i < images.size(); i++) {
View Full Code Here

Examples of com.freewebsys.sns.pojo.Blog

   */
  @Override
  @Transactional
  public void deleteBlogById(Integer id) throws BlogException {
    try {
      Blog blog = (Blog) baseDao.findById(Blog.class, id);
      baseDao.delete(blog);
    } catch (Exception e) {
      throw new BlogException("Blog删除异常");
    }
  }
View Full Code Here

Examples of com.freewebsys.sns.pojo.Blog

      feed.setUserId(this.userInfo.getId());// 用户Id
      feed.setUserName(this.userInfo.getName());// 用户名

      if (this.obj instanceof Blog) {// 当类型是日志
        feed.setFeedType("blog");
        Blog blog = (Blog) this.obj;
        feed.setTitleData(blog.getTitle());
        String html = "";
        if (blog.getContent() != null
            && blog.getContent().length() > 200) {
          // 取前200 个字符
          html = blog.getContent().substring(0, 200);
        } else if (blog.getContent() != null) {
          html = blog.getContent();
        }
        feed.setContentData(html);
        baseDao.save(feed);
      }
View Full Code Here

Examples of com.jdkcn.myblog.domain.Blog

  @Get
  public void get() {
    myblogInitializer.checkInit();
    message = "Welcome to myblog 2.0";
    blog = new Blog();
    blog.setName("Myblog 2.0");
    blog.setTheme("prototype");
    Category exist = categoryService.getByName("Test Entry Category", null);
    if (exist == null) {
      exist = new Category("Test Entry Category", Type.ENTRY);
View Full Code Here

Examples of com.jdkcn.myblog.domain.Blog

    this.email = email;
    checkInit();
  }

  private Blog createDefaultBlog(User user) {
    Blog blog = new Blog();
    blog.setName("Another Myblog");
    blog.setDefaultPageSize(Constants.DEFAULT_PAGE_SIZE);
    blog.setDescription("Another Myblog.");
    blog.addUrl("http://code.google.com/p/myblog");
    blog.setOwner(user);
    return blogService.saveOrUpdate(blog);
  }
View Full Code Here

Examples of com.jdkcn.myblog.domain.Blog

  @Override
  public void before() {
    super.before();
    commentService = injector.getInstance(CommentService.class);
    BlogService blogService = injector.getInstance(BlogService.class);
    blog = new Blog();
    blog.setName("Test blog");
    blog.addUrl("http://jdkcn.com");
    blog = blogService.saveOrUpdate(blog);
   
    UserService userService = injector.getInstance(UserService.class);
View Full Code Here

Examples of com.jdkcn.myblog.domain.Blog

    blogService = injector.getInstance(BlogService.class);
  }
 
  @Test
  public void testCreateOrUpdate() throws Exception {
    Blog blog = new Blog();
    blog.setName("Just Myblog.");
    blog.addUrl("http://jdkcn.com");
   
    assertNull(blog.getId());
   
    String blogId = blogService.saveOrUpdate(blog).getId();
   
    assertNotNull(blogId);
    assertNull(blog.getId());
   
    Blog savedBlog = blogService.get(blogId);
    assertEquals("Just Myblog.", savedBlog.getName());
   
  }
View Full Code Here

Examples of com.jdkcn.myblog.domain.Blog

    author.setEmail("tester@gmail.com");
    author = userService.saveOrUpdate(author);
  }

  private Blog createBlog(String name, BlogService blogService) {
    Blog blog = new Blog();
    blog.setName(name);
    blog.setDescription(name + "'s description");
    blog = blogService.saveOrUpdate(blog);
    return blog;
  }
View Full Code Here

Examples of com.jeck.microblogging.shared.Blog

      List<Blog> blogs=weibo.getAllWeibo(para,page,feature);
      return blogs;
    }else{
      //work for test
      List<Blog> datas= new ArrayList<Blog>();
      Blog b = new Blog();
      b.setAuthor("jeck");
      b.setOriginalPic("http://ww2.sinaimg.cn/bmiddle/515a7464jw1duv99pzvucj.jpg");
      b.setText("test");
      b.setDate(new Date());
      datas.add(b);
      return datas;
    }
  }
View Full Code Here

Examples of com.jeck.microblogging.shared.Blog

      StatusWapper status = tm.getHomeTimeline(0,
          BlogFeature.getIntValue(feature), paging);
      if (null != status) {
        List<Blog> blogs = new ArrayList<Blog>();
        for (Status statu : status.getStatuses()) {
          Blog blog = new Blog();
          blog.setAuthor(statu.getUser().getName());
          blog.setDate(statu.getCreatedAt());
          blog.setText(statu.getText());
          blog.setId(Long.parseLong(statu.getId()));
          blog.setBmiddlePic(statu.getBmiddlePic());
          blog.setCommentsCount(statu.getCommentsCount());
          blog.setOriginalPic(statu.getOriginalPic());
          blog.setRepostsCount(statu.getRepostsCount());
          blog.setThumbnailPic(statu.getThumbnailPic());
          setSrcBlog(statu, blog);
          blogs.add(blog);
        }
        return blogs;
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.