| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.stratelia.webactiv.almanach.control.ejb.AlmanachBmEJB
public class AlmanachBmEJB
| Constructor Summary | |
|---|---|
AlmanachBmEJB()
 | 
|
| Method Summary | |
|---|---|
 String | 
addEvent(EventDetail event,
         Collection<org.silverpeas.upload.UploadedFile> uploadedFiles)
addEvent() add an event entry in the database.  | 
 String | 
addEvent(EventDetail event,
         Collection<org.silverpeas.upload.UploadedFile> uploadedFiles,
         com.silverpeas.pdc.model.PdcClassification classification)
Adds the event in the almanach with the specified classification on the PdC.  | 
 void | 
addPeriodicityException(PeriodicityException periodicityException)
 | 
 void | 
createIndex(EventDetail detail)
 | 
 net.fortuna.ical4j.model.property.ExDate | 
generateExceptionDate(Periodicity periodicity)
 | 
 net.fortuna.ical4j.model.property.RRule | 
generateRecurrenceRule(Periodicity periodicity)
 | 
 Collection<EventDetail> | 
getAllEvents(EventPK pk)
this method provide a collection of event  | 
 Collection<EventDetail> | 
getAllEvents(EventPK pk,
             String[] instanceIds)
Get all events  | 
 Collection<org.silverpeas.attachment.model.SimpleDocument> | 
getAttachments(EventPK eventPK)
***********************************************************************************  | 
protected  EventDAO | 
getEventDAO()
 | 
 EventDetail | 
getEventDetail(EventPK pk)
Get Event Detail  | 
 List<EventOccurrence> | 
getEventOccurrencesInPeriod(org.silverpeas.date.Period period,
                            String... almanachIds)
Gets the event occurrences that occur in the specified period and that are defined in the specified almanachs.  | 
 Collection<EventDetail> | 
getEvents(Collection<EventPK> pks)
 | 
 String | 
getHTMLPath(EventPK eventPK)
 | 
 net.fortuna.ical4j.model.Calendar | 
getICal4jCalendar(Collection<EventDetail> events,
                  String language)
 | 
 Collection<PeriodicityException> | 
getListPeriodicityException(String periodicityId)
 | 
 Collection<EventDetail> | 
getListRecurrentEvent(net.fortuna.ical4j.model.Calendar calendarAlmanach,
                      Calendar currentDay,
                      String spaceId,
                      String instanceId,
                      boolean yearScope)
 | 
 List<EventOccurrence> | 
getNextEventOccurrences(String... almanachIds)
Gets the next event occurrences that will occur andd that are defined in the specified almanachs.  | 
 int | 
getSilverObjectId(EventPK eventPK)
**************************************************************************************************************  | 
 void | 
removeAllPeriodicityException(String periodicityId)
 | 
 void | 
removeEvent(EventPK pk)
removeEvent() remove the Event entry specified by the pk  | 
protected  com.silverpeas.calendar.Date | 
today()
 | 
 void | 
updateEvent(EventDetail event)
updateEvent() update the event entry, specified by the pk, in the database  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public AlmanachBmEJB()
| Method Detail | 
|---|
public Collection<EventDetail> getAllEvents(EventPK pk)
AlmanachBm
getAllEvents in interface AlmanachBm
public Collection<EventDetail> getAllEvents(EventPK pk,
                                            String[] instanceIds)
getAllEvents in interface AlmanachBmpk - instanceIds - array of instanceId
public Collection<EventDetail> getEvents(Collection<EventPK> pks)
getEvents in interface AlmanachBmpublic EventDetail getEventDetail(EventPK pk)
getEventDetail in interface AlmanachBmpk - 
public String addEvent(EventDetail event,
                       Collection<org.silverpeas.upload.UploadedFile> uploadedFiles)
AlmanachBm
addEvent in interface AlmanachBmevent - detail about the event to add in Silverpeas.uploadedFiles - attached files.
public String addEvent(EventDetail event,
                       Collection<org.silverpeas.upload.UploadedFile> uploadedFiles,
                       com.silverpeas.pdc.model.PdcClassification classification)
AlmanachBm
addEvent in interface AlmanachBmevent - detail about the event to add in Silverpeas.uploadedFiles - attached files.classification - the classificationwith which the event will be classified on the PdC.
public void updateEvent(EventDetail event)
updateEvent in interface AlmanachBmpublic void removeEvent(EventPK pk)
removeEvent in interface AlmanachBmpublic void createIndex(EventDetail detail)
createIndex in interface AlmanachBmpublic void addPeriodicityException(PeriodicityException periodicityException)
addPeriodicityException in interface AlmanachBmpublic Collection<PeriodicityException> getListPeriodicityException(String periodicityId)
periodicityId - 
public void removeAllPeriodicityException(String periodicityId)
periodicityId - 
public net.fortuna.ical4j.model.Calendar getICal4jCalendar(Collection<EventDetail> events,
                                                           String language)
getICal4jCalendar in interface AlmanachBmpublic net.fortuna.ical4j.model.property.RRule generateRecurrenceRule(Periodicity periodicity)
public net.fortuna.ical4j.model.property.ExDate generateExceptionDate(Periodicity periodicity)
public Collection<EventDetail> getListRecurrentEvent(net.fortuna.ical4j.model.Calendar calendarAlmanach,
                                                     Calendar currentDay,
                                                     String spaceId,
                                                     String instanceId,
                                                     boolean yearScope)
getListRecurrentEvent in interface AlmanachBmcalendarAlmanach - currentDay - spaceId - instanceId - 
public int getSilverObjectId(EventPK eventPK)
getSilverObjectId in interface AlmanachBmpublic Collection<org.silverpeas.attachment.model.SimpleDocument> getAttachments(EventPK eventPK)
getAttachments in interface AlmanachBmpublic String getHTMLPath(EventPK eventPK)
getHTMLPath in interface AlmanachBm
public List<EventOccurrence> getEventOccurrencesInPeriod(org.silverpeas.date.Period period,
                                                         String... almanachIds)
AlmanachBm
getEventOccurrencesInPeriod in interface AlmanachBmperiod - the period in which the events occur.almanachIds - the identifier of the almanachs in which the events are defined.
public List<EventOccurrence> getNextEventOccurrences(String... almanachIds)
AlmanachBm
getNextEventOccurrences in interface AlmanachBmalmanachIds - the identifier of the almanachs in which the events are defined.
protected EventDAO getEventDAO()
protected com.silverpeas.calendar.Date today()
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||