Package org.rssowl.core.model.types

Examples of org.rssowl.core.model.types.IAttachment


  }
  /*
   * @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);
    NewsEvent newsEvent = new NewsEvent(oldNews, news, false);
    DBHelper.putEventTemplate(newsEvent);
    deleteEntityAndFireEvents(event);
  }
View Full Code Here


      news.getState();
      news.getTitle();
    }

    else if (type instanceof IAttachment) {
      IAttachment attachment = (IAttachment) type;
      attachment.getLength();
      attachment.getType();
      attachment.getUrl();
    }

    else if (type instanceof ICategory) {
      ICategory category = (ICategory) type;
      category.getDomain();
View Full Code Here

TOP

Related Classes of org.rssowl.core.model.types.IAttachment

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.