Click or drag to resize

DataExportHelper Class

A class that can be used to help aid the non-mapper-command-specific items when it comes to the DataExport services.
Inheritance Hierarchy
SystemObject
  NetQuarry.DataDataExportHelper

Namespace:  NetQuarry.Data
Assembly:  EAP.Mapper (in EAP.Mapper.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public class DataExportHelper

The DataExportHelper type exposes the following members.

Constructors
  NameDescription
Public methodDataExportHelper
Initializes a new instance of the DataExportHelper class
Top
Methods
  NameDescription
Public methodStatic memberCleanExportFiles
Clean up the exported files for the given FilePath.
Public methodStatic memberConvertAndTransmitFile
Convert a given mapper's content to a Data type as specified by the DataExportService, and then write the file out to the browser
Public methodStatic memberConvertFile
Convert a given file / XML content to a file defined by the DataExportService.
Public methodStatic memberDoExport
Do the export for a given DataExportService. The results are written to the browser.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodStatic memberExport
Perform the export for a given mapper / DataExportService combo.
Public methodStatic memberExportIsCancelled(IMapper)
Checks whether the export has been cancelled by the user
Public methodStatic memberExportIsCancelled(IAppContext, Int32)
Checks whether the export has been cancelled by the user
Public methodStatic memberExportIsCancelled(IAppContext, Int32, Int32)
Checks whether the export has been cancelled by the user
Public methodStatic memberExportUnderSmartThreshold
Calculates the expected duration of the excel export and compares that against the threshold for offline execution. If the estimated duration is below the system threshold, it returns false (typically meaning the export will occur online)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodStatic memberGenFilename
Generate the Data filename.
Public methodStatic memberGetDefaultExportExtension
Get the default Export file Extension.
Public methodStatic memberGetDocStorage(IMapper)
Gets the DocStorageService for the Offline Export task.
Public methodStatic memberGetDocStorage(IAppContext, Properties)
Gets the DocStorageService for the Offline Export task.
Public methodStatic memberGetExportLife
Determines the amount of days an export can remain in the database after performing an Offline Export
Public methodStatic memberGetExportMode(IAppContext, IDataExportService, Boolean)
Inspects the feature property DataExportMode to determine the behavior for executing Data exports.
Public methodStatic memberGetExportMode(IMapper, IDataExportService, Boolean)
Inspects the feature property ExcelExportMode to determine the behavior for executing excel exports.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodStatic memberGetRelatedDocMapper(IMapper)
Gets a reldoc mapper ready for insert. the person calling this method is reponsible to close the mapper once finished
Public methodStatic memberGetRelatedDocMapper(IAppContext, Properties)
Gets a reldoc mapper ready for insert. the person calling this method is reponsible to close the mapper once finished
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberLogExportMetric(IMapper, NullableExcelExportStatus, NullableInt32, NullableInt32, NullableInt64, String, String, NullableExcelExportAttrs, NullableExcelExportOfflineReasons)
Logs metrics for data exporting.
Public methodStatic memberLogExportMetric(IAppContext, Int32, ExcelExportStatus, NullableInt32, NullableInt32, NullableInt64, String, String, NullableExcelExportAttrs, NullableExcelExportOfflineReasons)
Logs metrics for data exporting.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStatic memberNotifyRecipient
Notifies the recipient on completion of export
Public methodStatic memberPerformExport
Perform the export.
Public methodStatic memberSaveToDocStorage
Saves the exported file to doc storage
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
Fields
  NameDescription
Public fieldStatic membercsExportJobIDProperty
The name of the JobID responsible for the Offline Export.
Public fieldStatic memberEXPORT_FEATURE_LOGGING_BEHAVIOR
The name of the Export feature containing the Logging Behavior.
Public fieldStatic memberEXPORT_FEATURE_OFFLINE_ALERT_TEMPLATE
The name of the Export feature containing the Offline Alert Template.
Public fieldStatic memberOFFLINE_TASK_DEF_MAX_ATTACH_SIZE
The property for the Offline task containing the default value for the maximum attachment size
Public fieldStatic memberOFFLINE_TASK_DEF_MAX_EXPORT_THREADS
The property for the Offline task containing the default value for the maximum threads to use
Public fieldStatic memberOFFLINE_TASK_DEFAULT_EXT
The property for the Offline task containing the Default file extension to be used when saving to the Related Documents mapper.
Public fieldStatic memberOFFLINE_TASK_DOC_STORAGE
The property for the Offline task containing the DocStorageService to be used when exporting.
Public fieldStatic memberOFFLINE_TASK_EMAIL_LOOKUP_SQL
The property for the Offline task containing the SQL used to look up a user's Email address.
Public fieldStatic memberOFFLINE_TASK_EMAIL_MAX_ATTACH_SIZE
The property for the Offline task containing the Maximum attachment size
Public fieldStatic memberOFFLINE_TASK_EMAIL_SERVICE
The property for the Offline task containing the Email Service.
Public fieldStatic memberOFFLINE_TASK_EMAIL_TEMPLATE_NO_ATTACH
The property for the Offline task containing the Email Template for a notification without an Attachment.
Public fieldStatic memberOFFLINE_TASK_EMAIL_TEMPLATE_WITH_ATTACH
The property for the Offline task containing the Email Template for a notification with an Attachment.
Public fieldStatic memberOFFLINE_TASK_EXPORT_FILE_FOLDER
The property for the Offline task containing the File Folder intended to save the exports to.
Public fieldStatic memberOFFLINE_TASK_EXPORT_HISTORY_PAGE
The property for the Offline task containing the MOP for the History page.
Public fieldStatic memberOFFLINE_TASK_MAX_EXPORT_THREADS
The property for the Offline task containing the maximum count of Threads allowed to use.
Public fieldStatic memberOFFLINE_TASK_RD_DEF_DESCRIPTION
The property for the Offline task containing the default value for the Description field on the Related Documents mapper.
Public fieldStatic memberOFFLINE_TASK_RD_DEF_DOCTYPE
The property for the Offline task containing the default value for the DocType
Public fieldStatic memberOFFLINE_TASK_RD_DEF_FIELD_DESCRIPTION
The property for the Offline task containing the default field name for the Description field on the Related Documents mapper.
Public fieldStatic memberOFFLINE_TASK_RD_DEF_FIELD_DOCID
The property for the Offline task containing the default field name for the DocID field on the Related Documents mapper.
Public fieldStatic memberOFFLINE_TASK_RD_DEF_FIELD_DOCTYPE
The property for the Offline task containing the default field name for the DocType field on the Related Documents mapper.
Public fieldStatic memberOFFLINE_TASK_RD_DEF_FIELD_FILENAME
The property for the Offline task containing the default field name for the file name field on the Related Documents mapper.
Public fieldStatic memberOFFLINE_TASK_RD_DEF_FIELD_RELATEDID
The property for the Offline task containing the default field name for the Related ID field on the Related Documents mapper.
Public fieldStatic memberOFFLINE_TASK_RD_DESCRIPTION
The property for the Offline task containing the Descrption to be used when saving to the Related Documents mapper.
Public fieldStatic memberOFFLINE_TASK_RD_DOCTYPE
The property for the Offline task containing the DocType to be used when saving to the Related Documents mapper.
Public fieldStatic memberOFFLINE_TASK_RD_FIELD_DESCRIPTION
The property for the Offline task containing the Field name of the Discription on the Related Documents mapper.
Public fieldStatic memberOFFLINE_TASK_RD_FIELD_DOCID
The property for the Offline task containing the Field name of the Document ID on the Related Documents mapper.
Public fieldStatic memberOFFLINE_TASK_RD_FIELD_DOCTYPE
The property for the Offline task containing the Field name of the Doc Type on the Related Documents mapper.
Public fieldStatic memberOFFLINE_TASK_RD_FIELD_FILENAME
The property for the Offline task containing the Field name of the File name on the Related Documents mapper.
Public fieldStatic memberOFFLINE_TASK_RD_FIELD_RELATEDID
The property for the Offline task containing the Field name of the Related ID on the Related Documents mapper.
Public fieldStatic memberOFFLINE_TASK_RELATED_DOC_MAPPER
The property for the Offline task containing the Related Documents mapper to be used.
Top
Extension Methods
  NameDescription
Public Extension MethodEqualValue
Determines if the object value is equal to another object. If the two objects are null, then this returns true. There is special handling for guid comparisons (since a guid could be a string formatted in up to 3 different ways). If the special guid handling is not performed, then the object.Equals method is used.
(Defined by EAPUtil.)
Top
See Also