Class CalendarTemplateHome


  • public final class CalendarTemplateHome
    extends Object
    This class provides instances management methods for Calendar Template objects
    Author:
    Laurent Payen
    • 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