|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.calendar.business.CalendarHome
public final class CalendarHome
This class provides instances management methods (selectEventsList, findByPrimaryKey, findAgendasList ...) for Calendar objects ( AgendaResource, Events, ...)
| Method Summary | |
|---|---|
static void |
createAgenda(AgendaResource agenda,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new agenda in the table calendar_agendas. |
static void |
createEvent(SimpleEvent event,
fr.paris.lutece.portal.service.plugin.Plugin plugin,
String strUserLogin)
Insert a new event in the table calendar_events. |
static AgendaResource |
findAgendaResource(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of a AgendaResource whose identifier is specified in parameter |
static List<AgendaResource> |
findAgendaResourcesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of AgendaResources |
static List<Integer> |
findCalendarIds(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of calendar IDs |
static SimpleEvent |
findEvent(int nEventId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of SimpleEvent from the table |
static List<Event> |
findEventsByFilter(CalendarFilter filter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of Events |
static List<SimpleEvent> |
findEventsList(int nAgendaId,
int nSortEvents,
int nNextDays,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of events |
static List<SimpleEvent> |
findEventsList(int nAgendaId,
int nSortEvents,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of Events |
static List<SimpleEvent> |
findEventsListByUserLogin(int nAgendaId,
int nSortEvents,
fr.paris.lutece.portal.service.plugin.Plugin plugin,
String strUserLogin)
Load the list of Events |
static OccurrenceEvent |
findOccurrence(int nOccurrenceId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of Occurrence from the table |
static List<OccurrenceEvent> |
findOccurrencesByIdList(int nAgendaId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of Occurrences ordered by occurrences id |
static List<OccurrenceEvent> |
findOccurrencesList(int nAgendaId,
int nEventId,
int nSortEvents,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of Occurrences linked with an event |
static List<OccurrenceEvent> |
findOccurrencesList(int nAgendaId,
int nSortEvents,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of Occurrences |
static List<SimpleEvent> |
findTopEventList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of top Events |
static fr.paris.lutece.portal.service.image.ImageResource |
getImageResource(int nCategoryId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Return the image resource for the specified category id |
static int |
getOccurrenceNumber(int nEventId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns the number of occurrence for an event |
static int |
getRepetitionDays(int nEventId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns the number of days within which the events will occur |
static boolean |
hasOccurrenceEvent(Calendar calendar,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Return 1 if the day contains an event 0 otherwise |
static void |
removeAgenda(int nAgendaId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete an agenda from the table calendar_agendas |
static void |
removeEvent(int nAgendaId,
int nEventId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete an Event from the table calendar_events |
static void |
removeOccurrence(int nOccurrenceId,
int nEventId,
int nAgendaId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete an Event from the table calendar_events |
static void |
updateAgenda(AgendaResource agenda,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the agenda in the table calendar_agendas |
static void |
updateEvent(SimpleEvent event,
boolean bPeriodiciteUpdated,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the event in the table calendar_event |
static void |
updateOccurrence(OccurrenceEvent occurrence,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the occurrence in the table calendar_events_occurrences |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void createAgenda(AgendaResource agenda,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
agenda - The AgendaResource objectplugin - The Plugin using this data access service
public static void updateAgenda(AgendaResource agenda,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
agenda - The reference of AgendaResourceplugin - The Plugin using this data access service
public static void removeAgenda(int nAgendaId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nAgendaId - The agenda Idplugin - The Plugin using this data access servicepublic static List<AgendaResource> findAgendaResourcesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - The plugin
public static AgendaResource findAgendaResource(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nKey - The Primary key of the contactplugin - The Plugin object
public static void createEvent(SimpleEvent event,
fr.paris.lutece.portal.service.plugin.Plugin plugin,
String strUserLogin)
throws fr.paris.lutece.portal.service.util.AppException
event - the eventplugin - The Plugin using this data access servicestrUserLogin - user login
fr.paris.lutece.portal.service.util.AppException - AppException
public static void updateEvent(SimpleEvent event,
boolean bPeriodiciteUpdated,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
event - The reference of SimpleEventbPeriodiciteUpdated - true if periodicite, false otherwiseplugin - The Plugin using this data access service
public static void removeEvent(int nAgendaId,
int nEventId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nEventId - The event idnAgendaId - The agenda Idplugin - The Plugin using this data access service
public static SimpleEvent findEvent(int nEventId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nEventId - The event idplugin - The plugin
public static List<SimpleEvent> findEventsList(int nAgendaId,
int nSortEvents,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nSortEvents - An integer used for sorting issuesplugin - The pluginnAgendaId - The identifier of the agenda
public static List<SimpleEvent> findEventsListByUserLogin(int nAgendaId,
int nSortEvents,
fr.paris.lutece.portal.service.plugin.Plugin plugin,
String strUserLogin)
nSortEvents - An integer used for sorting issuesplugin - The pluginnAgendaId - The identifier of the agendastrUserLogin - user login
public static List<OccurrenceEvent> findOccurrencesList(int nAgendaId,
int nEventId,
int nSortEvents,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nSortEvents - An integer used for sorting issuesplugin - The pluginnAgendaId - The identifier of the agendanEventId - The identifier of an event
public static List<OccurrenceEvent> findOccurrencesList(int nAgendaId,
int nSortEvents,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nSortEvents - An integer used for sorting issuesplugin - The pluginnAgendaId - The identifier of the agenda
public static List<OccurrenceEvent> findOccurrencesByIdList(int nAgendaId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - The pluginnAgendaId - The identifier of the agenda
public static OccurrenceEvent findOccurrence(int nOccurrenceId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nOccurrenceId - The occurrence idplugin - The plugin
public static void updateOccurrence(OccurrenceEvent occurrence,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
occurrence - The reference of OccurrenceEventplugin - The Plugin using this data access service
public static int getRepetitionDays(int nEventId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nEventId - The id of the eventplugin - Plugin
public static int getOccurrenceNumber(int nEventId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nEventId - The id of the eventplugin - The Plugin using this data access service
public static void removeOccurrence(int nOccurrenceId,
int nEventId,
int nAgendaId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nOccurrenceId - The occurrence idnEventId - The identifier of an eventnAgendaId - The id of the agendaplugin - The Plugin using this data access service
public static fr.paris.lutece.portal.service.image.ImageResource getImageResource(int nCategoryId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nCategoryId - The identifier of Category objectplugin - Plugin
public static List<Event> findEventsByFilter(CalendarFilter filter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - The pluginfilter - The CalendarFilter Object
public static List<SimpleEvent> findTopEventList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - The plugin
public static boolean hasOccurrenceEvent(Calendar calendar,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
calendar - The dayplugin - The plugin
public static List<SimpleEvent> findEventsList(int nAgendaId,
int nSortEvents,
int nNextDays,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nAgendaId - the agenda IDnSortEvents - An integer used for sorting issuesnNextDays - the number of daysplugin - plugin
public static List<Integer> findCalendarIds(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - Plugin
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||