public class PolicyDocumentsBuilder extends Object
| Constructor and Description |
|---|
PolicyDocumentsBuilder() |
| Modifier and Type | Method and Description |
|---|---|
static DocumentAndFile |
getDocument(String docPath)
Constructs a Policy Worker Document with basic metadata for specified document path.
|
static List<DocumentAndFile> |
getDocuments(String directory)
Constructs a list of Policy Worker Documents with basic metadata for each file filesToSendLocation directory.
|
public static DocumentAndFile getDocument(String docPath) throws IOException, com.hpe.caf.api.worker.DataStoreException
docPath - Path to a document file to base Policy Worker Document on.IOException - If error occurs accessing file at provided path.com.hpe.caf.api.worker.DataStoreException - If error occurs storing data for file.public static List<DocumentAndFile> getDocuments(String directory) throws com.hpe.caf.api.ConfigurationException, IOException, com.hpe.caf.api.worker.DataStoreException, InterruptedException
directory - Directory containing files to construct Policy Documents from.com.hpe.caf.api.ConfigurationException - If path provided is not a directory.IOException - If error occurs accessing files in directory.com.hpe.caf.api.worker.DataStoreException - If error occurs storing data for file.InterruptedExceptionCopyright © 2015–2017 Hewlett Packard Enterprise Development LP. All rights reserved.