Package org.silverpeas.web.todo.control
Class ToDoSessionController
- java.lang.Object
-
- org.silverpeas.core.web.mvc.controller.AbstractComponentSessionController
-
- org.silverpeas.web.todo.control.ToDoSessionController
-
- All Implemented Interfaces:
Serializable,ComponentSessionController,SessionCloseable
public class ToDoSessionController extends AbstractComponentSessionController
Class declaration- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intCLOSED_TODO_VIEWstatic intORGANIZER_TODO_VIEWstatic intPARTICIPANT_TODO_VIEW-
Fields inherited from class org.silverpeas.core.web.mvc.controller.AbstractComponentSessionController
context
-
-
Constructor Summary
Constructors Constructor Description ToDoSessionController(MainSessionController mainSessionCtrl, ComponentContext context)Constructor declaration
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringaddToDo(String name, String description, String priority, String classification, Date startDay, String startHour, Date endDay, String endHour, String percent)Method declarationvoidclose()The user session is being in close, close all resources relative to the session.voidcloseToDo(String id)Method declarationSilverpeasList<ToDoHeader>getClosedToDos()Method declarationComponentInstLightgetComponentInst(String componentId)ComponentInst cache mechanismprotected StringgetComponentInstName()Collection<Attendee>getCurrentAttendees()Method declarationToDoHeadergetCurrentToDoHeader()Method declarationSilverpeasList<ToDoHeader>getNotCompletedToDos()Method declarationNotificationSendergetNotificationSender()Method declarationSilverpeasList<ToDoHeader>getOrganizerToDos()Method declarationSet<String>getSelectedTodoIds()org.silverpeas.kernel.bundle.SettingBundlegetSettings()Method declarationSpaceInstLightgetSpaceInst(String spaceId)SpaceInst cache mechanismList<Attendee>getToDoAttendees(String todoId)methods for attendeesMap<String,List<Attendee>>getToDoAttendees(List<String> todoIds)methods for attendeesToDoHeadergetToDoHeader(String todoId)Method declarationSilverpeasList<ToDoHeader>getToDos()methods for To DoUserDetail[]getUserList()Method declarationCollection<Attendee>getUserSelected()Retourne une Collection de UserDetail des utilisateurs selectionnés via le userPanelintgetViewType()Method declarationStringinitSelectionPeas()Paramètre le userPannel => tous les users, sélection des users participantsprotected voidnotifyAttendees(String id, String title, String text)Method declarationvoidremoveTabToDo(String[] tabTodoId)Remove all the to do passed in parametervoidremoveToDo(String id)Method declarationvoidreopenToDo(String id)Method declarationvoidsetCurrentAttendees(Collection<Attendee> attendees)Method declarationvoidsetCurrentToDoHeader(ToDoHeader todo)Method declarationvoidsetToDoAttendees(String todoId, String[] userIds)Method declarationvoidsetToDoPercentCompleted(String id, String percent)Method declarationvoidsetViewType(int viewType)Method declarationvoidupdateToDo(String id, String name, String description, String priority, String classification, Date startDay, String startHour, Date endDay, String endHour, String percent)Method declarationvoidverifyCurrentUserIsOwner(String taskId)This method verify that the owner of the task represented by the given id is the current user.-
Methods inherited from class org.silverpeas.core.web.mvc.controller.AbstractComponentSessionController
addClipboardSelection, clipboardPasteDone, getClipboardErrorMessage, getClipboardExceptionError, getClipboardObjects, getClipboardSelectedObjects, getClipboardSize, getComponentAccessController, getComponentId, getComponentLabel, getComponentName, getComponentParameterValue, getComponentParameterValue, getComponentRootName, getComponentUrl, getHighestSilverpeasUserRole, getIcon, getLanguage, getLook, getMultilang, getOrganisationController, getPersonalization, getRSSUrl, getSelection, getSilverpeasUserRoles, getSpaceId, getSpaceLabel, getString, getSubscriptionContext, getUrlEncodedParameter, getUserAccessLevel, getUserAvailComponentIds, getUserDetail, getUserDetail, getUserId, getUserManageableGroupIds, getUserManageableSpaceIds, getUserRoles, getZoneId, isAppInMaintenance, isGroupManager, isPasswordChangeAllowed, isSpaceInMaintenance, removeClipboardElement, setAppModeMaintenance, setClipboardSelectedElement, setComponentRootName, setSpaceModeMaintenance
-
-
-
-
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
-
-
Method Detail
-
getComponentInstName
protected String getComponentInstName()
-
getToDos
public SilverpeasList<ToDoHeader> getToDos() throws TodoException
methods for To Do- Throws:
TodoException
-
getNotCompletedToDos
public SilverpeasList<ToDoHeader> getNotCompletedToDos() throws TodoException
Method declaration- Throws:
TodoException
-
getOrganizerToDos
public SilverpeasList<ToDoHeader> getOrganizerToDos() throws TodoException
Method declaration- Throws:
TodoException
-
getClosedToDos
public SilverpeasList<ToDoHeader> getClosedToDos() throws TodoException
Method declaration- Throws:
TodoException
-
getToDoHeader
public ToDoHeader getToDoHeader(String todoId) throws TodoException
Method declaration- Throws:
TodoException
-
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- Throws:
TodoException
-
setToDoPercentCompleted
public void setToDoPercentCompleted(String id, String percent) throws TodoException
Method declaration- Throws:
TodoException
-
notifyAttendees
protected void notifyAttendees(String id, String title, String text)
Method declaration
-
closeToDo
public void closeToDo(String id) throws TodoException
Method declaration- Throws:
TodoException
-
reopenToDo
public void reopenToDo(String id) throws TodoException
Method declaration- Throws:
TodoException
-
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- Throws:
TodoException
-
removeToDo
public void removeToDo(String id) throws TodoException
Method declaration- Throws:
TodoException
-
getToDoAttendees
public Map<String,List<Attendee>> getToDoAttendees(List<String> todoIds)
methods for attendees
-
setToDoAttendees
public void setToDoAttendees(String todoId, String[] userIds) throws TodoException
Method declaration- Throws:
TodoException
-
getUserList
public UserDetail[] getUserList()
Method declaration
-
getNotificationSender
public NotificationSender getNotificationSender()
Method declaration
-
getSettings
public org.silverpeas.kernel.bundle.SettingBundle getSettings()
Method declaration- Specified by:
getSettingsin interfaceComponentSessionController- Overrides:
getSettingsin classAbstractComponentSessionController
-
setViewType
public void setViewType(int viewType)
Method declaration
-
getViewType
public int getViewType()
Method declaration
-
getCurrentToDoHeader
public ToDoHeader getCurrentToDoHeader()
Method declaration
-
setCurrentToDoHeader
public void setCurrentToDoHeader(ToDoHeader todo)
Method declaration
-
getCurrentAttendees
public Collection<Attendee> getCurrentAttendees()
Method declaration
-
setCurrentAttendees
public void setCurrentAttendees(Collection<Attendee> attendees)
Method declaration
-
initSelectionPeas
public String initSelectionPeas()
Paramètre le userPannel => tous les users, sélection des users participants
-
getUserSelected
public Collection<Attendee> getUserSelected() throws TodoException
Retourne une Collection de UserDetail des utilisateurs selectionnés via le userPanel- Throws:
TodoException
-
close
public void close()
Description copied from interface:SessionCloseableThe user session is being in close, close all resources relative to the session.- Specified by:
closein interfaceSessionCloseable- Overrides:
closein classAbstractComponentSessionController
-
getComponentInst
public ComponentInstLight getComponentInst(String componentId)
ComponentInst cache mechanism
-
getSpaceInst
public SpaceInstLight getSpaceInst(String spaceId)
SpaceInst cache mechanism
-
removeTabToDo
public void removeTabToDo(String[] tabTodoId) throws TodoException
Remove all the to do passed in parameter- Throws:
TodoException
-
verifyCurrentUserIsOwner
public void verifyCurrentUserIsOwner(String taskId)
This method verify that the owner of the task represented by the given id is the current user.
-
-