public class PrintTools extends Object
| Constructor and Description |
|---|
PrintTools() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addCellInfoToContext(ExpressionContext context,
TableBlock table,
CellEntry cell,
Object rowData,
int rowDataIndex,
int rowDataCount,
Object columnData,
int colDataIndex,
int colDataCount) |
static void |
addCellValuesToContext(ExpressionContext context,
Object cellRawValue,
String cellValue) |
static void |
addColumnIndexAndCountToContext(ExpressionContext context,
int colIndex,
int colCount) |
static void |
addColumnInfoToContext(ExpressionContext context,
TableBlock table,
ColumnEntry column,
int colDataIndex,
int colDataCount) |
static void |
addRawValueToContext(ExpressionContext context,
Object rawValue) |
static void |
addRowIndexAndCountToContext(ExpressionContext context,
int rowIndex,
int rowCount) |
static void |
addToolsToContext(ExpressionContext context) |
static Media |
adjustMediaToContext(Media media) |
static Object |
adjustRawValue(Object rawValue) |
static TableDataHolder |
createDataHolder(TableBlock table) |
static AxisDataHolder |
createDataHolder(TableBlock table,
AxisEntry axis) |
static CellDataHolder |
createDataHolder(TableBlock table,
CellEntry cell) |
static String |
escapeTaggedText(String str) |
void |
exportCometConfiguration(String publicationCode,
String zipFileName)
Exports the Comet configuraton of the specified Publication (XML configurtaion files and related actions)
|
static Collection<AxisDataHolder> |
getAllDataHolders(AxisEntry axis) |
static Collection<CellDataHolder> |
getAllDataHolders(CellEntry cell) |
static Collection<AbstractTableDataHolder> |
getAllDataHolders(TableBlock table) |
static TableDataHolder |
getDataHolder(TableBlock table) |
static AxisDataHolder |
getDataHolder(TableBlock table,
AxisEntry axis) |
static CellDataHolder |
getDataHolder(TableBlock table,
CellEntry cell) |
static String |
getErrorAsValueString(Throwable e) |
static String |
getImagePath(String path,
String imageName,
OS os) |
static String |
getValueTypeCode(EnumerationValue valueType,
Object rawValue) |
static String |
guessMimeType(byte[] content)
Tries to guess the mime type of an array's content.
|
void |
importCometConfiguration(String zipFileName,
String publicationCode)
Imports the Comet configuraton (XML configurtaion files and related actions) from the specified zip file to the specified
Publication
|
static AxisDataProvider |
instantiateAxisDataProvider(Class providerClass)
Instantiates the provider if possible.
|
static AxisDataProvider |
instantiateAxisDataProvider(TableBlock table,
AxisEntry axis,
Class providerClass,
Map<String,Object> globalParams,
Map<String,Object> localParams)
Instantiates the provider if possible and initializes it with the given parameters.
|
static CellDataResolver |
instantiateCellDataResolver(Class resClass)
Instantiates the resolver if possible.
|
static CellDataResolver |
instantiateCellDataResolver(TableBlock table,
CellEntry cell,
Class resClass,
Map<String,Object> globalParams,
Map<String,Object> localParams)
Instantiates the resolver if possible and initializes it with the given parameters.
|
protected static Map<String,Object> |
mergeParams(Map<String,Object> globalParams,
Map<String,Object> localParams) |
public static String guessMimeType(byte[] content)
content - The array that contains the contentpublic void exportCometConfiguration(String publicationCode, String zipFileName) throws JaloInvalidParameterException, JaloItemNotFoundException, JaloBusinessException
publicationCode - The code of the publication for which to export their Comet configurationzipFileName - The file name under which to safe the zip file that contains the exported Comet configurationJaloInvalidParameterException - If a parameter is not set or if the specfied destination file already existsJaloItemNotFoundException - The the specified Publication or any configuration file could not be foundJaloBusinessException - If an error occurs while exporting the configuration filespublic void importCometConfiguration(String zipFileName, String publicationCode) throws JaloInvalidParameterException, JaloItemNotFoundException, JaloBusinessException
zipFileName - The file name of zip file from which to read the Comet configurationpublicationCode - The code of the publication to which to import the Comet configurationJaloInvalidParameterException - If a parameter is not set or if the specfied destination file already existsJaloItemNotFoundException - The the specified Publication or any configuration file could not be foundJaloBusinessException - If an error occurs while exporting the configuration filespublic static AxisDataProvider instantiateAxisDataProvider(Class providerClass)
providerClass - public static AxisDataProvider instantiateAxisDataProvider(TableBlock table, AxisEntry axis, Class providerClass, Map<String,Object> globalParams, Map<String,Object> localParams)
providerClass - globalParams - localParams - public static CellDataResolver instantiateCellDataResolver(Class resClass)
resClass - public static CellDataResolver instantiateCellDataResolver(TableBlock table, CellEntry cell, Class resClass, Map<String,Object> globalParams, Map<String,Object> localParams)
resClass - globalParams - localParams - protected static Map<String,Object> mergeParams(Map<String,Object> globalParams, Map<String,Object> localParams)
public static TableDataHolder getDataHolder(TableBlock table)
public static AxisDataHolder getDataHolder(TableBlock table, AxisEntry axis)
public static TableDataHolder createDataHolder(TableBlock table)
public static AxisDataHolder createDataHolder(TableBlock table, AxisEntry axis)
public static CellDataHolder createDataHolder(TableBlock table, CellEntry cell)
public static CellDataHolder getDataHolder(TableBlock table, CellEntry cell)
public static Collection<AbstractTableDataHolder> getAllDataHolders(TableBlock table)
public static Collection<AxisDataHolder> getAllDataHolders(AxisEntry axis)
public static Collection<CellDataHolder> getAllDataHolders(CellEntry cell)
public static String getValueTypeCode(EnumerationValue valueType, Object rawValue)
public static void addToolsToContext(ExpressionContext context)
public static void addCellInfoToContext(ExpressionContext context, TableBlock table, CellEntry cell, Object rowData, int rowDataIndex, int rowDataCount, Object columnData, int colDataIndex, int colDataCount)
public static void addCellValuesToContext(ExpressionContext context, Object cellRawValue, String cellValue)
public static void addRawValueToContext(ExpressionContext context, Object rawValue)
public static void addColumnInfoToContext(ExpressionContext context, TableBlock table, ColumnEntry column, int colDataIndex, int colDataCount)
public static void addColumnIndexAndCountToContext(ExpressionContext context, int colIndex, int colCount)
public static void addRowIndexAndCountToContext(ExpressionContext context, int rowIndex, int rowCount)
Copyright © 2017 SAP SE. All Rights Reserved.