DocumentService.java 文件源码

java
阅读 32 收藏 0 点赞 0 评论 0

项目:document-management-system 作者:
@WebMethod
public
@XmlMimeType("application/octet-stream")
DataHandler getContentByVersion(@WebParam(name = "token") String token, @WebParam(name = "docPath") String docPath,
                                @WebParam(name = "versionId") String versionId) throws RepositoryException, IOException, AccessDeniedException,
        PathNotFoundException, DatabaseException {
    log.debug("getContentByVersion({}, {}, {})", new Object[]{token, docPath, versionId});
    DocumentModule dm = ModuleManager.getDocumentModule();
    InputStream is = dm.getContentByVersion(token, docPath, versionId);
    DataHandler data = new DataHandler(new DhDatasource(is, null, docPath));
    log.debug("getContentByVersion: {}", data);
    return data;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号