A flattened, JSON-friendly snapshot of a Lead, produced by the toBean factory method for AJAX list and detail responses. Copies the lead's core fields plus summarised assigned-to profile, lead profile, organisation, participant and custom field data so that callers do not have to touch the underlying Lead entity or its Hibernate session.
Implements: Serializable
Properties
| Property | Returns | Description |
|---|---|---|
| assignedToProfile | JSONObject | A summary of the profile the lead is assigned to, with nickName, firstName, surName, phone, email and id fields. An empty object if the lead has no assigned profile. |
| cancelled | boolean | Whether the lead has been cancelled. |
| closedDate | Date | The date the lead was closed. |
| createdDate | Date | The date the lead was created. |
| dealAmount | BigDecimal | The lead's deal amount, as recorded on the Lead entity. |
| deletedDate | Date | The date the lead was soft deleted. |
| description | String | The lead's free text description. |
| fields | JSONObject | The lead's custom field values, keyed by field name, taken from its name/value pair set. |
| funnelName | String | The name of the funnel the lead belongs to. |
| leadId | long | The database id of the underlying lead. |
| participants | JSONArray | The lead's participants, each summarised with roleKey, id, name, email and type (profile or organisation). |
| profile | JSONObject | A summary of the lead's own profile, with nickName, firstName, surName, phone, email and id fields. An empty object if the lead has no linked profile. |
| source | String | Where the lead came from, as recorded on the Lead entity. |
| stageName | String | The name of the funnel stage the lead currently sits in. |
| title | String | The lead's title. |
Methods
getDealAmount() · getTitle() · getDescription() · getSource() · getStageName() · getFunnelName() · getCreatedDate() · getLeadId() · getAssignedToProfile() · getProfile() · getParticipants() · getFields() · getDeletedDate() · isCancelled() · getClosedDate()
getDealAmount()
Returns: BigDecimal
The lead's deal amount, as recorded on the Lead entity.
getTitle()
Returns: String
The lead's title.
getDescription()
Returns: String
The lead's free text description.
getSource()
Returns: String
Where the lead came from, as recorded on the Lead entity.
getStageName()
Returns: String
The name of the funnel stage the lead currently sits in.
getFunnelName()
Returns: String
The name of the funnel the lead belongs to.
getCreatedDate()
Returns: Date
The date the lead was created.
getLeadId()
Returns: long
The database id of the underlying lead.
getAssignedToProfile()
Returns: JSONObject
A summary of the profile the lead is assigned to, with nickName, firstName, surName, phone, email and id fields. An empty object if the lead has no assigned profile.
getProfile()
Returns: JSONObject
A summary of the lead's own profile, with nickName, firstName, surName, phone, email and id fields. An empty object if the lead has no linked profile.
getParticipants()
Returns: JSONArray
The lead's participants, each summarised with roleKey, id, name, email and type (profile or organisation).
getFields()
Returns: JSONObject
The lead's custom field values, keyed by field name, taken from its name/value pair set.
getDeletedDate()
Returns: Date
The date the lead was soft deleted.
isCancelled()
Returns: boolean
Whether the lead has been cancelled.
getClosedDate()
Returns: Date
The date the lead was closed.