com.silverpeas.rssAgregator.control
Class RssAgregatorSessionController

java.lang.Object
  extended by com.stratelia.silverpeas.peasCore.AbstractComponentSessionController
      extended by com.silverpeas.rssAgregator.control.RssAgregatorSessionController
All Implemented Interfaces:
com.stratelia.silverpeas.peasCore.ComponentSessionController

public class RssAgregatorSessionController
extends com.stratelia.silverpeas.peasCore.AbstractComponentSessionController

Standard Session Controller Constructor

Since:
27/08/2004
Author:
neysseri
See Also:

Field Summary
 
Fields inherited from class com.stratelia.silverpeas.peasCore.AbstractComponentSessionController
CHARACTER_ENCODING, context
 
Constructor Summary
RssAgregatorSessionController(com.stratelia.silverpeas.peasCore.MainSessionController mainSessionCtrl, com.stratelia.silverpeas.peasCore.ComponentContext componentContext)
          Default constructor
 
Method Summary
 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 informations (channels and items).
 SimpleDateFormat getDateFormatter()
           
 String getHighestRole()
          This method return the highest user profiles
 String 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 com.stratelia.silverpeas.peasCore.AbstractComponentSessionController
addClipboardSelection, clipboardPasteDone, close, getAlertUser, getClipboardCount, getClipboardErrorMessage, getClipboardExceptionError, getClipboardName, getClipboardObjects, getClipboardSelectedObjects, getClipboardSize, getComponentAccessController, getComponentId, getComponentLabel, getComponentName, getComponentParameters, getComponentParameterValue, getComponentParameterValue, getComponentRootName, getComponentUrl, getFavoriteSpace, getGenericPanel, getHighestSilverpeasUserRole, getIcon, getLanguage, getLastResults, getLook, getMultilang, getOrganisationController, getPersonalization, getRSSUrl, getSelection, getServerNameAndPort, getSettings, getSilverpeasUserRoles, getSpaceId, getSpaceLabel, getString, getSubscriptionContext, getUrlEncodedParameter, getUserAccessLevel, getUserAvailComponentIds, getUserAvailSpaceIds, getUserDetail, getUserDetail, getUserId, getUserManageableGroupIds, getUserManageableSpaceIds, getUserRoleLevel, getUserRoles, isAppInMaintenance, isGroupManager, isPasswordChangeAllowed, isSpaceInMaintenance, removeClipboardElement, setAppModeMaintenance, setClipboardError, setClipboardSelectedElement, setComponentRootName, setFavoriteSpaceToMainSessionController, setGenericPanel, setIconFileName, setLastResults, setMultilangFileName, setResourceFileName, setSpaceModeMaintenance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RssAgregatorSessionController

public RssAgregatorSessionController(com.stratelia.silverpeas.peasCore.MainSessionController mainSessionCtrl,
                                     com.stratelia.silverpeas.peasCore.ComponentContext componentContext)
Default constructor

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 informations (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

getDateFormatter

public SimpleDateFormat getDateFormatter()
Returns:

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, agregated).

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


Copyright © 2016 Silverpeas. All Rights Reserved.