jBPM :: Document Service 6.2.0.Beta1

org.jbpm.document.service
Interface DocumentStorageService

All Known Implementing Classes:
DocumentStorageServiceImpl

public interface DocumentStorageService

Simple storage service definition


Method Summary
 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
 Document saveDocument(Document document, byte[] content)
          Method to store the uploaded file on the system
 

Method Detail

saveDocument

Document saveDocument(Document document,
                      byte[] content)
Method to store the uploaded file on the system

Parameters:
document - The document to store the content
content - The document content
Returns:
A Document

getDocument

Document getDocument(String id)
Method to obtain a File for the given storage id

Parameters:
id - The Document id to obtain the Document
Returns:
The java.io.File identified with the id

deleteDocument

boolean deleteDocument(String id)
Deletes the File identified by the given id

Parameters:
id - The Document id to delete
Returns:
true if it was possible to remove, false if not

deleteDocument

boolean deleteDocument(Document document)
Deletes the File identified by the given id

Parameters:
document - The Document to delete
Returns:
true if it was possible to remove, false if not

jBPM :: Document Service 6.2.0.Beta1

Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.