Package org.domain.model.component.entry

Examples of org.domain.model.component.entry.Entry


              .defineAllCriteria();
          allApprovedEntries = (Entries) blogApprovedEntries
              .getEntities(all);
          allApprovedEntries.setPropagateToSource(false);
        } else {
          Entry entry;
          for (Iterator y = blogApprovedEntries.iterator(); y
              .hasNext();) {
            entry = (Entry) y.next();
            allApprovedEntries.add(entry);
          }
View Full Code Here


              .defineAllCriteria();
          allApprovedEntries = (Entries) blogApprovedEntries
              .getEntities(all);
          allApprovedEntries.setPropagateToSource(false);
        } else {
          Entry entry;
          for (Iterator y = blogApprovedEntries.iterator(); y
              .hasNext();) {
            entry = (Entry) y.next();
            allApprovedEntries.add(entry);
          }
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);

      String entryBody;
      boolean completeText;
      String excerpt = entry.getExcerpt();
      if (excerpt == null || Strings.isEmpty(excerpt)) {
        entryBody = entry.getText();
        completeText = true;
      } else {
        entryBody = excerpt;
        completeText = false;
      }
View Full Code Here

    this.viewContext = viewContext;
  }

  protected void populateItem(final ListItem item) {
    try {
      Entry entry = (Entry) item.getModelObject();
      ModelContext entriesModelContext = new ModelContext(modelContext);
      entriesModelContext.setEntity(entry);
      ViewContext entriesViewContext = new ViewContext(viewContext);
      entriesViewContext.setWicketId("entryDigestPanel");
      EntryDigestPanel entryDigestPanel = new EntryDigestPanel(
View Full Code Here

TOP

Related Classes of org.domain.model.component.entry.Entry

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.