Examples of AttachmentEvent


Examples of org.rssowl.core.model.events.AttachmentEvent

  /*
   * @see org.rssowl.core.model.dao.IModelDAO#deleteAttachment(org.rssowl.core.model.reference.AttachmentReference)
   */
  public void deleteAttachment(AttachmentReference reference) throws PersistenceException {
    IAttachment attachment = loadAttachment(reference.getId());
    AttachmentEvent event = new AttachmentEvent(attachment, true);
    //TODO Not sure about this, but let's do it for now to help us track a bug
    //in NewsService where never having a newsUpdated with a null oldNews is
    //helpful
    INews news = attachment.getNews();
    INews oldNews = fDb.ext().peekPersisted(news, 2, true);
View Full Code Here

Examples of org.rssowl.core.model.events.AttachmentEvent

  /*
   * @see org.rssowl.core.model.dao.IModelDAO#saveAttachment(org.rssowl.core.model.types.IAttachment)
   */
  public IAttachment saveAttachment(IAttachment attachment) throws PersistenceException   {
    AttachmentEvent event = new AttachmentEvent(attachment, true);
    saveCommitAndFireEvents(event, false);
    return attachment;
  }
View Full Code Here

Examples of org.rssowl.core.model.events.AttachmentEvent

    if (entity instanceof INews) {
      modelEvent = createNewsEvent((INews) entity, template, root);
    }
    else if (entity instanceof IAttachment) {
      IAttachment attachment = (IAttachment) entity;
      modelEvent = new AttachmentEvent(attachment, root);
    }
    else if (entity instanceof ICategory) {
      ICategory category = (ICategory) entity;
      modelEvent = new CategoryEvent(category, root);
    }
View Full Code Here

Examples of org.rssowl.core.persist.event.AttachmentEvent

    return createSaveEventTemplate(entity);
  }

  @Override
  protected final AttachmentEvent createSaveEventTemplate(IAttachment entity) {
    return new AttachmentEvent(entity, true);
  }
View Full Code Here

Examples of org.rssowl.core.persist.event.AttachmentEvent

    if (entity instanceof INews) {
      modelEvent = createNewsEvent((INews) entity, template, root);
    }
    else if (entity instanceof IAttachment) {
      IAttachment attachment = (IAttachment) entity;
      modelEvent = new AttachmentEvent(attachment, root);
    }
    else if (entity instanceof ICategory) {
      ICategory category = (ICategory) entity;
      modelEvent = new CategoryEvent(category, root);
    }
View Full Code Here

Examples of org.rssowl.core.persist.event.AttachmentEvent

    return createSaveEventTemplate(entity);
  }

  @Override
  protected final AttachmentEvent createSaveEventTemplate(IAttachment entity) {
    return new AttachmentEvent(entity, true);
  }
View Full Code Here

Examples of org.rssowl.core.persist.event.AttachmentEvent

    if (entity instanceof INews) {
      modelEvent = createNewsEvent((INews) entity, template, root);
    }
    else if (entity instanceof IAttachment) {
      IAttachment attachment = (IAttachment) entity;
      modelEvent = new AttachmentEvent(attachment, root);
    }
    else if (entity instanceof ICategory) {
      ICategory category = (ICategory) entity;
      modelEvent = new CategoryEvent(category, root);
    }
View Full Code Here

Examples of org.rssowl.core.persist.event.AttachmentEvent

   * org.rssowl.core.internal.persist.dao.AbstractEntityDAO#createSaveEventTemplate
   * (org.rssowl.core.persist.IEntity)
   */
  @Override
  protected final AttachmentEvent createSaveEventTemplate(IAttachment entity) {
    return new AttachmentEvent(entity, true);
  }
View Full Code Here

Examples of org.rssowl.core.persist.event.AttachmentEvent

    boolean merged = isMerged(template);
    if (entity instanceof INews) {
      modelEvent = createNewsEvent((INews) entity, template, root, merged);
    } else if (entity instanceof IAttachment) {
      IAttachment attachment = (IAttachment) entity;
      modelEvent = new AttachmentEvent(attachment, root);
    } else if (entity instanceof ICategory) {
      ICategory category = (ICategory) entity;
      modelEvent = new CategoryEvent(category, root);
    } else if (entity instanceof IFeed) {
      IFeed feed = (IFeed) entity;
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.