Examples of Blog


Examples of org.mapache.business.blog.Blog

            FacesContext.getCurrentInstance().addMessage(null,new FacesMessage(FacesMessage.SEVERITY_ERROR,MapacheUIUtils.getTranslation("error_blog_deleted",null),MapacheUIUtils.getTranslation("error_blog_deleted",null)));
        }
        return "deleteClicked";
    }
    public String createBlog() {
        Blog newBlog = new Blog();
        newBlog.setTitle(_title);
        newBlog.setDescription(_description);
        try {
            getBusinessController().createBlog(newBlog);
            FacesContext.getCurrentInstance().addMessage(null,new FacesMessage(FacesMessage.SEVERITY_INFO,MapacheUIUtils.getTranslation("info_blog_created",null),MapacheUIUtils.getTranslation("info_blog_created",null)));
            _createMode = false;
        } catch (MapacheException e) {
View Full Code Here

Examples of org.uned.agonzalo16.bitacora.domain.Blog

    if (result.hasErrors()) {
      return "blog/create";
    }

    Blog blog = new Blog();
    blog.setCreationDate(new Date());
    blog.setDescription(form.getDescription());
    blog.setName(form.getName());

    blogDao.merge(blog);
    searchService.addBlog(blog);

    return "redirect:/admin/blog/list";
View Full Code Here

Examples of repository.relsys.domainmodel.ltool.interfaces.Blog

      ti.setVersion("2.9");
      ti.registration(true);
      ti.isOpenSource(false);

      Collection<Feature> features = new LinkedList<Feature>();
      Blog blog = new BlogCls();
      ContactList folowers = new ContactListCls();
      features.add(blog);
      features.add(folowers);

      lt.setFeatures(features);
View Full Code Here

Examples of repository.relsys.domainmodel.ltool.interfaces.Blog

    ti.addOS(OperetingSystemCls.MAC);

    ltool.setTechnicalInfo(ti);

    Collection<Feature> features = new LinkedList<Feature>();
    Blog blog = new BlogCls();
    ContactList folowers = new ContactListCls();
    features.add(blog);
    features.add(folowers);

    ltool.setFeatures(features);
View Full Code Here

Examples of repository.relsys.domainmodel.ltool.interfaces.Blog

    ti1.addOS(OperetingSystemCls.MAC);

    ltool1.setTechnicalInfo(ti1);

    Collection<Feature> features = new LinkedList<Feature>();
    Blog blog = new BlogCls();
    ContactList folowers = new ContactListCls();
    features.add(blog);
    features.add(folowers);

    ltool1.setFeatures(features);
View Full Code Here

Examples of slim3.demo.model.Blog

        assertThat(service, is(notNullValue()));
    }

    @Test
    public void get() throws Exception {
        Blog blog = new Blog();
        Datastore.put(blog);
        assertThat(
            service.get(blog.getKey(), blog.getVersion()),
            is(notNullValue()));
    }
View Full Code Here

Examples of slim3.demo.model.Blog

        service.get(Datastore.createKey(Blog.class, 1), 1L);
    }

    @Test(expected = ConcurrentModificationException.class)
    public void getWhenOptimisticLockFailed() throws Exception {
        Blog blog = new Blog();
        Datastore.put(blog);
        service.get(blog.getKey(), blog.getVersion() + 1);
    }
View Full Code Here

Examples of slim3.demo.model.Blog

    }

    @Test
    public void getAll() throws Exception {
        int count = Datastore.query(Blog.class).count();
        Blog blog = new Blog();
        Datastore.put(blog);
        assertThat(service.getAll().size(), is(count + 1));
    }
View Full Code Here

Examples of slim3.demo.model.Blog

        assertThat(service.getAll().size(), is(count + 1));
    }

    @Test
    public void insert() throws Exception {
        Blog blog = new Blog();
        service.insert(blog);
        assertThat(blog.getKey(), is(notNullValue()));
    }
View Full Code Here

Examples of slim3.demo.model.Blog

        assertThat(blog.getKey(), is(notNullValue()));
    }

    @Test
    public void update() throws Exception {
        Blog blog = new Blog();
        blog.setTitle("aaa");
        blog.setContent("111");
        Datastore.put(blog);
        Map<String, Object> input = new HashMap<String, Object>();
        input.put("title", "bbb");
        input.put("content", "222");
        Blog updated = service.update(blog.getKey(), blog.getVersion(), input);
        assertThat(updated.getTitle(), is("bbb"));
        assertThat(updated.getContent(), is("222"));
    }
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.