Package org.domain.model.component.blog

Examples of org.domain.model.component.blog.Blog


              .defineAllCriteria();
          allApprovedBlogs = (Blogs) userApprovedBlogs
              .getEntities(all);
          allApprovedBlogs.setPropagateToSource(false);
        } else {
          Blog blog;
          for (Iterator y = userApprovedBlogs.iterator(); y.hasNext();) {
            blog = (Blog) y.next();
            allApprovedBlogs.add(blog);
          }
        }
View Full Code Here


  }

  public Entries getAllApprovedEntries() {
    Entries allApprovedEntries = null;
    try {
      Blog blog;
      for (Iterator x = iterator(); x.hasNext();) {
        blog = (Blog) x.next();
        Entries blogApprovedEntries = blog.getEntries()
            .getApprovedEntries();
        if (allApprovedEntries == null) {
          SelectionCriteria all = SelectionCriteria
              .defineAllCriteria();
          allApprovedEntries = (Entries) blogApprovedEntries
View Full Code Here

  private void test02() {
    Users users = getUsers();
    User dr = users.getUser("dr");
    if (dr != null) {
      Blogs drBlogs = dr.getBlogs();
      Blog lastBlog = (Blog) drBlogs.last();
      try {
        drBlogs.remove(lastBlog);
      } catch (DmException e) {
        log.error("Error in Blogs.createBlog: " + e.getMessage());
      }
View Full Code Here

  public EntryDigestPanel(final ModelContext modelContext,
      final ViewContext viewContext) {
    super(modelContext, viewContext);
    try {
      Entry entry = (Entry) modelContext.getEntity();
      Blog blog = entry.getBlog();

      String blogName = blog.getName();
      Label blogNameLabel = new Label("blogName", blogName);
      add(blogNameLabel);

      String entryTitle = entry.getTitle();
      Label entryTitleLabel = new Label("entryTitle", entryTitle);
      add(entryTitleLabel);

      DateFormat df = DateFormat.getDateInstance(DateFormat.LONG, blog
          .getLocale());
      Label entryCreationDateLabel = new Label("entryCreationDate", df
          .format(entry.getCreationDate()));
      add(entryCreationDateLabel);
View Full Code Here

TOP

Related Classes of org.domain.model.component.blog.Blog

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.