Class RssAgregatorSessionController
- java.lang.Object
-
- org.silverpeas.core.web.mvc.controller.AbstractComponentSessionController
-
- org.silverpeas.components.rssaggregator.control.RssAgregatorSessionController
-
- All Implemented Interfaces:
Serializable,org.silverpeas.core.web.mvc.controller.ComponentSessionController,org.silverpeas.core.web.session.SessionCloseable
public class RssAgregatorSessionController extends org.silverpeas.core.web.mvc.controller.AbstractComponentSessionControllerStandard Session Controller Constructor- Author:
- neysseri
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RssAgregatorSessionController(org.silverpeas.core.web.mvc.controller.MainSessionController mainSessionCtrl, org.silverpeas.core.web.mvc.controller.ComponentContext componentContext)Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SPChanneladdChannel(SPChannel channel)voiddeleteChannel(String id)List<SPChannel>getAvailableChannels()Extract rss files informations (channels and items).SPChannelgetChannel(String id)List<SPChannel>getChannelsContent()Extract rss files information (channels and items).StringgetHighestRole()This method return the highest user profilesStringgetRSSIntroductionContent()RSSViewTypegetViewMode()voidsetViewMode(RSSViewType viewMode)Sets the current view mode of the RSS agregator rendering.voidupdateChannel(SPChannel channel)-
Methods inherited from class org.silverpeas.core.web.mvc.controller.AbstractComponentSessionController
addClipboardSelection, clipboardPasteDone, close, getClipboardErrorMessage, getClipboardExceptionError, getClipboardObjects, getClipboardSelectedObjects, getClipboardSize, getComponentAccessController, getComponentId, getComponentLabel, getComponentName, getComponentParameterValue, getComponentParameterValue, getComponentRootName, getComponentUrl, getHighestSilverpeasUserRole, getIcon, getLanguage, getLook, getMultilang, getOrganisationController, getPersonalization, getRSSUrl, getSelection, getSettings, getSilverpeasUserRoles, getSpaceId, getSpaceLabel, getString, getSubscriptionContext, getUrlEncodedParameter, getUserAccessLevel, getUserAvailComponentIds, getUserDetail, getUserDetail, getUserId, getUserManageableGroupIds, getUserManageableSpaceIds, getUserRoles, getZoneId, isAppInMaintenance, isGroupManager, isPasswordChangeAllowed, isSpaceInMaintenance, removeClipboardElement, setAppModeMaintenance, setClipboardSelectedElement, setComponentRootName, setSpaceModeMaintenance
-
-
-
-
Method Detail
-
getAvailableChannels
public List<SPChannel> getAvailableChannels() throws RssAgregatorException
Extract rss files informations (channels and items). Return a list of Channel.- Throws:
RssAgregatorException
-
getChannelsContent
public List<SPChannel> getChannelsContent() throws RssAgregatorException
Extract rss files information (channels and items). Return a list of Channel.- Throws:
RssAgregatorException
-
addChannel
public SPChannel addChannel(SPChannel channel) throws RssAgregatorException
- Throws:
RssAgregatorException
-
updateChannel
public void updateChannel(SPChannel channel) throws RssAgregatorException
- Throws:
RssAgregatorException
-
deleteChannel
public void deleteChannel(String id) throws RssAgregatorException
- Throws:
RssAgregatorException
-
getChannel
public SPChannel getChannel(String id) throws RssAgregatorException
- Throws:
RssAgregatorException
-
getRSSIntroductionContent
public String getRSSIntroductionContent()
- Returns:
- HTML string content of RSS presentation
-
setViewMode
public void setViewMode(RSSViewType viewMode)
Sets the current view mode of the RSS agregator rendering.- Parameters:
viewMode- the view mode (separated, aggregated).
-
getViewMode
public RSSViewType getViewMode()
- Returns:
- the current viewMode
-
getHighestRole
public String getHighestRole()
This method return the highest user profiles- Returns:
- profile which gives the higher access
-
-