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

PropertyReturnsDescription
assignedToProfileJSONObjectA 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.
cancelledbooleanWhether the lead has been cancelled.
closedDateDateThe date the lead was closed.
createdDateDateThe date the lead was created.
dealAmountBigDecimalThe lead's deal amount, as recorded on the Lead entity.
deletedDateDateThe date the lead was soft deleted.
descriptionStringThe lead's free text description.
fieldsJSONObjectThe lead's custom field values, keyed by field name, taken from its name/value pair set.
funnelNameStringThe name of the funnel the lead belongs to.
leadIdlongThe database id of the underlying lead.
participantsJSONArrayThe lead's participants, each summarised with roleKey, id, name, email and type (profile or organisation).
profileJSONObjectA 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.
sourceStringWhere the lead came from, as recorded on the Lead entity.
stageNameStringThe name of the funnel stage the lead currently sits in.
titleStringThe 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.

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