Class TimeTableLecturerDirective
java.lang.Object
ch.tocco.nice2.optional.facilityreservation.impl.freemarker.TimeTableLecturerDirective
- All Implemented Interfaces:
Nice2TemplateDirective
,freemarker.template.TemplateDirectiveModel
,freemarker.template.TemplateModel
Used to load lecturer of own reservations privileged
Parameters:
- entity The reservation to load lecturers from. Defaults to base data.
- useLecturerBooking Should load default display of Lecturer_booking instead of user. Defaults to false.
- useOnlyBookedLecturers Should load only booked lecturers. Defaults to false.
- separator String to use as separator between different lecturers. Defaults to ','
-
Field Summary
Fields inherited from interface freemarker.template.TemplateModel
NOTHING
-
Constructor Summary
ConstructorDescriptionTimeTableLecturerDirective
(SecurityManager securityManager, PrincipalService principalService, QueryBuilderFactory queryBuilderFactory, DefaultDisplayService defaultDisplayService) -
Method Summary
-
Constructor Details
-
TimeTableLecturerDirective
public TimeTableLecturerDirective(SecurityManager securityManager, PrincipalService principalService, QueryBuilderFactory queryBuilderFactory, DefaultDisplayService defaultDisplayService)
-
-
Method Details
-
execute
public void execute(freemarker.core.Environment environment, Map params, freemarker.template.TemplateModel[] templateModels, freemarker.template.TemplateDirectiveBody templateDirectiveBody) throws freemarker.template.TemplateException, IOException - Specified by:
execute
in interfacefreemarker.template.TemplateDirectiveModel
- Throws:
freemarker.template.TemplateException
IOException
-