C# Sharepoint service将子网站从专用网站复制到其他网站
我有两个sharepoint web应用程序,它们位于同一台服务器上,具有不同的网站集和内容。我想做的是开发一个服务,该服务将被安排在特定的服务器日期和时间上运行 第一个web应用程序是一个内部站点,仅允许内部用户查看该站点。虽然第二个web应用程序是一个公共站点,但每个人都可以查看该站点 现在,我想按照以下标准在两个web应用程序之间进行同步:C# Sharepoint service将子网站从专用网站复制到其他网站,c#,sharepoint-2007,service,sharepoint-api,C#,Sharepoint 2007,Service,Sharepoint Api,我有两个sharepoint web应用程序,它们位于同一台服务器上,具有不同的网站集和内容。我想做的是开发一个服务,该服务将被安排在特定的服务器日期和时间上运行 第一个web应用程序是一个内部站点,仅允许内部用户查看该站点。虽然第二个web应用程序是一个公共站点,但每个人都可以查看该站点 现在,我想按照以下标准在两个web应用程序之间进行同步: 1.) Retrieve information from internal site -Group name -Group description
1.) Retrieve information from internal site
-Group name
-Group description
-Group owner
-Group owner email
-Group url
-Discussion forum url
2.) Copy everything to the external site (public site) all the retrieved data that is
not found in the external site
---------------------------------------------------
Example:
http://MyInternalSite.com with subsites
Subsites:
-AGroup
-BGroup
-CGroup
And I have this external sharepoint site
http://MyExternalSite.com with subsites
Subsites:
-AGroup
-BGroup
请注意,除了CGroup之外,MyInternalSite.com和MyExternalSite中都有所有子网站。我计划同步这两个站点
比如说,今天晚上10点,我将复制在私有网站上找到的、在公共网站上找不到的所有子网站。因此,基本上在今晚10点,1个子网站将被复制到公共网站,即CGroup
My questions:
1.) Is there some kind of a service that would work or act for this purpose,
like maybe a sharepoint-api service?
2.) What are the possible things that I need to consider before I do this?
谢谢!:)
作为FurqAn建议,您需要考虑权限,以及SPOT和Web详细信息。
另一个重要的考虑因素是,您不能简单地“复制”SPSite和SPWeb项目等的内容,因为这将导致各种各样的GUI等等,因此您的方法应该是基于从源(私有)站点以编程方式收集的信息创建新的SPSite和Web 祝你好运