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
FieldsModifier and TypeFieldDescriptionprotected FormDAOThe form DAOprotected AmetysObjectResolverAmetys object resolver.static final StringPattern for senders mailstatic final StringAvalon ROLE. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the form properties relative to the acknowledgement of receiptremoveEntriesReceipt(String formId) Unset the properties relative to the acknowledgement of receiptvoidservice(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
-
-
Constructor Details
-
AcknowledgementOfReceiptsHelper
public AcknowledgementOfReceiptsHelper()
-
-
Method Details
-
service
- Specified by:
servicein 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
-