Class RomeNewsProcessorImpl

java.lang.Object
org.jasig.portlet.newsreader.processor.RomeNewsProcessorImpl
Direct Known Subclasses:
RomeNewsFullStoryProcessorImpl

public class RomeNewsProcessorImpl extends Object

RomeNewsProcessorImpl class.

Since:
5.1.1
Author:
bgonzalez
  • Field Details

    • log

      protected final org.slf4j.Logger log
  • Constructor Details

    • RomeNewsProcessorImpl

      public RomeNewsProcessorImpl()
  • Method Details

    • setEntriesPerPage

      public void setEntriesPerPage(int perPage)

      Setter for the field entriesPerPage.

      Parameters:
      perPage - a int
    • setImageTypes

      public void setImageTypes(List<String> imageTypes)

      Setter for the field imageTypes.

      Parameters:
      imageTypes - a List object
    • setVideoTypes

      public void setVideoTypes(List<String> videoTypes)

      Setter for the field videoTypes.

      Parameters:
      videoTypes - a List object
    • getFeed

      public PaginatingNewsFeed getFeed(InputStream in, String titlePolicy, String descriptionPolicy, int maxStories) throws IOException, IllegalArgumentException, com.rometools.rome.io.FeedException, org.owasp.validator.html.PolicyException, org.owasp.validator.html.ScanException

      getFeed.

      Parameters:
      in - a InputStream object
      titlePolicy - a String object
      descriptionPolicy - a String object
      maxStories - a int
      Returns:
      a PaginatingNewsFeed object
      Throws:
      IOException - if any.
      IllegalArgumentException - if any.
      com.rometools.rome.io.FeedException - if any.
      org.owasp.validator.html.PolicyException - if any.
      org.owasp.validator.html.ScanException - if any.
    • getNewsFeedItem

      protected NewsFeedItem getNewsFeedItem(com.rometools.rome.feed.synd.SyndEntry entry, String titlePolicy, String descriptionPolicy) throws org.owasp.validator.html.PolicyException, org.owasp.validator.html.ScanException

      getNewsFeedItem.

      Parameters:
      entry - a SyndEntry object
      titlePolicy - a String object
      descriptionPolicy - a String object
      Returns:
      a NewsFeedItem object
      Throws:
      org.owasp.validator.html.PolicyException - if any.
      org.owasp.validator.html.ScanException - if any.
    • setPolicies

      public void setPolicies(Map<String,org.springframework.core.io.Resource> policies) throws org.owasp.validator.html.PolicyException, IOException

      Setter for the field policies.

      Parameters:
      policies - a Map object
      Throws:
      org.owasp.validator.html.PolicyException - if any.
      IOException - if any.