public final class CometFileHandler extends Object
| Modifier and Type | Method and Description |
|---|---|
static CometBinary |
getBinaryFile(CometConfiguration cometConfig,
String fileId) |
static ModelService |
getModelService() |
static PageModel |
getPageById(String id,
PrintPublication publication,
ModelService modelService) |
static PageModel |
getPageModel(CometBinary file) |
static CometFile |
putBinaryFile(CometConfiguration cometConfig,
String fileId,
CometBinary file) |
protected static void |
putBinaryFileToHD(CometConfiguration cometConfig,
String filename,
byte[] content)
Stores a Comet configuration file to the hard disk
|
public static PageModel getPageModel(CometBinary file)
public static PageModel getPageById(String id, PrintPublication publication, ModelService modelService)
public static ModelService getModelService()
public static CometBinary getBinaryFile(CometConfiguration cometConfig, String fileId) throws IOException, JaloBusinessException
IOExceptionJaloBusinessExceptionpublic static CometFile putBinaryFile(CometConfiguration cometConfig, String fileId, CometBinary file) throws JaloBusinessException
JaloBusinessExceptionprotected static void putBinaryFileToHD(CometConfiguration cometConfig, String filename, byte[] content) throws JaloInvalidParameterException, JaloBusinessException
filename - The name of the file where the content shall be stored in (relative file name))content - The content of the fileJaloInvalidParameterExceptionJaloBusinessExceptionCopyright © 2017 SAP SE. All Rights Reserved.