Class ExportProcess
java.lang.Object
java.lang.Thread
com.saperion.ngc.servlet.process.LongRunningProcess
com.saperion.ngc.servlet.process.export.ExportProcess
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
CSVExportProcess,XLSXExportProcess
Abstract superclass for processes that export data from a result list (no content).
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final intDefault maximum length of a cell's value.Field descriptions for DDC in use.protected final StringFilename for export.static final StringName for columns-parameter in paramters-map.static final StringName for fieldinfos-parameter in parameters-map.static final StringName for filename-parameter in parameters-map.static final StringName for query-parameter in parameters-map.protected final com.saperion.rmi.SaQueryInfoThe query to execute to get search result.Selected columns to export (map from name to display-name).Fields inherited from class com.saperion.ngc.servlet.process.LongRunningProcess
bean, canceled, connectionProvider, CONTROL_BEAN_SESSION_ATTR, error, progress, sessionFields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
ConstructorsConstructorDescriptionExportProcess(LRPControlBean bean, jakarta.servlet.http.HttpSession session) -
Method Summary
Modifier and TypeMethodDescriptioncollectColumnNames(com.saperion.intf.SaDocumentInfo first) Collects a list of column names to export.protected CellFormattergetFormatter(com.saperion.intf.SaPropertyValue value) Returns a formatter for the specified value.Methods inherited from class com.saperion.ngc.servlet.process.LongRunningProcess
cancel, getProgress, isError, updateProgress, writeResultMethods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
Field Details
-
PARAM_COLUMNS
Name for columns-parameter in paramters-map.- See Also:
-
PARAM_QUERY
Name for query-parameter in parameters-map.- See Also:
-
PARAM_FILENAME
Name for filename-parameter in parameters-map.- See Also:
-
PARAM_FIELDINFOS
Name for fieldinfos-parameter in parameters-map.- See Also:
-
DEFAULT_MAX_CELL_LENGTH
protected static final int DEFAULT_MAX_CELL_LENGTHDefault maximum length of a cell's value.- See Also:
-
query
protected final com.saperion.rmi.SaQueryInfo queryThe query to execute to get search result. -
selectedColumns
Selected columns to export (map from name to display-name). -
filename
Filename for export. -
fieldDescriptions
Field descriptions for DDC in use.
-
-
Constructor Details
-
ExportProcess
- Parameters:
bean- control-bean for this processsession- current session
-
-
Method Details
-
collectColumnNames
Collects a list of column names to export.- Parameters:
first- first result of the query- Returns:
- list of column names
-
getFormatter
Returns a formatter for the specified value.- Parameters:
value- value to format- Returns:
- formatter-instance
-