Package com.jbstrap.core.cache
Enum Class TempDataExportCache
- All Implemented Interfaces:
Serializable
,Comparable<TempDataExportCache>
,Constable
- Since:
- 4.0
- Author:
- JBStrap
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddExportData
(ExportTypes exportType, String filename, DataDescriptor dataDescriptor, Criteria criteria, List<Order> orders, List<String> columnNames, String clientId, String languageCode, char separator) getClientId
(String id) getColumnNames
(String id) getCriteria
(String id) getExportType
(String id) getFilename
(String id) char
getSeparator
(String id) void
static TempDataExportCache
Returns the enum constant of this class with the specified name.static TempDataExportCache[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
addExportData
public String addExportData(ExportTypes exportType, String filename, DataDescriptor dataDescriptor, Criteria criteria, List<Order> orders, List<String> columnNames, String clientId, String languageCode, char separator) - Parameters:
exportType
- The export typeExportTypes
filename
- the output filename (The downloadable filename)dataDescriptor
- The DataDescriptor to be exportedDataDescriptor
criteria
- The filtering criteria to be used on the DataDescriptor during the export process. The only lines that get exported, are those that follow the specifiedCriteria
orders
- TheOrder
to be used during the export processcolumnNames
- The list of the names of the columns that are to be exportedclientId
- The ID of the client, where the exported file will need to be downloaded tolanguageCode
- The client's language codeseparator
- The data separator character, which needs to be specified if the output file is a text file- Returns:
- A exportálás egyedi azonosítója The export ID
- Throws:
NullPointerException
- If the export type, DataDescriptor or Client ID arenull
-
getExportType
- Parameters:
id
- The export's ID- Returns:
- The export type or null
null
, if not found - Throws:
NullPointerException
- If the specified ID isnull
- See Also:
-
getFilename
- Parameters:
id
- The export ID- Returns:
- The output filename or
null
, if not found - Throws:
NullPointerException
- If the specified ID isnull
-
getDataDescriptor
- Parameters:
id
- The export ID- Returns:
- The DataDescriptor used for the exporting or
null
, if not found - Throws:
NullPointerException
- If the specified ID isnull
- See Also:
-
getCriteria
- Parameters:
id
- The export ID- Returns:
- The filter
Criteria
instance ornull
, if not found - Throws:
NullPointerException
- If the specified ID isnull
-
getOrders
- Parameters:
id
- The export id- Returns:
- The list of orders used for the exporting process or
null
, if not found - Throws:
NullPointerException
- If the specified ID isnull
- See Also:
-
getColumnNames
- Parameters:
id
- The export ID- Returns:
- A list of column names used in the export or
null
, if not found - Throws:
NullPointerException
- If the specified ID isnull
-
getClientId
- Parameters:
id
- The export ID- Returns:
- The client id or
null
, if not found
-
getLanguageCode
- Parameters:
id
- The export ID- Returns:
- The language code or
null
, if not found - Throws:
NullPointerException
- If the specified ID isnull
-
getSeparator
- Parameters:
id
- The export ID- Returns:
- The separator character or
null
, if not found - Throws:
NullPointerException
- If the specified id isnull
-
remove
- Parameters:
id
- The export ID
-