Package org.rssowl.core.model.events

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


  /*
   * @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

    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

TOP

Related Classes of org.rssowl.core.model.events.AttachmentEvent

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.