我有这两个sharepoint web应用程序,驻留在同一服务器与不同的网站集合和内容。我想要做的是开发一个服务,它将被安排在特定的服务器日期和时间运行。
第一个web应用程序是内部站点,只允许内部用户查看该站点。虽然第二个web应用程序是一个公共站点,但每个人都可以查看该站点。
现在我想根据以下条件在两个web应用程序之间进行同步:
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点,我将复制在PrivateSite中找到但在PublicSite中找不到的所有子站点。所以从今天晚上10点开始,一个子站点将被复制到PublicSite,那就是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?谢谢!:)
发布于 2011-03-24 20:26:01
1.)没有任何服务会自动为您完成此操作,但Sharepoint API是您需要使用的方法;直接在代码级访问,而不是通过web服务。
2.)您需要考虑您的私有站点和公共站点是否在同一物理机器上。如果它们在单独的盒子上,事情就会稍微复杂一些。
正如Furqan建议的那样,您需要考虑权限,以及SPSite和网站详细信息。
另一个重要的注意事项是,你不能简单地“复制”SPSite和SPWeb项目等的内容,因为这会导致各种各样的GUID等等的地狱,所以你的方法应该是基于你通过编程从源(私有)站点收集的信息来创建新的SPSites和webs。
祝你好运!
发布于 2011-03-24 18:07:25
https://stackoverflow.com/questions/5307259
复制相似问题