Foundations Apex API Developer Reference

fferpcore.MessagingButtonController

global with sharing class MessagingButtonController

A controller class for processing records from the button activation method. This class is intended for use with the automatically generated Visualforce pages to invoke the methods on this class.

Methods

MessagingButtonController

global MessagingButtonController(ApexPages.StandardController controller)

Constructor for the messaging button controller when passing in a standard controller.

Input Parameters

Name Type Description
controller ApexPages.StandardController The standard controller to use in MessagingButtonController.

Sample Data

new ApexPages.StandardController(new Contact())

MessagingButtonController

global MessagingButtonController(ApexPages.StandardSetController setController)

Constructor for the messaging button controller when passing in a standard set controller.

Input Parameters

Name Type Description
setController ApexPages.StandardSetController The standard set controller to use in MessagingButtonController.

Sample Data

new ApexPages.StandardSetController(

getController

global ApexPages.StandardController getController()

Get the standard controller used by the messaging button controller.

Return Value

The standard controller.

getSetController

global ApexPages.StandardSetController getSetController()

Get the standard set controller used by the messaging button controller.

Return Value

The the standard set controller.

getIsConfirmed

global Boolean getIsConfirmed()

Get information about whether a user has confirmed that they want to send messages for the specified records.

Return Value

True when a user has confirmed that they want to send messages for the specified records. False if confirmation has not been provided.

getHasError

global Boolean getHasError()

Get information about whether any messaging errors occurred.

Return Value

True if errors occurred during message delivery. False if messages were delivered successfully.

getErrors

global String getErrors()

Get details of any errors that occurred.

Return Value

A string containing a description of any errors that occurred.

setPublicationIdentifier

global void setPublicationIdentifier(String publicationIdentifier)

Set the publication identifier.

Input Parameters

Name Type Description
publicationIdentifier String The value of the publication identifier.

getPublicationIdentifier

global String getPublicationIdentifier()

Get the publication identifier.

Return Value

A string containing the publication identifier.

getOkButtonLabel

global String getOkButtonLabel()

getCancelButtonLabel

global String getCancelButtonLabel()

getConfirmButtonLabel

global String getConfirmButtonLabel()

getPageTitle

global String getPageTitle()

getSuccessMessage

global String getSuccessMessage()

getErrorMessage

global String getErrorMessage()

getConfirmMessage

global String getConfirmMessage()

getHelpUrl

global PageReference getHelpUrl()

Get the help ID for this page.

Return Value

The help page reference.

deliverRecordMessage

global void deliverRecordMessage()

A method called from a Visualforce page to deliver a single specific record. Typically called by a Visualforce page linked to a record detail page.

deliverListMessages

global void deliverListMessages()

A method called from a Visualforce page to deliver multiple records. Typically called by a Visualforce page linked to a list view that has one or more records selected.

© Copyright 2009–2024 Certinia Inc. All rights reserved. Various trademarks held by their respective owners.