java.lang.Object | |
↳ | com.microstrategy.web.app.utils.ExportBeanHelper |
The ExportBeanHelper is a helper for exporting
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | EXPORT_BASE_RESULT_FLAGS |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ExportBeanHelper()
Constructor to create an instance of the helper.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
static String |
getDisplayableReportName(String fileName, boolean encodeSpace)
Cleans the file name.
| ||||||||||
static String | getExportActionFormName(String servletName, String uniqueID, String suggestedFileName, boolean redirect) | ||||||||||
static String | getExportAnchorTarget(WebComponent wc) | ||||||||||
static int | getExportReportResultFlags(ReportBean rb) | ||||||||||
static boolean |
isFlashOnPdfFormat(AppContext appContext)
Whether the flash exported report would be using PDF format (false if MHT)
This is based on a Project Configuration setting. | ||||||||||
static boolean |
isPlaintextFormat(String exportFormatName)
This method is deprecated.
this can be determined from
ExportFormat object of the ExportBean
| ||||||||||
void |
reset()
Resets the values set by the setters on the helper.
| ||||||||||
void |
setCharSet(String charSet)
Overrides the charset to use for the setupExportHeaders method.
| ||||||||||
void |
setCodePage(int codePage)
Sets the code page to use when generating export headers.
| ||||||||||
static void | setContentDispositionHTTPHeaderForExporting(String fileName, String fileExtension, boolean forceDownload, ContainerServices cServ, BrowserSettings browserSettings, int maxFileSize) | ||||||||||
void |
setContentType(String contentType)
Overrides the content type used in the setupExportHeaders method.
| ||||||||||
void |
setExportFormat(ExportFormat exportFormat)
Sets the export format to be used when the Export operation gets called.
| ||||||||||
void |
setFileExtension(String fileExtension)
Overrides the file extension to use for the setupExportHeaders method.
| ||||||||||
void |
setFileName(String fileName)
Overrides the filename used in the setupExportHeaders method.
| ||||||||||
void | setForceDownload(Boolean forceDownload) | ||||||||||
void |
setMaxFileSize(int maxFileSize)
Sets the max filename size for the setupExportHeaders method.
| ||||||||||
String |
setupExportHeaders(AppContext appContext)
This method will setup the headers for the export operation.
| ||||||||||
String |
setupExportHeaders(AppContext appContext, MarkupOutput mo)
This method will setup the headers for the export operation.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Constructor to create an instance of the helper.
Initializes all internal properties with default values.
Cleans the file name. Replaces parameters that can cause problems on the file system.
fileName | String to clean |
---|
Whether the flash exported report would be using PDF format (false if MHT)
This is based on a Project Configuration setting.
appContext | The Application context |
---|
This method is deprecated.
this can be determined from ExportFormat
object of the ExportBean
exportFormatName | the export format name |
---|
Resets the values set by the setters on the helper.
Overrides the charset to use for the setupExportHeaders method.
charSet | The charset to use for the export. |
---|
Sets the code page to use when generating export headers. If this is not sent, then the code page will be based on the export type and locale.
codePage | The code page to use when generating export headers. |
---|
Overrides the content type used in the setupExportHeaders method.
contentType | The new content type to use for the export. |
---|
Sets the export format to be used when the Export operation gets called.
exportFormat | The ExportFormat being used in the export. |
---|
Overrides the file extension to use for the setupExportHeaders method.
fileExtension | The file extension to use for the export. |
---|
Overrides the filename used in the setupExportHeaders method.
fileName | The new filename to use for the export. |
---|
Sets the max filename size for the setupExportHeaders method.
maxFileSize | The maximum file size for the setupExportHeaders method. |
---|
This method will setup the headers for the export operation. These headers include the content type, character set, code page, and similar attributes in the header of the export operation.
appContext | The AppContext object. |
---|
This method will setup the headers for the export operation. These headers include the content type, character set, code page, and similar attributes in the header of the export operation.
appContext | The AppContext object. |
---|---|
mo | The MarkupOutput object. If this is provided, then the content type will be set on it. |