Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
ContentDownloadHandler Class
Namespace
ContentDownloadHandler Properties
The following are properties for ContentDownloadHandler.
downloadErrorMessage
Signature
public String downloadErrorMessage {get; set;}
Property Value
Type: String
This message is used if a redirectUrl is not provided. If the download is not allowed, Salesforce will throw a ContentCustomizedDownloadException exception that contains the downloadErrorMessage.
isDownloadAllowed
Signature
public Boolean isDownloadAllowed {get; set;}
Property Value
Type: Boolean
redirectUrl
Signature
public String redirectUrl {get; set;}
Property Value
Type: String
The URL must be a valid relative URL. For example, the redirect can be a custom Visualforce page such as “/apex/IRMControl”. URLs with no path, such as “www.domain.com”, results in an InvalidParameterValueException.