简体   繁体   English

使用Java修改SharePoint 2010文档库

[英]Modify SharePoint 2010 document library using Java

In my SharePoint site, there are several document libraries, each assigned to a different group of people. 在我的SharePoint网站上,有几个文档库,每个文档库分配给不同的人员。 Users need to transfer files between them often, and my boss wants a faster way than copy/pasting the files into another library then deleting the original, and he doesn't want anyone having direct access to the document hierarchy. 用户需要经常在它们之间传输文件,而我的老板想要一种比将文件复制/粘贴到另一个库然后删除原始文件更快的方法,并且他不希望任何人可以直接访问文档层次结构。

Someone had the idea to run Java code that would automatically transfer documents from one library to another, using inputs from a pop-up for the source and destination. 有人想到运行Java代码,该代码将使用源和目标弹出窗口中的输入自动将文档从一个库传输到另一个库。 Can Java code be stored on a SharePoint server and be executed by a user action? Java代码可以存储在SharePoint服务器上并可以通过用户操作执行吗?

Java code can not be used SharePoint directly. Java代码不能直接用于SharePoint。 What you can try is using C# or VB.Net through which actions can be executed on SharePoint using object model of SharePoint. 您可以尝试使用C#或VB.Net,通过它们可以使用SharePoint对象模型在SharePoint上执行操作。

Another option is using web services 另一种选择是使用Web服务

1、You can use then Copy.asmx web service to upload document: http://msdn.microsoft.com/en-us/library/copy(v=office.12).aspx 1,您可以使用然后使用Copy.asmx Web服务上传文档: http : //msdn.microsoft.com/en-us/library/copy( v=office.12) .aspx

2、upload large file: http://www.codeproject.com/Articles/166763/WCF-Streaming-Upload-Download-Files-Over-HTTP 2,上传大文件: http//www.codeproject.com/Articles/166763/WCF-Streaming-Upload-Download-Files-Over-HTTP

您可以在SharePoint中创建WCF服务 ,然后从Java应用程序中使用它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM