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

PropertyReturnsDescription
attachmentsList<AttachmentBean>Files attached to the request, either uploaded with the submission or attached by a directive on the form.
companyStringCompany name submitted with the request, if the form collected one. May be null or blank.
contactFormStringPath, within the website, of the html page containing the form that was submitted.
createdDateDateDate and time the contact request was submitted.
emailStringEmail address submitted with the request.
fieldsMap<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.
firstNameStringFirst name submitted with the request.
idlongDatabase id of the underlying contact request.
messageStringFree-text message submitted with the request.
phoneStringPhone number submitted with the request.
profileExtProfileBeanProfile of the person who submitted the request, wrapped as an ExtProfileBean with a resolved full name.
sourceIpStringSource IP address recorded from the http request that made the submission. Null if the request was not made over http.
surNameStringSurname submitted with the request.
userAgentStringUser-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.

To get full access to the Kademi Hub existing customers can login here, or new customers can register here.