|
||||||||||
| 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 class CalendarHome
This class provides instances management methods (selectEventsList, findByPrimaryKey, findAgendasList ...) for Calendar objects ( AgendaResource, Events, ...)
| Constructor Summary | |
|---|---|
CalendarHome()
|
|
| 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,
java.lang.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 java.util.List<AgendaResource> |
findAgendaResourcesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of AgendaResources |
static java.util.List<java.lang.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 java.util.List<Event> |
findEventsByFilter(CalendarFilter filter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of Events |
static java.util.List<SimpleEvent> |
findEventsList(int nAgendaId,
int nSortEvents,
int nNextDays,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of events |
static java.util.List<SimpleEvent> |
findEventsList(int nAgendaId,
int nSortEvents,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of Events |
static java.util.List<SimpleEvent> |
findEventsListByUserLogin(int nAgendaId,
int nSortEvents,
fr.paris.lutece.portal.service.plugin.Plugin plugin,
java.lang.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 java.util.List<OccurrenceEvent> |
findOccurrencesByIdList(int nAgendaId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of Occurrences ordered by occurrences id |
static java.util.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 java.util.List<OccurrenceEvent> |
findOccurrencesList(int nAgendaId,
int nSortEvents,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of Occurrences |
static java.util.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(java.util.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 |
| Constructor Detail |
|---|
public CalendarHome()
| 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 java.util.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,
java.lang.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)
strTitle - The title of the eventevent - The reference of SimpleEventstrDate - the old event dateplugin - The Plugin using this data access service
fr.paris.lutece.portal.service.util.AppException - Exception thrown if an error is detected
public static void removeEvent(int nAgendaId,
int nEventId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
strDate - The datestrTitle - The titlenAgendaId - 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 java.util.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 java.util.List<SimpleEvent> findEventsListByUserLogin(int nAgendaId,
int nSortEvents,
fr.paris.lutece.portal.service.plugin.Plugin plugin,
java.lang.String strUserLogin)
nSortEvents - An integer used for sorting issuesplugin - The pluginnAgendaId - The identifier of the agendastrUserLogin - user login
public static java.util.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 java.util.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 agendanEventId - The identifier of an event
public static java.util.List<OccurrenceEvent> findOccurrencesByIdList(int nAgendaId,
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 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 event
public static void removeOccurrence(int nOccurrenceId,
int nEventId,
int nAgendaId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nOccurrenceId - The occurrence idplugin - 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 java.util.List<Event> findEventsByFilter(CalendarFilter filter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - The pluginfilter - The CalendarFilter Object
public static java.util.List<SimpleEvent> findTopEventList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - The plugin
public static boolean hasOccurrenceEvent(java.util.Calendar calendar,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
calendar - The dayplugin - The plugin
public static java.util.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 java.util.List<java.lang.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 | |||||||||