Package org.ametys.plugins.forms.helper
Class AcknowledgementOfReceiptsHelper
java.lang.Object
org.ametys.plugins.forms.helper.AcknowledgementOfReceiptsHelper
- All Implemented Interfaces:
Component
,Serviceable
The helper for acknowledgement of receipts
-
Field Summary
Modifier and TypeFieldDescriptionprotected CurrentUserProvider
The current user providerprotected FormDAO
The form DAOprotected AmetysObjectResolver
Ametys object resolver.static final String
Pattern for senders mailstatic final String
Avalon ROLE. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the form properties relative to the acknowledgement of receiptremoveEntriesReceipt
(String formId) Unset the properties relative to the acknowledgement of receiptvoid
service
(ServiceManager manager) setAcknowledgementReceiptProperties
(String formId, String sender, String receiver, String subject, String body) Set the properties relative to the acknowledgement of receipt
-
Field Details
-
ROLE
Avalon ROLE. -
REGEX_SENDER_MAIL
Pattern for senders mail- See Also:
-
_resolver
Ametys object resolver. -
_formDAO
The form DAO -
_currentUserProvider
The current user provider
-
-
Constructor Details
-
AcknowledgementOfReceiptsHelper
public AcknowledgementOfReceiptsHelper()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
getAcknowledgementReceiptProperties
Get the form properties relative to the acknowledgement of receipt- Parameters:
formId
- The id of the form- Returns:
- a map of the form acknowledgement of receipt properties
-
setAcknowledgementReceiptProperties
public Map<String,Object> setAcknowledgementReceiptProperties(String formId, String sender, String receiver, String subject, String body) Set the properties relative to the acknowledgement of receipt- Parameters:
formId
- id of the formsender
- the sender email addressreceiver
- name for form of question where the receiver's email address will be enteredsubject
- The subject for the emailbody
- The body of the email- Returns:
- the map of results
-
removeEntriesReceipt
Unset the properties relative to the acknowledgement of receipt- Parameters:
formId
- The id ofthe current form- Returns:
- the map of results
-