com.stratelia.webactiv.calendar.control
Class CalendarEJB

java.lang.Object
  extended by com.stratelia.webactiv.calendar.control.CalendarEJB
All Implemented Interfaces:
SilverpeasCalendar

public class CalendarEJB
extends Object
implements SilverpeasCalendar


Constructor Summary
CalendarEJB()
           
 
Method Summary
 void addHolidayDate(HolidayDetail holiday)
           
 void addHolidayDates(List<HolidayDetail> holidayDates)
           
 String addJournal(JournalHeader journal)
          methods for journal
 void addJournalAttendee(String journalId, Attendee attendee)
          methods for attendees
 void addJournalCategory(String journalId, String categoryId)
           
 String addToDo(ToDoHeader todo)
          addToDo() add a todo entry in the database
 void addToDoAttendee(String todoId, Attendee attendee)
           
 Collection<SchedulableCount> countMonthSchedulablesForUser(String month, String userId, String categoryId, String participation)
          countMonthSchedulablesForUser() for a particular user, counts the number of schedules for each day in the month
 Collection<Category> getAllCategories()
          methods for categories
 List<String> getAllToDoForUser(String userId)
           
 Category getCategory(String categoryId)
           
 Collection<ToDoHeader> getClosedToDos(String organizerId)
           
 Collection<JournalHeader> getDaySchedulablesForUser(String day, String userId, String categoryId, String participation)
          getDaySchedulablesForUser() for a particular user returns all the events scheduled on a particular day.
 Collection<JournalHeader> getExternalJournalHeadersForUser(String userId)
          getOutlookJournalHeadersForUser() returns the journalHeaders for user represented by the userId
 Collection<JournalHeader> getExternalJournalHeadersForUserAfterDate(String userId, Date startDate)
          getExternalJournalHeadersForUserAfterDate() returns the journalHeaders for user represented by the userId for which start date after given date
 Collection<ToDoHeader> getExternalTodos(String spaceId, String componentId, String externalId)
           
 List<String> getHolidayDates(String userId)
          Gestion du calendrier des jours non travailles / ********************************************************************************
 List<String> getHolidayDates(String userId, Date beginDate, Date endDate)
           
 Collection<Attendee> getJournalAttendees(String journalId)
           
 Collection<Category> getJournalCategories(String journalId)
           
 JournalHeader getJournalHeader(String journalId)
          getJournalHeader() returns the journalHeader represented by the journalId
 Collection<JournalHeader> getJournalHeadersForUserAfterDate(String userId, Date startDate, int nbReturned)
          getJournalHeadersForUserAfterDate() returns the journalHeaders for user represented by the userId for which start date after given date
 List<SocialInformationEvent> getLastEventsForMyContacts(String day, String myId, List<String> myContactsIds, Date begin, Date end)
          get Last Social Events for a given list of my Contacts .
 List<SocialInformationEvent> getMyLastEvents(String day, String myId, Date begin, Date end)
          get the my last Events of information and number of Item and the first Index
 Collection<JournalHeader> getNextDaySchedulablesForUser(String day, String userId, String categoryId, String participation)
          getNextDaySchedulablesForUser() for a particular user returns the next events scheduled.
 List<SocialInformationEvent> getNextEventsForMyContacts(String day, String myId, List<String> myContactsIds, Date begin, Date end)
          get Next Social Events for a given list of my Contacts .
 List<JournalHeader> getNextEventsForUser(String day, String userId, String classification, Date begin, Date end)
          Method for getting the next events of userId ,the result is limited
 Collection<ToDoHeader> getNotCompletedToDosForUser(String userId)
           
 Collection<ToDoHeader> getOrganizerToDos(String organizerId)
           
 Collection<JournalHeader> getPeriodSchedulablesForUser(String begin, String end, String userId, String categoryId, String participation)
          getPeriodSchedulablesForUser() for a particular user returns all the events scheduled during a particular period.
 Collection<JournalHeader> getTentativeSchedulablesForUser(String userId)
           
 Collection<Attendee> getToDoAttendees(String todoId)
           
 ToDoHeader getToDoHeader(String todoId)
          getToDoHeader() returns the ToDoHeader represented by the todoId
 boolean hasTentativeSchedulablesForUser(String userId)
          methods for unresponded messages
 void indexAllJournal()
          methode de reindexation de tous les journeaux
 void indexAllTodo()
          methode de reindexation de tous les todos
 boolean isHolidayDate(HolidayDetail date)
           
 void removeHolidayDate(HolidayDetail holiday)
           
 void removeHolidayDates(List<HolidayDetail> holidayDates)
           
 void removeJournal(String journalId)
          removeJournal() remove the journal entry specified by the id
 void removeJournalAttendee(String journalId, Attendee attendee)
           
 void removeJournalCategory(String journalId, String categoryId)
           
 void removeToDo(String id)
          removeToDo() remove the todo entry specified by the id
 void removeToDoAttendee(String todoId, Attendee attendee)
           
 void removeToDoByInstanceId(String instanceId)
          removeToDoByInstanceId remove all todo of the specified instance
 void setJournalAttendees(String journalId, String[] userIds)
           
 void setJournalCategories(String journalId, String[] categoryIds)
           
 void setJournalParticipationStatus(String journalId, String userId, String participation)
           
 void setToDoAttendees(String todoId, String[] userIds)
           
 void updateJournal(JournalHeader journal)
          updateJournal() update the journal entry, specified by the id, in the database
 void updateToDo(ToDoHeader todo)
          updateToDo() update the todo entry, specified by the id, in the database
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalendarEJB

public CalendarEJB()
Method Detail

hasTentativeSchedulablesForUser

public boolean hasTentativeSchedulablesForUser(String userId)
methods for unresponded messages

Specified by:
hasTentativeSchedulablesForUser in interface SilverpeasCalendar
Parameters:
userId -
Returns:

getTentativeSchedulablesForUser

public Collection<JournalHeader> getTentativeSchedulablesForUser(String userId)
Specified by:
getTentativeSchedulablesForUser in interface SilverpeasCalendar

getNotCompletedToDosForUser

public Collection<ToDoHeader> getNotCompletedToDosForUser(String userId)
Specified by:
getNotCompletedToDosForUser in interface SilverpeasCalendar
Parameters:
userId -
Returns:

getAllToDoForUser

public List<String> getAllToDoForUser(String userId)
Specified by:
getAllToDoForUser in interface SilverpeasCalendar

getOrganizerToDos

public Collection<ToDoHeader> getOrganizerToDos(String organizerId)
Specified by:
getOrganizerToDos in interface SilverpeasCalendar

getClosedToDos

public Collection<ToDoHeader> getClosedToDos(String organizerId)
Specified by:
getClosedToDos in interface SilverpeasCalendar

getExternalTodos

public Collection<ToDoHeader> getExternalTodos(String spaceId,
                                               String componentId,
                                               String externalId)
Specified by:
getExternalTodos in interface SilverpeasCalendar

getToDoHeader

public ToDoHeader getToDoHeader(String todoId)
Description copied from interface: SilverpeasCalendar
getToDoHeader() returns the ToDoHeader represented by the todoId

Specified by:
getToDoHeader in interface SilverpeasCalendar

updateToDo

public void updateToDo(ToDoHeader todo)
Description copied from interface: SilverpeasCalendar
updateToDo() update the todo entry, specified by the id, in the database

Specified by:
updateToDo in interface SilverpeasCalendar

addToDo

public String addToDo(ToDoHeader todo)
Description copied from interface: SilverpeasCalendar
addToDo() add a todo entry in the database

Specified by:
addToDo in interface SilverpeasCalendar

removeToDo

public void removeToDo(String id)
Description copied from interface: SilverpeasCalendar
removeToDo() remove the todo entry specified by the id

Specified by:
removeToDo in interface SilverpeasCalendar

removeToDoByInstanceId

public void removeToDoByInstanceId(String instanceId)
Description copied from interface: SilverpeasCalendar
removeToDoByInstanceId remove all todo of the specified instance

Specified by:
removeToDoByInstanceId in interface SilverpeasCalendar

getDaySchedulablesForUser

public Collection<JournalHeader> getDaySchedulablesForUser(String day,
                                                           String userId,
                                                           String categoryId,
                                                           String participation)
Description copied from interface: SilverpeasCalendar
getDaySchedulablesForUser() for a particular user returns all the events scheduled on a particular day. This includes all kinds of events

Specified by:
getDaySchedulablesForUser in interface SilverpeasCalendar
Parameters:
day -
userId -
categoryId -
participation -
Returns:

getNextDaySchedulablesForUser

public Collection<JournalHeader> getNextDaySchedulablesForUser(String day,
                                                               String userId,
                                                               String categoryId,
                                                               String participation)
Description copied from interface: SilverpeasCalendar
getNextDaySchedulablesForUser() for a particular user returns the next events scheduled. This includes all kinds of events

Specified by:
getNextDaySchedulablesForUser in interface SilverpeasCalendar

getPeriodSchedulablesForUser

public Collection<JournalHeader> getPeriodSchedulablesForUser(String begin,
                                                              String end,
                                                              String userId,
                                                              String categoryId,
                                                              String participation)
Description copied from interface: SilverpeasCalendar
getPeriodSchedulablesForUser() for a particular user returns all the events scheduled during a particular period. This includes all kinds of events

Specified by:
getPeriodSchedulablesForUser in interface SilverpeasCalendar

countMonthSchedulablesForUser

public Collection<SchedulableCount> countMonthSchedulablesForUser(String month,
                                                                  String userId,
                                                                  String categoryId,
                                                                  String participation)
Description copied from interface: SilverpeasCalendar
countMonthSchedulablesForUser() for a particular user, counts the number of schedules for each day in the month

Specified by:
countMonthSchedulablesForUser in interface SilverpeasCalendar

addJournal

public String addJournal(JournalHeader journal)
methods for journal

Specified by:
addJournal in interface SilverpeasCalendar

updateJournal

public void updateJournal(JournalHeader journal)
Description copied from interface: SilverpeasCalendar
updateJournal() update the journal entry, specified by the id, in the database

Specified by:
updateJournal in interface SilverpeasCalendar

removeJournal

public void removeJournal(String journalId)
Description copied from interface: SilverpeasCalendar
removeJournal() remove the journal entry specified by the id

Specified by:
removeJournal in interface SilverpeasCalendar

getJournalHeader

public JournalHeader getJournalHeader(String journalId)
Description copied from interface: SilverpeasCalendar
getJournalHeader() returns the journalHeader represented by the journalId

Specified by:
getJournalHeader in interface SilverpeasCalendar

getExternalJournalHeadersForUser

public Collection<JournalHeader> getExternalJournalHeadersForUser(String userId)
Description copied from interface: SilverpeasCalendar
getOutlookJournalHeadersForUser() returns the journalHeaders for user represented by the userId

Specified by:
getExternalJournalHeadersForUser in interface SilverpeasCalendar

getExternalJournalHeadersForUserAfterDate

public Collection<JournalHeader> getExternalJournalHeadersForUserAfterDate(String userId,
                                                                           Date startDate)
Description copied from interface: SilverpeasCalendar
getExternalJournalHeadersForUserAfterDate() returns the journalHeaders for user represented by the userId for which start date after given date

Specified by:
getExternalJournalHeadersForUserAfterDate in interface SilverpeasCalendar

getJournalHeadersForUserAfterDate

public Collection<JournalHeader> getJournalHeadersForUserAfterDate(String userId,
                                                                   Date startDate,
                                                                   int nbReturned)
Description copied from interface: SilverpeasCalendar
getJournalHeadersForUserAfterDate() returns the journalHeaders for user represented by the userId for which start date after given date

Specified by:
getJournalHeadersForUserAfterDate in interface SilverpeasCalendar

addJournalAttendee

public void addJournalAttendee(String journalId,
                               Attendee attendee)
methods for attendees

Specified by:
addJournalAttendee in interface SilverpeasCalendar

removeJournalAttendee

public void removeJournalAttendee(String journalId,
                                  Attendee attendee)
Specified by:
removeJournalAttendee in interface SilverpeasCalendar

getJournalAttendees

public Collection<Attendee> getJournalAttendees(String journalId)
Specified by:
getJournalAttendees in interface SilverpeasCalendar

setJournalAttendees

public void setJournalAttendees(String journalId,
                                String[] userIds)
Specified by:
setJournalAttendees in interface SilverpeasCalendar

setJournalParticipationStatus

public void setJournalParticipationStatus(String journalId,
                                          String userId,
                                          String participation)
Specified by:
setJournalParticipationStatus in interface SilverpeasCalendar

addToDoAttendee

public void addToDoAttendee(String todoId,
                            Attendee attendee)
Specified by:
addToDoAttendee in interface SilverpeasCalendar

removeToDoAttendee

public void removeToDoAttendee(String todoId,
                               Attendee attendee)
Specified by:
removeToDoAttendee in interface SilverpeasCalendar

getToDoAttendees

public Collection<Attendee> getToDoAttendees(String todoId)
Specified by:
getToDoAttendees in interface SilverpeasCalendar

setToDoAttendees

public void setToDoAttendees(String todoId,
                             String[] userIds)
Specified by:
setToDoAttendees in interface SilverpeasCalendar

getAllCategories

public Collection<Category> getAllCategories()
methods for categories

Specified by:
getAllCategories in interface SilverpeasCalendar

getCategory

public Category getCategory(String categoryId)
Specified by:
getCategory in interface SilverpeasCalendar

addJournalCategory

public void addJournalCategory(String journalId,
                               String categoryId)
Specified by:
addJournalCategory in interface SilverpeasCalendar

removeJournalCategory

public void removeJournalCategory(String journalId,
                                  String categoryId)
Specified by:
removeJournalCategory in interface SilverpeasCalendar

getJournalCategories

public Collection<Category> getJournalCategories(String journalId)
Specified by:
getJournalCategories in interface SilverpeasCalendar

setJournalCategories

public void setJournalCategories(String journalId,
                                 String[] categoryIds)
Specified by:
setJournalCategories in interface SilverpeasCalendar

indexAllTodo

public void indexAllTodo()
methode de reindexation de tous les todos

Specified by:
indexAllTodo in interface SilverpeasCalendar

getHolidayDates

public List<String> getHolidayDates(String userId)
Gestion du calendrier des jours non travailles / ********************************************************************************

Specified by:
getHolidayDates in interface SilverpeasCalendar

getHolidayDates

public List<String> getHolidayDates(String userId,
                                    Date beginDate,
                                    Date endDate)
Specified by:
getHolidayDates in interface SilverpeasCalendar

addHolidayDate

public void addHolidayDate(HolidayDetail holiday)
Specified by:
addHolidayDate in interface SilverpeasCalendar

addHolidayDates

public void addHolidayDates(List<HolidayDetail> holidayDates)
Specified by:
addHolidayDates in interface SilverpeasCalendar

removeHolidayDate

public void removeHolidayDate(HolidayDetail holiday)
Specified by:
removeHolidayDate in interface SilverpeasCalendar

removeHolidayDates

public void removeHolidayDates(List<HolidayDetail> holidayDates)
Specified by:
removeHolidayDates in interface SilverpeasCalendar

isHolidayDate

public boolean isHolidayDate(HolidayDetail date)
Specified by:
isHolidayDate in interface SilverpeasCalendar

indexAllJournal

public void indexAllJournal()
methode de reindexation de tous les journeaux

Specified by:
indexAllJournal in interface SilverpeasCalendar

getNextEventsForUser

public List<JournalHeader> getNextEventsForUser(String day,
                                                String userId,
                                                String classification,
                                                Date begin,
                                                Date end)
Method for getting the next events of userId ,the result is limited

Specified by:
getNextEventsForUser in interface SilverpeasCalendar
Parameters:
day -
userId -
classification -
begin -
end -
Returns:
List

getNextEventsForMyContacts

public List<SocialInformationEvent> getNextEventsForMyContacts(String day,
                                                               String myId,
                                                               List<String> myContactsIds,
                                                               Date begin,
                                                               Date end)
get Next Social Events for a given list of my Contacts . This includes all kinds of events

Specified by:
getNextEventsForMyContacts in interface SilverpeasCalendar
Parameters:
day -
myId -
myContactsIds -
begin -
end -
Returns:
List

getLastEventsForMyContacts

public List<SocialInformationEvent> getLastEventsForMyContacts(String day,
                                                               String myId,
                                                               List<String> myContactsIds,
                                                               Date begin,
                                                               Date end)
get Last Social Events for a given list of my Contacts . This includes all kinds of events

Specified by:
getLastEventsForMyContacts in interface SilverpeasCalendar
Parameters:
day -
myId -
myContactsIds -
begin -
end -
Returns:
List

getMyLastEvents

public List<SocialInformationEvent> getMyLastEvents(String day,
                                                    String myId,
                                                    Date begin,
                                                    Date end)
get the my last Events of information and number of Item and the first Index

Specified by:
getMyLastEvents in interface SilverpeasCalendar
Parameters:
day -
myId -
begin -
end -
Returns:
List


Copyright © 2016 Silverpeas. All Rights Reserved.