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 int
CLOSED_TODO_VIEW
static int
ORGANIZER_TODO_VIEW
static int
PARTICIPANT_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 String
addToDo(String name, String description, String priority, String classification, Date startDay, String startHour, Date endDay, String endHour, String percent)
Method declarationvoid
close()
The user session is being in close, close all resources relative to the session.void
closeToDo(String id)
Method declarationSilverpeasList<ToDoHeader>
getClosedToDos()
Method declarationComponentInstLight
getComponentInst(String componentId)
ComponentInst cache mechanismprotected String
getComponentInstName()
Collection<Attendee>
getCurrentAttendees()
Method declarationToDoHeader
getCurrentToDoHeader()
Method declarationSilverpeasList<ToDoHeader>
getNotCompletedToDos()
Method declarationNotificationSender
getNotificationSender()
Method declarationSilverpeasList<ToDoHeader>
getOrganizerToDos()
Method declarationSet<String>
getSelectedTodoIds()
org.silverpeas.kernel.bundle.SettingBundle
getSettings()
Method declarationSpaceInstLight
getSpaceInst(String spaceId)
SpaceInst cache mechanismList<Attendee>
getToDoAttendees(String todoId)
methods for attendeesMap<String,List<Attendee>>
getToDoAttendees(List<String> todoIds)
methods for attendeesToDoHeader
getToDoHeader(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 userPanelint
getViewType()
Method declarationString
initSelectionPeas()
Paramètre le userPannel => tous les users, sélection des users participantsprotected void
notifyAttendees(String id, String title, String text)
Method declarationvoid
removeTabToDo(String[] tabTodoId)
Remove all the to do passed in parametervoid
removeToDo(String id)
Method declarationvoid
reopenToDo(String id)
Method declarationvoid
setCurrentAttendees(Collection<Attendee> attendees)
Method declarationvoid
setCurrentToDoHeader(ToDoHeader todo)
Method declarationvoid
setToDoAttendees(String todoId, String[] userIds)
Method declarationvoid
setToDoPercentCompleted(String id, String percent)
Method declarationvoid
setViewType(int viewType)
Method declarationvoid
updateToDo(String id, String name, String description, String priority, String classification, Date startDay, String startHour, Date endDay, String endHour, String percent)
Method declarationvoid
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 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:
getSettings
in interfaceComponentSessionController
- Overrides:
getSettings
in 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:SessionCloseable
The user session is being in close, close all resources relative to the session.- Specified by:
close
in interfaceSessionCloseable
- Overrides:
close
in 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.
-
-