|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stratelia.silverpeas.peasCore.AbstractComponentSessionController
com.stratelia.webactiv.todo.control.ToDoSessionController
public class ToDoSessionController
Class declaration
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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int PARTICIPANT_TODO_VIEW
public static final int ORGANIZER_TODO_VIEW
public static final int CLOSED_TODO_VIEW
Constructor Detail |
---|
public ToDoSessionController(MainSessionController mainSessionCtrl, ComponentContext context)
Method Detail |
---|
protected String getComponentInstName()
public Collection<ToDoHeader> getToDos() throws TodoException
TodoException
public Collection<ToDoHeader> getNotCompletedToDos() throws TodoException
TodoException
public Collection<ToDoHeader> getOrganizerToDos() throws TodoException
TodoException
public Collection<ToDoHeader> getClosedToDos() throws TodoException
TodoException
public ToDoHeader getToDoHeader(String todoId) throws TodoException
todoId
-
TodoException
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
id
- name
- description
- priority
- classification
- startDay
- startHour
- endDay
- endHour
- percent
-
TodoException
public void setToDoPercentCompleted(String id, String percent) throws TodoException
id
- percent
-
TodoException
protected void notifyAttendees(String id, String title, String text)
id
- title
- text
-
public void closeToDo(String id) throws TodoException
id
-
TodoException
public void reopenToDo(String id) throws TodoException
id
-
TodoException
public String addToDo(String name, String description, String priority, String classification, Date startDay, String startHour, Date endDay, String endHour, String percent) throws TodoException
name
- description
- priority
- classification
- startDay
- startHour
- endDay
- endHour
- percent
-
TodoException
public void removeToDo(String id) throws TodoException
id
-
TodoException
public void indexAll() throws TodoException
TodoException
public Collection<Attendee> getToDoAttendees(String todoId) throws TodoException
TodoException
public void setToDoAttendees(String todoId, String[] userIds) throws TodoException
todoId
- userIds
-
TodoException
public UserDetail[] getUserList()
public NotificationSender getNotificationSender()
public ResourceLocator getSettings()
getSettings
in interface ComponentSessionController
getSettings
in class AbstractComponentSessionController
public void setViewType(int viewType)
viewType
-
public int getViewType()
public ToDoHeader getCurrentToDoHeader()
public void setCurrentToDoHeader(ToDoHeader todo)
todo
-
public Collection<Attendee> getCurrentAttendees()
public void setCurrentAttendees(Collection<Attendee> attendees)
attendees
-
public String initSelectionPeas()
-
public Collection<Attendee> getUserSelected() throws TodoException
-
TodoException
public void close()
close
in class AbstractComponentSessionController
public ComponentInstLight getComponentInst(String componentId)
componentId
-
public SpaceInstLight getSpaceInst(String spaceId)
spaceId
-
public void removeTabToDo(String[] tabTodoId) throws TodoException
tabTodoId
-
TodoException
public void verifyCurrentUserIsOwner(String taskId)
taskId
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |