Class CalendarTemplateHome
java.lang.Object
fr.paris.lutece.plugins.appointment.business.calendar.CalendarTemplateHome
This class provides instances management methods for Calendar Template objects
- Author:
- Laurent Payen
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.ReferenceListGet 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 Details
-
create
Create a new calendar template- Parameters:
template- The template to create
-
update
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
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
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
-