@WebMethod
public Document createSimple(@WebParam(name = "token") String token, @WebParam(name = "docPath") String docPath,
@WebParam(name = "content") @XmlMimeType("application/octet-stream") DataHandler content) throws IOException,
UnsupportedMimeTypeException, FileSizeExceededException, UserQuotaExceededException, VirusDetectedException,
ItemExistsException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, ExtensionException,
AutomationException {
log.debug("createSimple({})", docPath);
DocumentModule dm = ModuleManager.getDocumentModule();
InputStream bais = content.getInputStream();
Document doc = new Document();
doc.setPath(docPath);
Document newDocument = dm.create(token, doc, bais);
bais.close();
log.debug("createSimple: {}", newDocument);
return newDocument;
}
DocumentService.java 文件源码
java
阅读 34
收藏 0
点赞 0
评论 0
项目:document-management-system
作者:
评论列表
文章目录