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
35 package fr.paris.lutece.plugins.identitystore.modules.cnicertifier.service;
36
37 import fr.paris.lutece.plugins.identitystore.modules.grucertifier.service.GruCertifier;
38 import fr.paris.lutece.portal.service.i18n.I18nService;
39 import java.util.Locale;
40
41
42
43
44 public class CNICertifier extends GruCertifier
45 {
46
47 private static final String MESSAGE_GRU_NOTIF_EMAIL_SENDER_NAME = "module.identitystore.fccertifier.gru.notif.senderName";
48 private static final String MESSAGE_GRU_NOTIF_EMAIL_SENDER_MAIL = "module.identitystore.fccertifier.gru.notif.senderMail";
49 private static final String MESSAGE_GRU_NOTIF_DASHBOARD_STATUS_TEXT = "module.identitystore.fccertifier.gru.notif.dashboard.statusText";
50 private static final String MESSAGE_GRU_NOTIF_DASHBOARD_MESSAGE = "module.identitystore.fccertifier.gru.notif.dashboard.message";
51 private static final String MESSAGE_GRU_NOTIF_DASHBOARD_SUBJECT = "module.identitystore.fccertifier.gru.notif.dashboard.subject";
52 private static final String MESSAGE_GRU_NOTIF_DASHBOARD_DATA = "module.identitystore.fccertifier.gru.notif.dashboard.data";
53 private static final String MESSAGE_GRU_NOTIF_DASHBOARD_SENDER_NAME = "module.identitystore.fccertifier.gru.notif.dashboard.senderName";
54 private static final String MESSAGE_GRU_NOTIF_EMAIL_SUBJECT = "module.identitystore.fccertifier.gru.notif.email.subject";
55 private static final String MESSAGE_GRU_NOTIF_EMAIL_MESSAGE = "module.identitystore.fccertifier.gru.notif.email.message";
56 private static final String MESSAGE_GRU_NOTIF_AGENT_MESSAGE = "module.identitystore.fccertifier.gru.notif.agent.message";
57 private static final String MESSAGE_GRU_NOTIF_AGENT_STATUS_TEXT = "module.identitystore.fccertifier.gru.notif.agent.statusText";
58
59
60
61
62 public CNICertifier( String strCode )
63 {
64 super( strCode );
65 }
66
67
68
69
70 @Override
71 protected void initNotifyGruConfig( Locale locale )
72 {
73
74 setMessageGruNotifDashboardMessage( I18nService.getLocalizedString( MESSAGE_GRU_NOTIF_DASHBOARD_MESSAGE, locale ) );
75 setMessageGruNotifDashboardSenderName( I18nService.getLocalizedString( MESSAGE_GRU_NOTIF_DASHBOARD_SENDER_NAME, locale ) );
76 setMessageGruNotifDashboardData( I18nService.getLocalizedString( MESSAGE_GRU_NOTIF_DASHBOARD_DATA, locale ) );
77 setMessageGruNotifDashboardStatusText( I18nService.getLocalizedString( MESSAGE_GRU_NOTIF_DASHBOARD_STATUS_TEXT, locale ) );
78 setMessageGruNotifDashboardSubject( I18nService.getLocalizedString( MESSAGE_GRU_NOTIF_DASHBOARD_SUBJECT, locale ) );
79
80
81 setMessageGruNotifAgentMessage( I18nService.getLocalizedString( MESSAGE_GRU_NOTIF_AGENT_MESSAGE, locale ) );
82 setMessageGruNotifAgentStatusText( I18nService.getLocalizedString( MESSAGE_GRU_NOTIF_AGENT_STATUS_TEXT, locale ) );
83
84
85 setMessageGruNotifEmailMessage( I18nService.getLocalizedString( MESSAGE_GRU_NOTIF_EMAIL_MESSAGE, locale ) );
86 setMessageGruNotifEmailSubject( I18nService.getLocalizedString( MESSAGE_GRU_NOTIF_EMAIL_SUBJECT, locale ) );
87 setMessageGruNotifSenderName( I18nService.getLocalizedString( MESSAGE_GRU_NOTIF_EMAIL_SENDER_NAME, locale ) );
88 setMessageGruNotifSenderMail( I18nService.getLocalizedString( MESSAGE_GRU_NOTIF_EMAIL_SENDER_MAIL, locale ) );
89 }
90 }