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.AbstractComponentSessionController
Standard 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 SPChannel
addChannel(SPChannel channel)
void
deleteChannel(String id)
List<SPChannel>
getAvailableChannels()
Extract rss files informations (channels and items).SPChannel
getChannel(String id)
List<SPChannel>
getChannelsContent()
Extract rss files information (channels and items).String
getHighestRole()
This method return the highest user profilesString
getRSSIntroductionContent()
RSSViewType
getViewMode()
void
setViewMode(RSSViewType viewMode)
Sets the current view mode of the RSS agregator rendering.void
updateChannel(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
-
-