|
||||||||||
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.agenda.control.AgendaSessionController
public class AgendaSessionController
Field Summary | |
---|---|
static String |
AGENDA_FILENAME_PREFIX
|
static String |
EXPORT_EMPTY
|
static String |
EXPORT_FAILED
|
static String |
EXPORT_SUCCEEDED
|
static int |
HOLIDAY_DAY
|
static String |
ICALENDAR_MIME_TYPE
|
static String |
IMPORT_FAILED
|
static String |
IMPORT_SUCCEEDED
|
static String |
SYNCHRO_FAILED
|
static String |
SYNCHRO_SUCCEEDED
|
static int |
WORKING_DAY
|
Fields inherited from class com.stratelia.silverpeas.peasCore.AbstractComponentSessionController |
---|
CHARACTER_ENCODING, context |
Constructor Summary | |
---|---|
AgendaSessionController(MainSessionController mainSessionCtrl,
ComponentContext context)
|
Method Summary | |
---|---|
String |
addJournal(String name,
String description,
String priority,
String classification,
Date startDay,
String startHour,
Date endDay,
String endHour)
|
void |
changeDateStatus(String date,
String nextStatus)
|
void |
changeDayOfWeekStatus(String year,
String month,
String day)
Change worked or non-worked days status |
void |
close()
|
Collection<SchedulableCount> |
countMonthSchedulables()
Method declaration |
String |
exportIcalAgenda()
|
String |
exportIcalAgenda(String startDate,
String endDate)
Export SilverpeasCalendar in Ical format |
UserDetail |
getAgendaUserDetail()
Get userDetail for this agenda |
String |
getAgendaUserId()
Get userId for this agenda |
Collection<Category> |
getAllCategories()
methods for categories |
Collection<JournalHeader> |
getBusyTime(String userId,
Date day)
Method declaration |
Category |
getCategory()
methods to manage current user state |
Category |
getCategory(String categoryId)
Method declaration |
protected String |
getComponentInstName()
|
Collection<Attendee> |
getCurrentAttendees()
Method declaration |
Collection<Category> |
getCurrentCategories()
Method declaration |
Date |
getCurrentDay()
Method declaration |
int |
getCurrentDisplayType()
Method declaration |
AgendaHtmlView |
getCurrentHtmlView()
Method declaration |
JournalHeader |
getCurrentJournalHeader()
Method declaration |
String |
getCurrentViewType()
Get view Type (by Day, Week, Month ou Year) |
Collection<JournalHeader> |
getDaySchedulables()
Method declaration |
int |
getEndDayInMonth()
Method declaration |
int |
getEndMonth()
Method declaration |
int |
getEndYear()
Method declaration |
List<String> |
getHolidaysDates()
Get Holidays dates in personal agenda (YYYY/MM/JJ) |
List<String> |
getHolidaysDatesInDb()
Get days off defined for this agenda user |
CalendarImportSettings |
getImportSettings()
Get synchronisation user settings |
Collection<Attendee> |
getJournalAttendees(String journalId)
methods for attendees |
Collection<Category> |
getJournalCategories(String journalId)
Method declaration |
JournalHeader |
getJournalHeader(String journalId)
Method declaration |
static Date |
getMonthFirstDay(Date date)
Method declaration |
Date |
getMonthLastDay(Date date)
Get the last day of the month |
Collection<JournalHeader> |
getMonthSchedulables(Date date)
Method declaration |
String |
getMyAgendaUrl()
Get url access to my diary |
List<Date> |
getNonSelectableDays()
|
NotificationSender |
getNotificationSender()
Method declaration |
ParticipationStatus |
getParticipationStatus()
Method declaration |
String |
getRSSUrl()
|
UserDetail |
getSelectedUser()
Get a UserDetail of selected user in UserPanel |
String |
getServerURL()
|
ResourceLocator |
getSettings()
Method declaration |
int |
getStartDayInMonth()
Method declaration |
int |
getStartDayInWeek()
Method declaration |
int |
getStartMonth()
Method declaration |
int |
getStartYear()
Method declaration |
Collection<JournalHeader> |
getTentativeSchedulables()
Method declaration |
UserDetail |
getUserDetail(String userId)
Method declaration |
UserDetail[] |
getUserList()
Method declaration |
Collection<Attendee> |
getUserSelected()
Retourne une Collection de UserDetail des utilisateurs selectionnés via le userPanel |
Date |
getWeekFirstDay(Date date)
Method declaration |
Date |
getWeekLastDay(Date date)
Method declaration |
Collection<JournalHeader> |
getWeekSchedulables()
Method declaration |
static Date |
getYearFirstDay(Date date)
Method declaration |
boolean |
hasTentativeSchedulables()
Method declaration |
String |
importIcalAgenda(File fileCalendar)
Export SilverpeasCalendar in Ical format |
void |
indexAll()
Method declaration |
String |
initSelectionPeas()
Parametre le userPannel => tous les users, sélection des users participants. |
String |
initUserPanelOtherAgenda()
Get user by the userPanel (for viewing another agenda) |
boolean |
isDayHasEvents(String userId,
Date day)
Return if day has events for the user or not |
boolean |
isHolidayDate(Date date)
Ask if a date is a day off |
boolean |
isHolidayDate(String agendaUserId,
Date date)
Ask if a date is a day off |
boolean |
isOtherAgendaMode()
If current agenda is for another user |
boolean |
isSameDaysAreHolidays(Calendar cal,
int currentMonth)
Ask if the same days of the month are all holidays |
void |
next()
Method declaration |
void |
nextDay()
Method declaration |
void |
nextMonth()
Method declaration |
void |
nextWeek()
Method declaration |
void |
nextYear()
Method declaration |
protected void |
notifyAttendees(String id,
NotifAction action)
Notification from delagator to attendees. |
protected void |
notifyFromAttendee(String id,
String attend)
Notification from attendee to delegator. |
void |
previous()
Method declaration |
void |
previousDay()
Method declaration |
void |
previousMonth()
Method declaration |
void |
previousWeek()
Method declaration |
void |
previousYear()
Method declaration |
void |
removeJournal(String id)
Method declaration |
void |
saveUserSettings(CalendarImportSettings importSettings)
Save synchronisation user settings |
void |
selectDay(String day)
Method declaration |
void |
setAgendaUserDetail(UserDetail userDetail)
Set userDetail for viewing his agenda |
void |
setCalendarVisible(boolean visible)
Method declaration |
void |
setCategory(Category category)
Method declaration |
void |
setCurrentAttendees(Collection<Attendee> attendees)
Method declaration |
void |
setCurrentCategories(Collection<Category> categories)
Method declaration |
void |
setCurrentDay(Date date)
Method declaration |
void |
setCurrentJournalHeader(JournalHeader journalHeader)
Method declaration |
void |
setHolidaysDates(List<String> list)
Set holidays dates of personal agenda |
void |
setJournalAttendees(String journalId,
String[] userIds)
Method declaration |
void |
setJournalCategories(String journalId,
String[] categoryIds)
Method declaration |
void |
setJournalParticipationStatus(String journalId,
String userId,
String status)
Method declaration |
void |
setNonSelectableDays(List<Date> list)
|
String |
synchroIcalAgenda(String urlICalendar)
Synchronize localResourceLocator agenda with URLIcalendar |
String |
synchroIcalAgenda(String urlICalendar,
String loginIcalendar,
String pwdIcalendar)
Synchronize localResourceLocator agenda with URLIcalendar |
void |
updateJournal(String id,
String name,
String description,
String priority,
String classification,
Date startDay,
String startHour,
Date endDay,
String endHour)
Method declaration |
void |
updateUserSettings(CalendarImportSettings importSettings)
Update synchronisation user settings |
void |
viewByDay()
Method declaration |
void |
viewByMonth()
Method declaration |
void |
viewByWeek()
Method declaration |
void |
viewByYear()
Method declaration |
void |
viewChooseDays()
Method declaration |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ICALENDAR_MIME_TYPE
public static final String EXPORT_SUCCEEDED
public static final String EXPORT_FAILED
public static final String EXPORT_EMPTY
public static final String IMPORT_SUCCEEDED
public static final String IMPORT_FAILED
public static final String SYNCHRO_SUCCEEDED
public static final String SYNCHRO_FAILED
public static final String AGENDA_FILENAME_PREFIX
public static final int WORKING_DAY
public static final int HOLIDAY_DAY
Constructor Detail |
---|
public AgendaSessionController(MainSessionController mainSessionCtrl, ComponentContext context)
Method Detail |
---|
public String getRSSUrl()
getRSSUrl
in class AbstractComponentSessionController
protected String getComponentInstName()
public String addJournal(String name, String description, String priority, String classification, Date startDay, String startHour, Date endDay, String endHour) throws RemoteException
name
- description
- priority
- classification
- startDay
- startHour
- endDay
- endHour
-
RemoteException
protected void notifyAttendees(String id, NotifAction action)
id
- action
- protected void notifyFromAttendee(String id, String attend)
id
- attend
- public void updateJournal(String id, String name, String description, String priority, String classification, Date startDay, String startHour, Date endDay, String endHour) throws RemoteException, CalendarException
id
- name
- description
- priority
- classification
- startDay
- startHour
- endDay
- endHour
-
CalendarException
RemoteException
public void removeJournal(String id) throws RemoteException, CalendarException
id
-
CalendarException
RemoteException
public JournalHeader getJournalHeader(String journalId) throws RemoteException
journalId
-
RemoteException
public Collection<Attendee> getJournalAttendees(String journalId) throws AgendaException
AgendaException
public void setJournalAttendees(String journalId, String[] userIds) throws AgendaException
journalId
- userIds
-
AgendaException
public void setJournalParticipationStatus(String journalId, String userId, String status) throws AgendaException
journalId
- userId
- status
-
AgendaException
public Collection<Category> getAllCategories() throws AgendaException
AgendaException
public Category getCategory(String categoryId) throws AgendaException
categoryId
-
AgendaException
public Collection<Category> getJournalCategories(String journalId) throws AgendaException
journalId
-
AgendaException
public void setJournalCategories(String journalId, String[] categoryIds) throws AgendaException
journalId
- categoryIds
-
AgendaException
public void indexAll() throws RemoteException
RemoteException
public UserDetail[] getUserList()
public UserDetail getUserDetail(String userId)
getUserDetail
in class AbstractComponentSessionController
userId
-
public Category getCategory()
public void setCategory(Category category)
category
-
public JournalHeader getCurrentJournalHeader()
public void setCurrentJournalHeader(JournalHeader journalHeader)
journalHeader
-
public Collection<Attendee> getCurrentAttendees()
public void setCurrentAttendees(Collection<Attendee> attendees)
attendees
-
public Collection<Category> getCurrentCategories()
public void setCurrentCategories(Collection<Category> categories)
categories
-
public void setCalendarVisible(boolean visible)
visible
-
public ParticipationStatus getParticipationStatus()
public NotificationSender getNotificationSender()
public String getServerURL()
public ResourceLocator getSettings()
getSettings
in interface ComponentSessionController
getSettings
in class AbstractComponentSessionController
public void viewByDay()
public void viewByWeek()
public void viewByMonth()
public void viewByYear()
public void viewChooseDays()
public int getCurrentDisplayType()
public AgendaHtmlView getCurrentHtmlView() throws RemoteException
RemoteException
public Collection<JournalHeader> getDaySchedulables() throws RemoteException
RemoteException
public Collection<JournalHeader> getMonthSchedulables(Date date) throws RemoteException
RemoteException
public Collection<JournalHeader> getWeekSchedulables() throws RemoteException
RemoteException
public Collection<SchedulableCount> countMonthSchedulables() throws RemoteException
RemoteException
public Collection<JournalHeader> getBusyTime(String userId, Date day) throws RemoteException
userId
- day
-
RemoteException
public boolean isDayHasEvents(String userId, Date day) throws RemoteException
userId
- day
-
RemoteException
public boolean hasTentativeSchedulables() throws RemoteException
RemoteException
public Collection<JournalHeader> getTentativeSchedulables() throws AgendaException
AgendaException
public Date getCurrentDay()
public int getStartDayInWeek()
public int getStartDayInMonth()
public int getEndDayInMonth()
public int getStartMonth()
public int getEndMonth()
public int getStartYear()
public int getEndYear()
public void setCurrentDay(Date date)
date
-
public void selectDay(String day)
day
-
public void next() throws RemoteException
RemoteException
public void nextDay() throws RemoteException
RemoteException
public void nextWeek()
public void nextMonth()
public void nextYear()
public void previous()
public void previousDay()
public void previousWeek()
public void previousMonth()
public void previousYear()
public Date getWeekFirstDay(Date date)
date
-
public Date getWeekLastDay(Date date)
date
-
public static Date getMonthFirstDay(Date date)
date
-
public Date getMonthLastDay(Date date)
date
-
public static Date getYearFirstDay(Date date)
date
-
public String initSelectionPeas()
public Collection<Attendee> getUserSelected() throws AgendaException
-
AgendaException
public void close()
close
in class AbstractComponentSessionController
public List<Date> getNonSelectableDays()
public void setNonSelectableDays(List<Date> list)
list
- public List<String> getHolidaysDates() throws RemoteException
RemoteException
public void setHolidaysDates(List<String> list)
list
- public String initUserPanelOtherAgenda()
public UserDetail getSelectedUser()
-
public void setAgendaUserDetail(UserDetail userDetail)
userDetail
- public UserDetail getAgendaUserDetail()
userDetail
- public String getAgendaUserId()
userDetail
- public boolean isOtherAgendaMode()
public CalendarImportSettings getImportSettings()
public void saveUserSettings(CalendarImportSettings importSettings) throws AgendaException
importSettings
- CalendarImportSettings object containing user settings
AgendaException
CalendarImportSettings
public void updateUserSettings(CalendarImportSettings importSettings) throws AgendaException
importSettings
- CalendarImportSettings object containing user settings
AgendaException
CalendarImportSettings
public String exportIcalAgenda(String startDate, String endDate) throws Exception
startDate
- endDate
-
Exception
public String exportIcalAgenda() throws Exception
Exception
public String importIcalAgenda(File fileCalendar) throws Exception
startDate
- endDate
-
Exception
public String synchroIcalAgenda(String urlICalendar, String loginIcalendar, String pwdIcalendar) throws Exception
urlICalendar
- loginIcalendar
- pwdIcalendar
-
Exception
public String synchroIcalAgenda(String urlICalendar) throws Exception
urlICalendar
-
Exception
public List<String> getHolidaysDatesInDb() throws RemoteException
RemoteException
public void changeDateStatus(String date, String nextStatus) throws RemoteException, ParseException
RemoteException
ParseException
public void changeDayOfWeekStatus(String year, String month, String day) throws RemoteException
year
- month
- day
-
RemoteException
ParseException
public boolean isHolidayDate(Date date)
date
-
public boolean isHolidayDate(String agendaUserId, Date date)
date
-
public boolean isSameDaysAreHolidays(Calendar cal, int currentMonth)
cal
- month
- (0=january, etc...)
public String getMyAgendaUrl()
public String getCurrentViewType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |