|
||||||||||
| 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(int nAgendaId,
SimpleEvent event,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
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 SimpleEvent |
findEvent(int nEventId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of SimpleEvent from the table |
static java.util.List<SimpleEvent> |
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,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
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)
Return the image resource for the specified category id |
static int |
getOccurrenceNumber(int nEventId)
Returns the number of occurrence for an event |
static int |
getRepetitionDays(int nEventId)
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(int nAgendaId,
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,
int nAgendaId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the event in the table calendar_event |
| 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(int nAgendaId,
SimpleEvent event,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
throws fr.paris.lutece.portal.service.util.AppException
nAgendaId - The agenda idevent - the eventplugin - The Plugin using this data access service
fr.paris.lutece.portal.service.util.AppException - AppException
public static void updateEvent(int nAgendaId,
SimpleEvent event,
boolean bPeriodiciteUpdated,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
throws fr.paris.lutece.portal.service.util.AppException
nAgendaId - The agenda idstrTitle - 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<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,
int nAgendaId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
throws fr.paris.lutece.portal.service.util.AppException
nAgendaId - The agenda idstrTitle - 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 detectedpublic static int getRepetitionDays(int nEventId)
nEventId - The id of the event
public static int getOccurrenceNumber(int nEventId)
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 servicepublic static fr.paris.lutece.portal.service.image.ImageResource getImageResource(int nCategoryId)
nCategoryId - The identifier of Category object
public static java.util.List<SimpleEvent> 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||