Wraps a ContactRequest entity as a plain data bean for use in templates and JSON output, carrying the submitter's details, the submitted message, and any attached files or custom fields. Produced by ContactRequestBean.toBean from a ContactRequest, and returned by the contact-us form lookup methods on ContactUsFormPage and ContactRequestPage.
Properties
| Property | Returns | Description |
|---|---|---|
| attachments | List<AttachmentBean> | Files attached to the request, either uploaded with the submission or attached by a directive on the form. |
| company | String | Company name submitted with the request, if the form collected one. May be null or blank. |
| contactForm | String | Path, within the website, of the html page containing the form that was submitted. |
| createdDate | Date | Date and time the contact request was submitted. |
String | Email address submitted with the request. | |
| fields | Map<String,String> | Additional custom field values submitted with the request, keyed by field name, for any form fields that are not one of the request's built-in properties. |
| firstName | String | First name submitted with the request. |
| id | long | Database id of the underlying contact request. |
| message | String | Free-text message submitted with the request. |
| phone | String | Phone number submitted with the request. |
| profile | ExtProfileBean | Profile of the person who submitted the request, wrapped as an ExtProfileBean with a resolved full name. |
| sourceIp | String | Source IP address recorded from the http request that made the submission. Null if the request was not made over http. |
| surName | String | Surname submitted with the request. |
| userAgent | String | User-agent header recorded from the http request that made the submission. Null if the request was not made over http, or if no user-agent header was sent. |
Methods
getId() · getCreatedDate() · getProfile() · getCompany() · getEmail() · getFirstName() · getPhone() · getSurName() · getMessage() · getUserAgent() · getSourceIp() · getContactForm() · getAttachments() · getFields()
getId()
Returns: long
Database id of the underlying contact request.
getCreatedDate()
Returns: Date
Date and time the contact request was submitted.
getProfile()
Returns: ExtProfileBean
Profile of the person who submitted the request, wrapped as an ExtProfileBean with a resolved full name.
getCompany()
Returns: String
Company name submitted with the request, if the form collected one. May be null or blank.
getEmail()
Returns: String
Email address submitted with the request.
getFirstName()
Returns: String
First name submitted with the request.
getPhone()
Returns: String
Phone number submitted with the request.
getSurName()
Returns: String
Surname submitted with the request.
getMessage()
Returns: String
Free-text message submitted with the request.
getUserAgent()
Returns: String
User-agent header recorded from the http request that made the submission. Null if the request was not made over http, or if no user-agent header was sent.
getSourceIp()
Returns: String
Source IP address recorded from the http request that made the submission. Null if the request was not made over http.
getContactForm()
Returns: String
Path, within the website, of the html page containing the form that was submitted.
getAttachments()
Returns: List<AttachmentBean>
Files attached to the request, either uploaded with the submission or attached by a directive on the form.
getFields()
Returns: Map<String,String>
Additional custom field values submitted with the request, keyed by field name, for any form fields that are not one of the request's built-in properties.