com.silverpeas.scheduleevent.control
Class ScheduleEventSessionController

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

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


Field Summary
 
Fields inherited from class com.stratelia.silverpeas.peasCore.AbstractComponentSessionController
CHARACTER_ENCODING, context
 
Constructor Summary
ScheduleEventSessionController(com.stratelia.silverpeas.peasCore.MainSessionController mainSessionCtrl, com.stratelia.silverpeas.peasCore.ComponentContext componentContext)
          Standard Session Controller Constructeur
 
Method Summary
 void addContributors(String[] usersId, Set<Contributor> recordedContributors)
           
 void createCurrentScheduleEvent()
           
 void delete(String scheduleEventId)
           
 String exportToICal(ScheduleEvent event)
          Exports the current ScheduleEvent in iCal format.
 Set<OptionDateVO> getCurrentOptionalDateIndexes()
           
 ScheduleEvent getCurrentScheduleEvent()
           
 ScheduleEventBean getCurrentScheduleEventVO()
           
 ScheduleEvent getDetail(String id)
           
 List<ScheduleEvent> getScheduleEventsByUserId()
           
 Double getSubscribersRateAnswerFor(ScheduleEvent event)
           
 String initSelectUsersPanel()
           
 boolean isCurrentScheduleEventDefined()
           
 Response makeReponseFor(ScheduleEvent scheduleEvent, String dateId)
           
 ScheduleEvent purgeOldResponseForUserId(ScheduleEvent scheduleEvent)
           
 void resetScheduleEventCreationBuffer()
           
 void save()
           
 void sendCallAgainNotification(String message)
           
 void sendSubscriptionsNotification()
           
 void setCurrentScheduleEvent(ScheduleEvent currentScheduleEvent)
           
 void setCurrentScheduleEventWith(Set<OptionDateVO> optionalDays)
           
 void setIdUsersAndGroups()
           
 void switchState(String id)
           
 void updateIdUsersAndGroups()
           
 void updateUserAvailabilities(ScheduleEvent scheduleEvent)
           
 
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

ScheduleEventSessionController

public ScheduleEventSessionController(com.stratelia.silverpeas.peasCore.MainSessionController mainSessionCtrl,
                                      com.stratelia.silverpeas.peasCore.ComponentContext componentContext)
Standard Session Controller Constructeur

Parameters:
mainSessionCtrl - The user's profile
componentContext - The component's profile
See Also:
Method Detail

setCurrentScheduleEvent

public void setCurrentScheduleEvent(ScheduleEvent currentScheduleEvent)

getCurrentScheduleEvent

public ScheduleEvent getCurrentScheduleEvent()

getCurrentScheduleEventVO

public ScheduleEventBean getCurrentScheduleEventVO()

resetScheduleEventCreationBuffer

public void resetScheduleEventCreationBuffer()

createCurrentScheduleEvent

public void createCurrentScheduleEvent()

isCurrentScheduleEventDefined

public boolean isCurrentScheduleEventDefined()

initSelectUsersPanel

public String initSelectUsersPanel()

setIdUsersAndGroups

public void setIdUsersAndGroups()

addContributors

public void addContributors(String[] usersId,
                            Set<Contributor> recordedContributors)

updateIdUsersAndGroups

public void updateIdUsersAndGroups()

save

public void save()

sendSubscriptionsNotification

public void sendSubscriptionsNotification()

sendCallAgainNotification

public void sendCallAgainNotification(String message)

getScheduleEventsByUserId

public List<ScheduleEvent> getScheduleEventsByUserId()

getDetail

public ScheduleEvent getDetail(String id)

switchState

public void switchState(String id)

delete

public void delete(String scheduleEventId)

updateUserAvailabilities

public void updateUserAvailabilities(ScheduleEvent scheduleEvent)

purgeOldResponseForUserId

public ScheduleEvent purgeOldResponseForUserId(ScheduleEvent scheduleEvent)

getSubscribersRateAnswerFor

public Double getSubscribersRateAnswerFor(ScheduleEvent event)

getCurrentOptionalDateIndexes

public Set<OptionDateVO> getCurrentOptionalDateIndexes()
                                                throws Exception
Throws:
Exception

setCurrentScheduleEventWith

public void setCurrentScheduleEventWith(Set<OptionDateVO> optionalDays)

makeReponseFor

public Response makeReponseFor(ScheduleEvent scheduleEvent,
                               String dateId)

exportToICal

public String exportToICal(ScheduleEvent event)
                    throws Exception
Exports the current ScheduleEvent in iCal format. The iCal file is generated into the temporary directory.

Returns:
the iCal file name into which is generated the current ScheduleEvent.
Throws:
Exception


Copyright © 2016 Silverpeas. All Rights Reserved.