com.stratelia.webactiv.todo.control
Class ToDoSessionController

java.lang.Object
  extended by com.stratelia.silverpeas.peasCore.AbstractComponentSessionController
      extended by com.stratelia.webactiv.todo.control.ToDoSessionController
All Implemented Interfaces:
ComponentSessionController

public class ToDoSessionController
extends AbstractComponentSessionController

Class declaration

Author:

Field Summary
static int CLOSED_TODO_VIEW
           
static int ORGANIZER_TODO_VIEW
           
static int PARTICIPANT_TODO_VIEW
           
 
Fields inherited from class com.stratelia.silverpeas.peasCore.AbstractComponentSessionController
CHARACTER_ENCODING, context
 
Constructor Summary
ToDoSessionController(MainSessionController mainSessionCtrl, ComponentContext context)
          Constructor declaration
 
Method Summary
 String addToDo(String name, String description, String priority, String classification, Date startDay, String startHour, Date endDay, String endHour, String percent)
          Method declaration
 void close()
           
 void closeToDo(String id)
          Method declaration
 Collection<ToDoHeader> getClosedToDos()
          Method declaration
 ComponentInstLight getComponentInst(String componentId)
          ComponentInst cache mechanism
protected  String getComponentInstName()
           
 Collection<Attendee> getCurrentAttendees()
          Method declaration
 ToDoHeader getCurrentToDoHeader()
          Method declaration
 Collection<ToDoHeader> getNotCompletedToDos()
          Method declaration
 NotificationSender getNotificationSender()
          Method declaration
 Collection<ToDoHeader> getOrganizerToDos()
          Method declaration
 ResourceLocator getSettings()
          Method declaration
 SpaceInstLight getSpaceInst(String spaceId)
          SpaceInst cache mechanism
 Collection<Attendee> getToDoAttendees(String todoId)
          methods for attendees
 ToDoHeader getToDoHeader(String todoId)
          Method declaration
 Collection<ToDoHeader> getToDos()
          methods for ToDo
 UserDetail[] getUserList()
          Method declaration
 Collection<Attendee> getUserSelected()
          Retourne une Collection de UserDetail des utilisateurs selectionnés via le userPanel
 int getViewType()
          Method declaration
 void indexAll()
          Method declaration
 String initSelectionPeas()
          Paramètre le userPannel => tous les users, sélection des users participants
protected  void notifyAttendees(String id, String title, String text)
          Method declaration
 void removeTabToDo(String[] tabTodoId)
          Remove all the todo passed in parameter
 void removeToDo(String id)
          Method declaration
 void reopenToDo(String id)
          Method declaration
 void setCurrentAttendees(Collection<Attendee> attendees)
          Method declaration
 void setCurrentToDoHeader(ToDoHeader todo)
          Method declaration
 void setToDoAttendees(String todoId, String[] userIds)
          Method declaration
 void setToDoPercentCompleted(String id, String percent)
          Method declaration
 void setViewType(int viewType)
          Method declaration
 void updateToDo(String id, String name, String description, String priority, String classification, Date startDay, String startHour, Date endDay, String endHour, String percent)
          Method declaration
 void verifyCurrentUserIsOwner(String taskId)
          This method verify that the owner of the task represented by the given id is the current user.
 
Methods inherited from class com.stratelia.silverpeas.peasCore.AbstractComponentSessionController
addClipboardSelection, clipboardPasteDone, 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, 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
 

Field Detail

PARTICIPANT_TODO_VIEW

public static final int PARTICIPANT_TODO_VIEW
See Also:
Constant Field Values

ORGANIZER_TODO_VIEW

public static final int ORGANIZER_TODO_VIEW
See Also:
Constant Field Values

CLOSED_TODO_VIEW

public static final int CLOSED_TODO_VIEW
See Also:
Constant Field Values
Constructor Detail

ToDoSessionController

public ToDoSessionController(MainSessionController mainSessionCtrl,
                             ComponentContext context)
Constructor declaration

See Also:
Method Detail

getComponentInstName

protected String getComponentInstName()

getToDos

public Collection<ToDoHeader> getToDos()
                                throws TodoException
methods for ToDo

Throws:
TodoException

getNotCompletedToDos

public Collection<ToDoHeader> getNotCompletedToDos()
                                            throws TodoException
Method declaration

Returns:
Throws:
TodoException
See Also:

getOrganizerToDos

public Collection<ToDoHeader> getOrganizerToDos()
                                         throws TodoException
Method declaration

Returns:
Throws:
TodoException
See Also:

getClosedToDos

public Collection<ToDoHeader> getClosedToDos()
                                      throws TodoException
Method declaration

Returns:
Throws:
TodoException
See Also:

getToDoHeader

public ToDoHeader getToDoHeader(String todoId)
                         throws TodoException
Method declaration

Parameters:
todoId -
Returns:
Throws:
TodoException
See Also:

updateToDo

public void updateToDo(String id,
                       String name,
                       String description,
                       String priority,
                       String classification,
                       Date startDay,
                       String startHour,
                       Date endDay,
                       String endHour,
                       String percent)
                throws TodoException
Method declaration

Parameters:
id -
name -
description -
priority -
classification -
startDay -
startHour -
endDay -
endHour -
percent -
Throws:
TodoException
See Also:

setToDoPercentCompleted

public void setToDoPercentCompleted(String id,
                                    String percent)
                             throws TodoException
Method declaration

Parameters:
id -
percent -
Throws:
TodoException
See Also:

notifyAttendees

protected void notifyAttendees(String id,
                               String title,
                               String text)
Method declaration

Parameters:
id -
title -
text -
See Also:

closeToDo

public void closeToDo(String id)
               throws TodoException
Method declaration

Parameters:
id -
Throws:
TodoException
See Also:

reopenToDo

public void reopenToDo(String id)
                throws TodoException
Method declaration

Parameters:
id -
Throws:
TodoException
See Also:

addToDo

public String addToDo(String name,
                      String description,
                      String priority,
                      String classification,
                      Date startDay,
                      String startHour,
                      Date endDay,
                      String endHour,
                      String percent)
               throws TodoException
Method declaration

Parameters:
name -
description -
priority -
classification -
startDay -
startHour -
endDay -
endHour -
percent -
Returns:
Throws:
TodoException
See Also:

removeToDo

public void removeToDo(String id)
                throws TodoException
Method declaration

Parameters:
id -
Throws:
TodoException
See Also:

indexAll

public void indexAll()
              throws TodoException
Method declaration

Throws:
TodoException
See Also:

getToDoAttendees

public Collection<Attendee> getToDoAttendees(String todoId)
                                      throws TodoException
methods for attendees

Throws:
TodoException

setToDoAttendees

public void setToDoAttendees(String todoId,
                             String[] userIds)
                      throws TodoException
Method declaration

Parameters:
todoId -
userIds -
Throws:
TodoException
See Also:

getUserList

public UserDetail[] getUserList()
Method declaration

Returns:
See Also:

getNotificationSender

public NotificationSender getNotificationSender()
Method declaration

Returns:
See Also:

getSettings

public ResourceLocator getSettings()
Method declaration

Specified by:
getSettings in interface ComponentSessionController
Overrides:
getSettings in class AbstractComponentSessionController
Returns:
See Also:

setViewType

public void setViewType(int viewType)
Method declaration

Parameters:
viewType -
See Also:

getViewType

public int getViewType()
Method declaration

Returns:
See Also:

getCurrentToDoHeader

public ToDoHeader getCurrentToDoHeader()
Method declaration

Returns:
See Also:

setCurrentToDoHeader

public void setCurrentToDoHeader(ToDoHeader todo)
Method declaration

Parameters:
todo -
See Also:

getCurrentAttendees

public Collection<Attendee> getCurrentAttendees()
Method declaration

Returns:
See Also:

setCurrentAttendees

public void setCurrentAttendees(Collection<Attendee> attendees)
Method declaration

Parameters:
attendees -
See Also:

initSelectionPeas

public String initSelectionPeas()
Paramètre le userPannel => tous les users, sélection des users participants

Parameters:
-
Returns:
Throws:
See Also:

getUserSelected

public Collection<Attendee> getUserSelected()
                                     throws TodoException
Retourne une Collection de UserDetail des utilisateurs selectionnés via le userPanel

Parameters:
-
Returns:
Throws:
TodoException
See Also:

close

public void close()
Overrides:
close in class AbstractComponentSessionController

getComponentInst

public ComponentInstLight getComponentInst(String componentId)
ComponentInst cache mechanism

Parameters:
componentId -
Returns:

getSpaceInst

public SpaceInstLight getSpaceInst(String spaceId)
SpaceInst cache mechanism

Parameters:
spaceId -
Returns:

removeTabToDo

public void removeTabToDo(String[] tabTodoId)
                   throws TodoException
Remove all the todo passed in parameter

Parameters:
tabTodoId -
Throws:
TodoException
See Also:

verifyCurrentUserIsOwner

public void verifyCurrentUserIsOwner(String taskId)
This method verify that the owner of the task represented by the given id is the current user.

Parameters:
taskId -


Copyright © 2016 Silverpeas. All Rights Reserved.