Class AgendaSessionController

    • Method Detail

      • getComponentInstName

        protected String getComponentInstName()
      • notifyAttendees

        protected void notifyAttendees​(String id,
                                       NotifAction action)
        Notification from delagator to attendees.
        Parameters:
        id -
        action -
      • notifyFromAttendee

        protected void notifyFromAttendee​(String id,
                                          String attend)
        Notification from attendee to delegator.
        Parameters:
        id -
        attend -
      • getUserList

        public UserDetail[] getUserList()
        Method declaration
        Returns:
      • getCategory

        public Category getCategory()
        methods to manage current user state
      • setCategory

        public void setCategory​(Category category)
        Method declaration
        Parameters:
        category -
      • getCurrentJournalHeader

        public JournalHeader getCurrentJournalHeader()
        Method declaration
        Returns:
      • setCurrentJournalHeader

        public void setCurrentJournalHeader​(JournalHeader journalHeader)
        Method declaration
        Parameters:
        journalHeader -
      • getCurrentAttendees

        public Collection<Attendee> getCurrentAttendees()
        Method declaration
        Returns:
      • setCurrentAttendees

        public void setCurrentAttendees​(Collection<Attendee> attendees)
        Method declaration
        Parameters:
        attendees -
      • getCurrentCategories

        public Collection<Category> getCurrentCategories()
        Method declaration
        Returns:
      • setCurrentCategories

        public void setCurrentCategories​(Collection<Category> categories)
        Method declaration
        Parameters:
        categories -
      • setCalendarVisible

        public void setCalendarVisible​(boolean visible)
        Method declaration
        Parameters:
        visible -
      • getParticipationStatus

        public ParticipationStatus getParticipationStatus()
        Method declaration
        Returns:
      • getNotificationSender

        public NotificationSender getNotificationSender()
        Method declaration
        Returns:
      • getServerURL

        public String getServerURL()
        Returns:
      • viewByDay

        public void viewByDay()
        Method declaration
      • viewByWeek

        public void viewByWeek()
        Method declaration
      • viewByMonth

        public void viewByMonth()
        Method declaration
      • viewByYear

        public void viewByYear()
        Method declaration
      • viewChooseDays

        public void viewChooseDays()
        Method declaration
      • getCurrentDisplayType

        public int getCurrentDisplayType()
        Method declaration
        Returns:
      • isDayHasEvents

        public boolean isDayHasEvents​(String userId,
                                      Date day)
        Return if day has events for the user or not
        Parameters:
        userId -
        day -
        Returns:
        isDayHasEvents
        Throws:
        RemoteException
      • getCurrentDay

        public Date getCurrentDay()
        Method declaration
        Returns:
      • getStartDayInWeek

        public int getStartDayInWeek()
        Method declaration
        Returns:
      • getStartDayInMonth

        public int getStartDayInMonth()
        Method declaration
        Returns:
      • getEndDayInMonth

        public int getEndDayInMonth()
        Method declaration
        Returns:
      • getStartMonth

        public int getStartMonth()
        Method declaration
        Returns:
      • getEndMonth

        public int getEndMonth()
        Method declaration
        Returns:
      • getStartYear

        public int getStartYear()
        Method declaration
        Returns:
      • getEndYear

        public int getEndYear()
        Method declaration
        Returns:
      • setCurrentDay

        public void setCurrentDay​(Date date)
        Method declaration
        Parameters:
        date -
      • selectDay

        public void selectDay​(String day)
        Method declaration
        Parameters:
        day -
      • next

        public void next()
        Method declaration
      • nextDay

        public void nextDay()
        Method declaration
      • nextWeek

        public void nextWeek()
        Method declaration
      • nextMonth

        public void nextMonth()
        Method declaration
      • nextYear

        public void nextYear()
        Method declaration
      • previous

        public void previous()
        Method declaration
      • previousDay

        public void previousDay()
        Method declaration
      • previousWeek

        public void previousWeek()
        Method declaration
      • previousMonth

        public void previousMonth()
        Method declaration
      • previousYear

        public void previousYear()
        Method declaration
      • getWeekFirstDay

        public Date getWeekFirstDay​(Date date)
        Method declaration
        Parameters:
        date -
        Returns:
      • getWeekLastDay

        public Date getWeekLastDay​(Date date)
        Method declaration
        Parameters:
        date -
        Returns:
      • getMonthFirstDay

        public static Date getMonthFirstDay​(Date date)
        Method declaration
        Parameters:
        date -
        Returns:
      • getMonthLastDay

        public Date getMonthLastDay​(Date date)
        Get the last day of the month
        Parameters:
        date -
        Returns:
        date
      • getYearFirstDay

        public static Date getYearFirstDay​(Date date)
        Method declaration
        Parameters:
        date -
        Returns:
      • initSelectionPeas

        public String initSelectionPeas()
        Parametre le userPannel => tous les users, sélection des users participants.
        Returns:
      • getNonSelectableDays

        public List<Date> getNonSelectableDays()
        Returns:
      • setNonSelectableDays

        public void setNonSelectableDays​(List<Date> list)
        Parameters:
        list -
      • getHolidaysDates

        public List<String> getHolidaysDates()
        Get Holidays dates in personal agenda (YYYY/MM/JJ)
        Returns:
      • setHolidaysDates

        public void setHolidaysDates​(List<String> list)
        Set holidays dates of personal agenda
        Parameters:
        list -
      • initUserPanelOtherAgenda

        public String initUserPanelOtherAgenda()
        Get user by the userPanel (for viewing another agenda)
        Returns:
      • getSelectedUser

        public UserDetail getSelectedUser()
        Get a UserDetail of selected user in UserPanel
        Returns:
        UserDetail
      • setAgendaUserDetail

        public void setAgendaUserDetail​(UserDetail userDetail)
        Set userDetail for viewing his agenda
        Parameters:
        userDetail -
      • getAgendaUserDetail

        public UserDetail getAgendaUserDetail()
        Get userDetail for this agenda
      • getAgendaUserId

        public String getAgendaUserId()
        Get userId for this agenda
      • isOtherAgendaMode

        public boolean isOtherAgendaMode()
        If current agenda is for another user
        Returns:
        true or false
      • getImportSettings

        public CalendarImportSettings getImportSettings()
        Get synchronisation user settings
        Returns:
        CalendarImportSettings object containing user settings, null if no settings found
      • importIcalAgenda

        public String importIcalAgenda​(File fileCalendar)
      • getHolidaysDatesInDb

        public List<String> getHolidaysDatesInDb()
        Get days off defined for this agenda user
        Returns:
        List of HolidayDetail (yyyy/mm/dd, userId)
        Throws:
        RemoteException
      • isHolidayDate

        public boolean isHolidayDate​(Date date)
        Ask if a date is a day off
        Parameters:
        date -
        Returns:
      • isHolidayDate

        public boolean isHolidayDate​(String agendaUserId,
                                     Date date)
        Ask if a date is a day off
        Parameters:
        date -
        Returns:
      • isSameDaysAreHolidays

        public boolean isSameDaysAreHolidays​(Calendar cal,
                                             int currentMonth)
        Ask if the same days of the month are all holidays
        Parameters:
        cal -
        currentMonth - (0=january, etc...)
        Returns:
        true or false
      • getMyAgendaUrl

        public String getMyAgendaUrl()
        Get url access to my diary
        Returns:
        String
      • getCurrentViewType

        public String getCurrentViewType()
        Get view Type (by Day, Week, Month ou Year)
        Returns: