A file attached to a lead, such as a photo, quote or signed document, held by content hash rather than as bytes on the row. As well as the file itself it records who uploaded it, when, any notes about it and, where the uploading device supplied one, the location it was taken from. A lead can have any number of files.

Group: Database Entities

Implements: Serializable


Properties

PropertyReturnsDescription
contentTypeStringThe media type of the file, such as image/jpeg or application/pdf, used when it is served back to a browser.
createdByProfileThe profile that uploaded the file.
createdDateDateWhen the file was uploaded, as a timestamp.
fileHashStringContent hash of the uploaded file, which is how the bytes are fetched from the content store. The file contents are not stored on this row.
geoLocationStringWhere the file was uploaded from, as latitude and longitude separated by a semicolon, for example -36.736407199999995;174.6943164. Only set when the uploading device supplied a location, so it is often null.
idlongThe database identifier of this attachment.
leadLeadThe lead this file is attached to.
nameStringThe file name as uploaded, used when the attachment is displayed or downloaded. Not guaranteed to be unique within the lead.
notesStringFree text the uploader wrote about the file, such as what it shows or why it was added. Null when nothing was written.

Methods

getId() · getName() · setName(String name) · getFileHash() · setFileHash(String fileHash) · getContentType() · setContentType(String contentType) · getGeoLocation() · setGeoLocation(String geoLocation) · getLead() · setLead(Lead lead) · getNotes() · setNotes(String notes) · getCreatedDate() · setCreatedDate(Date createdDate) · getCreatedBy() · setCreatedBy(Profile createdBy)

getId()

Returns: long

The database identifier of this attachment.

getName()

Returns: String

The file name as uploaded, used when the attachment is displayed or downloaded. Not guaranteed to be unique within the lead.

setName(String name)

Returns: void

Sets the file name.

ParameterDescription
namethe file name as uploaded

getFileHash()

Returns: String

Content hash of the uploaded file, which is how the bytes are fetched from the content store. The file contents are not stored on this row.

setFileHash(String fileHash)

Returns: void

Sets the content hash of the uploaded file.

ParameterDescription
fileHashthe file's content hash

getContentType()

Returns: String

The media type of the file, such as image/jpeg or application/pdf, used when it is served back to a browser.

setContentType(String contentType)

Returns: void

Sets the media type of the file.

ParameterDescription
contentTypethe file's content type

getGeoLocation()

Returns: String

Where the file was uploaded from, as latitude and longitude separated by a semicolon, for example -36.736407199999995;174.6943164. Only set when the uploading device supplied a location, so it is often null.

setGeoLocation(String geoLocation)

Returns: void

Sets where the file was uploaded from.

ParameterDescription
geoLocationthe location as a semicolon separated latitude and longitude

getLead()

Returns: Lead

The lead this file is attached to.

setLead(Lead lead)

Returns: void

Sets the lead this file is attached to.

ParameterDescription
leadthe lead this attachment belongs to

getNotes()

Returns: String

Free text the uploader wrote about the file, such as what it shows or why it was added. Null when nothing was written.

setNotes(String notes)

Returns: void

Sets the free text notes about the file.

ParameterDescription
notesthe notes on this attachment

getCreatedDate()

Returns: Date

When the file was uploaded, as a timestamp.

setCreatedDate(Date createdDate)

Returns: void

Sets when the file was uploaded.

ParameterDescription
createdDatethe date and time the file was uploaded

getCreatedBy()

Returns: Profile

The profile that uploaded the file.

setCreatedBy(Profile createdBy)

Returns: void

Sets the profile that uploaded the file.

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