Examples of Blog


Examples of com.jfinal.ext.plugin.tablebind.Blog

        String filename = "test.xls";
        render(JxlsRender.me(templateFileName).filename(filename).beans(beans));
    }

    public void model() {
        Blog model = new Blog();
        model.set("title", "Derek");
        model.set("content", "35");
        Blog model2 = new Blog();
        model2.set("title", "Oleg");
        model2.set("content", "31");
        List<Blog> blogs  = Lists.newArrayList();
        blogs.add(model);
        blogs.add(model2);
        Map<String, Object> beans = Maps.newHashMap();
        beans.put("employee", blogs);
View Full Code Here

Examples of com.tapestry5book.entities.Blog

        DemoDataParser.DemoData demoData = demoDataParser.parse(getClass().getResource("demodata.xml"));


        persistAll(demoData.getUsers());

        final Blog blog = demoData.getBlog();
        persistBlog(blog);

        List<Tag> tags = demoData.getTags();
        persistAll(tags);
View Full Code Here

Examples of com.tapestry5book.tlog.core.entities.Blog

                                 Attributes attributes) throws SAXException {

            logger.info(localName);

            if (localName.equals("blog")) {
                blog = new Blog();
                blog.setName(attributes.getValue("name"));
                blog.setDescription(attributes.getValue("description"));
            } else if (localName.equals("article")) {
                article = new Article();
                article.setTitle(attributes.getValue("title"));
View Full Code Here

Examples of com.wizriver.entity.beans.Blog

 
  //添加博客文章的分类
  public String doAddBlogClass(){
    System.out.println("into doAddBlogClass");
    blogId=Long.parseLong(request.getParameter("blogId")) ;
    Blog blog=blogService.getBlog(blogId);
    blogClass.setBlog(blog);
    blogClassService.addBlogClass(blogClass);
    return "toBlogClassManager";//跳到blog-blogclass.jsp
  }
View Full Code Here

Examples of domain.Blog

    @Test
    public void test_AT_CacheResult()
    {
        String testBody = "" + System.currentTimeMillis();
        String testTitle = "title a";
        Blog blog = new Blog(testTitle, testBody);
        BlogManager blogManager = getBlogManager();
        blogManager.createEntry(blog);

        Blog entryCached = blogManager.getEntryCached(testTitle);
        assertEquals(entryCached.getBody(), testBody);

        /* clear from map, but not from cache */
        blogManager.clearEntry(testTitle);
        entryCached = blogManager.getEntryCached(testTitle);
        assertNotNull("Item should still be in the cache thus not null", entryCached);
        assertEquals(
                "Item should still be in the cache and the title should be the same as before",
                entryCached.getBody(), testBody);

    }
View Full Code Here

Examples of domain.Blog

    @Test
    public void test_AT_CacheResult_UsingAt_CacheKeyParam()
    {
        String testBody = "" + System.currentTimeMillis();
        String testTitle = "title abc";
        Blog blog = new Blog(testTitle, testBody);
        BlogManager blogManager = getBlogManager();
        blogManager.createEntry(blog);

        Blog entryCached = blogManager.getEntryCached("asdf", testTitle, "adsfa");
        assertEquals(entryCached.getBody(), testBody);

        /* clear from map, but not from cache */
        blogManager.clearEntry(testTitle);
        entryCached = blogManager.getEntryCached(testTitle);
        assertNotNull("Item should still be in the cache thus not null", entryCached);
        assertEquals(
                "Item should still be in the cache and the title should be the same as before",
                entryCached.getBody(), testBody);

    }
View Full Code Here

Examples of domain.Blog

    @Test
    public void test_AT_CacheRemoveEntry()
    {
        String testBody = "" + System.currentTimeMillis();
        String testTitle = "title b";
        Blog blog = new Blog(testTitle, testBody);
        BlogManager blogManager = getBlogManager();
        blogManager.createEntry(blog);

        Blog entryCached = blogManager.getEntryCached(testTitle);
        assertEquals(entryCached.getBody(), testBody);

        /* clear from cache using annotation @CacheRemove */
        blogManager.clearEntryFromCache(testTitle);

        /* clear from map, but not from cache */
 
View Full Code Here

Examples of domain.Blog

    public void test_AT_CacheRemoveAll()
    {
        String testBody = "" + System.currentTimeMillis();
        String testTitle = "title b";

        Blog blog = new Blog(testTitle, testBody);
        BlogManager blogManager = getBlogManager();
        blogManager.createEntry(blog);

        Blog entryCached = blogManager.getEntryCached(testTitle);
        assertEquals(entryCached.getBody(), testBody);

        /* clear from map, but not from cache */
        blogManager.clearEntry(testTitle);

        /* clear from cache using annotation @CacheRemoveAll */
 
View Full Code Here

Examples of evolaris.framework.blog.datamodel.Blog

    Group group = groupFromSession(req);
    checkAccessRights(req, group);
    commandEntry.setGroup(group);
    if (f.getBlogId() > 0) {
      BlogManager blogMgr = new BlogManager(locale, session);
      Blog blog = blogMgr.getBlog(f.getBlogId());
      if (blog == null) {
        throw new InputException(resources.getMessage(locale, "smssvc.selectedBlogNotFound"));
      }
      commandEntry.setBlog(blog);
    } else {
View Full Code Here

Examples of net.sourceforge.pebble.domain.Blog

   *
   * @param context   the context in which the decoration is running
   * @param blogEntry the blog entry to be decorated
   */
  public void decorate(ContentDecoratorContext context, BlogEntry blogEntry) {
    Blog blog = blogEntry.getBlog();

    if ((blogEntry.getExcerpt() != null && blogEntry.getExcerpt().length() > 0 && context.getView() == ContentDecoratorContext.SUMMARY_VIEW)) {
      StringBuffer buf = new StringBuffer();
      buf.append(blogEntry.getExcerpt());

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.