public class FileNameHelper extends Object
| Constructor and Description |
|---|
FileNameHelper() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getDocumentOutputFilename(com.github.cafdataprocessing.worker.policy.handlers.shared.document.SharedDocument document)
Gets a name to use for the output file representing the original document passed in.
|
static String |
getMetadataRefOutputFilename(Map.Entry<String,com.hpe.caf.util.ref.ReferencedData> metadataReference)
Gets a file name to use for the provided metadata reference
|
static String |
getRawTaskMessageFilename()
Gets the name to give the file containing the raw task message as retrieved from the queue.
|
static String |
getTaskMessageFilename()
Gets the name to give the file containing the user-friendly version of the task message.
|
static String |
sanitizeForFilesystem(String strToSanitize)
Replaces illegal filesystem characters in provided string with '_'.
|
public static String sanitizeForFilesystem(String strToSanitize)
strToSanitize - String that should be sanitized.public static String getMetadataRefOutputFilename(Map.Entry<String,com.hpe.caf.util.ref.ReferencedData> metadataReference)
metadataReference - Metadata Reference to generate output filename for.public static String getDocumentOutputFilename(com.github.cafdataprocessing.worker.policy.handlers.shared.document.SharedDocument document)
document - Document to generate filename for.public static String getRawTaskMessageFilename()
public static String getTaskMessageFilename()
Copyright © 2015–2017 Hewlett Packard Enterprise Development LP. All rights reserved.