1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34 package fr.paris.lutece.plugins.appointment.service.entrytype;
35
36 import fr.paris.lutece.plugins.appointment.service.upload.AppointmentAsynchronousUploadHandler;
37 import fr.paris.lutece.plugins.genericattributes.business.Entry;
38 import fr.paris.lutece.plugins.genericattributes.service.entrytype.AbstractEntryTypeFile;
39 import fr.paris.lutece.plugins.genericattributes.service.upload.AbstractGenAttUploadHandler;
40
41
42
43
44
45
46
47 public class EntryTypeFile extends AbstractEntryTypeFile
48 {
49
50
51
52 public static final String BEAN_NAME = "appointment.entryTypeFile";
53 private static final String TEMPLATE_CREATE = "admin/plugins/appointment/entries/create_entry_type_file.html";
54 private static final String TEMPLATE_MODIFY = "admin/plugins/appointment/entries/modify_entry_type_file.html";
55 private static final String TEMPLATE_HTML_CODE_ADMIN = "admin/plugins/appointment/entries/html_code_entry_type_file.html";
56 private static final String TEMPLATE_HTML_CODE = "skin/plugins/appointment/entries/html_code_entry_type_file.html";
57
58
59
60
61 @Override
62 public String getTemplateCreate( Entry entry, boolean bDisplayFront )
63 {
64 return TEMPLATE_CREATE;
65 }
66
67
68
69
70 @Override
71 protected boolean checkForImages( )
72 {
73 return false;
74 }
75
76
77
78
79 @Override
80 public String getTemplateModify( Entry entry, boolean bDisplayFront )
81 {
82 return TEMPLATE_MODIFY;
83 }
84
85
86
87
88 @Override
89 public AbstractGenAttUploadHandler getAsynchronousUploadHandler( )
90 {
91 return AppointmentAsynchronousUploadHandler.getHandler( );
92 }
93
94
95
96
97 @Override
98 public String getTemplateHtmlForm( Entry entry, boolean bDisplayFront )
99 {
100 return bDisplayFront ? TEMPLATE_HTML_CODE : TEMPLATE_HTML_CODE_ADMIN;
101 }
102
103
104
105
106 @Override
107 public String getUrlDownloadFile( int nResponseId, String strBaseUrl )
108 {
109
110 return null;
111 }
112 }