Class RomeNewsProcessorImpl
java.lang.Object
org.jasig.portlet.newsreader.processor.RomeNewsProcessorImpl
- Direct Known Subclasses:
RomeNewsFullStoryProcessorImpl
RomeNewsProcessorImpl class.
- Since:
- 5.1.1
- Author:
- bgonzalez
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFeed(InputStream in, String titlePolicy, String descriptionPolicy, int maxStories) getFeed.protected NewsFeedItemgetNewsFeedItem(com.rometools.rome.feed.synd.SyndEntry entry, String titlePolicy, String descriptionPolicy) getNewsFeedItem.voidsetEntriesPerPage(int perPage) Setter for the fieldentriesPerPage.voidsetImageTypes(List<String> imageTypes) Setter for the fieldimageTypes.voidsetPolicies(Map<String, org.springframework.core.io.Resource> policies) Setter for the fieldpolicies.voidsetVideoTypes(List<String> videoTypes) Setter for the fieldvideoTypes.
-
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
Setter for the field
imageTypes.- Parameters:
imageTypes- aListobject
-
setVideoTypes
Setter for the field
videoTypes.- Parameters:
videoTypes- aListobject
-
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- aInputStreamobjecttitlePolicy- aStringobjectdescriptionPolicy- aStringobjectmaxStories- a int- Returns:
- a
PaginatingNewsFeedobject - 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- aSyndEntryobjecttitlePolicy- aStringobjectdescriptionPolicy- aStringobject- Returns:
- a
NewsFeedItemobject - 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, IOExceptionSetter for the field
policies.- Parameters:
policies- aMapobject- Throws:
org.owasp.validator.html.PolicyException- if any.IOException- if any.
-