Class CalendarTemplateHome
- java.lang.Object
-
- fr.paris.lutece.plugins.appointment.business.calendar.CalendarTemplateHome
-
public final class CalendarTemplateHome extends Object
This class provides instances management methods for Calendar Template objects- Author:
- Laurent Payen
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcreate(CalendarTemplate template)Create a new calendar templatestatic voiddelete(int nId)Delete a template from its primary keystatic List<CalendarTemplate>findAll()Get the list of calendar templatesstatic fr.paris.lutece.util.ReferenceListfindAllInReferenceList()Get the list of calendar templates in a reference liststatic CalendarTemplatefindByPrimaryKey(int nId)Find a template by its primary keystatic voidupdate(CalendarTemplate template)Update an existing template
-
-
-
Method Detail
-
create
public static void create(CalendarTemplate template)
Create a new calendar template- Parameters:
template- The template to create
-
update
public static void update(CalendarTemplate template)
Update an existing template- Parameters:
template- The template
-
delete
public static void delete(int nId)
Delete a template from its primary key- Parameters:
nId- The id of the template to remove
-
findByPrimaryKey
public static CalendarTemplate findByPrimaryKey(int nId)
Find a template by its primary key- Parameters:
nId- The id of the template- Returns:
- The calendar template found, or null if no calendar template has the given primary key
-
findAll
public static List<CalendarTemplate> findAll()
Get the list of calendar templates- Returns:
- The list of calendar templates
-
findAllInReferenceList
public static fr.paris.lutece.util.ReferenceList findAllInReferenceList()
Get the list of calendar templates in a reference list- Returns:
- The list of calendar templates in a reference list
-
-