public interface DocumentStorageService
| Modifier and Type | Method and Description |
|---|---|
Document |
buildDocument(String name,
long size,
Date lastModified,
Map<String,String> params)
Generates a Document instance.
|
boolean |
deleteDocument(Document document)
Deletes the File identified by the given id
|
boolean |
deleteDocument(String id)
Deletes the File identified by the given id
|
Document |
getDocument(String id)
Method to obtain a File for the given storage id
|
List<Document> |
listDocuments(Integer page,
Integer pageSize)
Lists available document with paging support.
|
Document |
saveDocument(Document document,
byte[] content)
Method to store the uploaded file on the system
|
Document buildDocument(String name, long size, Date lastModified, Map<String,String> params)
name - The document namesize - The document sizelastModified - The lastModified date of the documentparams - A MapDocument saveDocument(Document document, byte[] content)
document - The document to store the contentcontent - The document contentDocument getDocument(String id)
id - The Document id to obtain the Documentboolean deleteDocument(String id)
id - The Document id to deleteboolean deleteDocument(Document document)
document - The Document to deleteCopyright © 2001–2018 JBoss by Red Hat. All rights reserved.