Class NewsController
java.lang.Object
org.jasig.portlet.newsreader.mvc.AbstractNewsController
org.jasig.portlet.newsreader.mvc.portlet.reader.NewsController
NewsController class.
- Since:
- 5.1.1
- Author:
- bgonzalez
-
Field Summary
FieldsFields inherited from class org.jasig.portlet.newsreader.mvc.AbstractNewsController
ALLOW_EDIT_PREFERENCE, ALLOW_HELP_PREFERENCE, INITIALIZED, NEWS_ADMIN_ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddefaultAction.org.springframework.web.portlet.ModelAndViewfullStory(Long activeFeed, int itemIndex, int page, javax.portlet.RenderRequest request, javax.portlet.RenderResponse response, org.springframework.ui.Model model) fullStory.voidgetPreferences(javax.portlet.RenderRequest request, org.springframework.ui.Model model) getPreferences.voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) Setter for the fieldapplicationContext.voidsetDefaultItems(int defaultItems) Setter for the fielddefaultItems.voidsetInitializationServices(List<IInitializationService> services) Setter for the fieldinitializationServices.voidsetNewsStore(NewsStore newsStore) Setter for the fieldnewsStore.voidsetSetCreationService(NewsSetResolvingService setCreationService) Setter for the fieldsetCreationService.showMainView(javax.portlet.RenderRequest request) showMainView.Methods inherited from class org.jasig.portlet.newsreader.mvc.AbstractNewsController
filterNonWhitelistedConfigurations, getMaxStories, isAdmin, isGuest, supportsEdit, supportsHelp
-
Field Details
-
log
protected final org.slf4j.Logger log
-
-
Constructor Details
-
NewsController
public NewsController()
-
-
Method Details
-
setNewsStore
Setter for the field
newsStore.- Parameters:
newsStore- aNewsStoreobject
-
setDefaultItems
public void setDefaultItems(int defaultItems) Setter for the field
defaultItems.- Parameters:
defaultItems- a int
-
setInitializationServices
Setter for the field
initializationServices.- Parameters:
services- aListobject
-
defaultAction
@ActionMapping public void defaultAction()defaultAction.
-
getPreferences
@ModelAttribute public void getPreferences(javax.portlet.RenderRequest request, org.springframework.ui.Model model) getPreferences.
- Parameters:
request- aRenderRequestobjectmodel- aModelobject
-
showMainView
showMainView.
-
fullStory
@RenderMapping(params="action=fullStory") public org.springframework.web.portlet.ModelAndView fullStory(@RequestParam Long activeFeed, @RequestParam int itemIndex, @RequestParam int page, javax.portlet.RenderRequest request, javax.portlet.RenderResponse response, org.springframework.ui.Model model) throws Exception fullStory.
-
setApplicationContext
@Autowired public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException Setter for the field
applicationContext.- Parameters:
applicationContext- aApplicationContextobject- Throws:
org.springframework.beans.BeansException- if any.
-
setSetCreationService
Setter for the field
setCreationService.- Parameters:
setCreationService- aNewsSetResolvingServiceobject
-